Edge Detect
Extracts edges from an image using the Canny algorithm. Useful for creating line art, masks, or AI conditioning.
Edge Detect applies the Canny edge detection algorithm to find edges in an image. It outputs a binary image where white pixels mark detected edges. The two thresholds control sensitivity: the low threshold catches weak edges, the high threshold catches strong edges.
This node is commonly used to create line art from photographs, generate masks for compositing, or prepare reference images for AI image editing.
Parameters
Section titled “Parameters”Pins
Filter
Lower Canny threshold for edge rejection
Upper Canny threshold for strong-edge acceptance
Sobel kernel size for gradient computation (3, 5, or 7)
Use L2 norm for gradient magnitude (more accurate, slower than L1)
Apply Gaussian blur before edge detection to reduce noise
Gaussian kernel size for pre-blur (odd)
Swap edge vs background pixels
Color
Edge color
Background color
Usage Tips
Section titled “Usage Tips”- Enable Pre-Blur to reduce noise before detection, producing cleaner edges with fewer false positives.
- Lower thresholds detect more edges (including noise); higher thresholds detect only strong edges.
- Use custom edge and background colors to create colored line art.
- Wire Edge Detect output into AI Image Edit as a reference for structure-guided generation.