Visit ComfyUI Online for ready-to-use ComfyUI environment
Detect image edges using Canny algorithm for object boundaries and contours, enhancing structural details for image processing and artistic effects.
The Image Canny Filter node is designed to detect edges within an image using the Canny edge detection algorithm. This node is particularly useful for highlighting the boundaries and contours of objects within an image, making it an essential tool for preprocessing images in various AI art and image analysis tasks. By applying this filter, you can enhance the structural details of your images, which can be beneficial for further image processing or artistic effects. The Canny edge detection method is known for its ability to detect a wide range of edges in images, providing a clear and precise outline of objects.
This parameter accepts the input image on which the Canny edge detection will be applied. The image should be in a format compatible with the node, typically a tensor representation of the image.
The low threshold parameter sets the lower boundary for edge detection. It determines the minimum intensity gradient that will be considered as an edge. The value ranges from 0.01 to 0.99, with a default value of 0.4. Lower values will result in more edges being detected, including weaker edges, while higher values will focus on stronger edges.
The high threshold parameter sets the upper boundary for edge detection. It determines the maximum intensity gradient that will be considered as an edge. The value ranges from 0.01 to 0.99, with a default value of 0.8. This parameter helps in filtering out the strongest edges from the image. Setting this value too high may result in missing some important edges, while setting it too low may include too many edges.
The output parameter is the processed image with the detected edges highlighted. The output image is typically a tensor where the edges are represented in a way that can be easily visualized or further processed. This output can be used for various applications, such as feature extraction, image segmentation, or as a base for artistic transformations.
low_threshold
and high_threshold
parameters to fine-tune the edge detection results. Lower thresholds can help in detecting finer details, while higher thresholds can be used to focus on more prominent edges.low_threshold
or high_threshold
values are set outside the acceptable range of 0.01 to 0.99. - Solution: Adjust the threshold values to be within the specified range to avoid this error.comfy.model_management.get_torch_device()
function is correctly identifying the available device.© Copyright 2024 RunComfy. All Rights Reserved.