ComfyUI  >  Nodes  >  WAS Node Suite >  Image Canny Filter

ComfyUI Node: Image Canny Filter

Class Name

Image Canny Filter

Category
WAS Suite/Image/Filter
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

Install this extension via the ComfyUI Manager by searching for  WAS Node Suite
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WAS Node Suite in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Canny Filter Description

Detect image edges using Canny algorithm for object boundaries and contours, enhancing structural details for image processing and artistic effects.

Image Canny Filter:

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.

Image Canny Filter Input Parameters:

image

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.

low_threshold

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.

high_threshold

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.

Image Canny Filter Output Parameters:

image

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.

Image Canny Filter Usage Tips:

  • Adjust the 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.
  • Use the output image as a mask or overlay to enhance specific features in your original image, creating unique artistic effects.
  • Combine the Canny edge detection with other preprocessing nodes to create a pipeline that enhances the overall quality and detail of your images.

Image Canny Filter Common Errors and Solutions:

"Input image is not in the correct format"

  • Explanation: The input image provided is not in the expected tensor format.
  • Solution: Ensure that the input image is correctly converted to a tensor format before passing it to the node.

"Threshold values out of range"

  • Explanation: The 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.

"Device not found for processing"

  • Explanation: The node is unable to find the appropriate device (CPU/GPU) for processing the image.
  • Solution: Verify that your system has the necessary hardware and that it is properly configured for image processing tasks. Ensure that the comfy.model_management.get_torch_device() function is correctly identifying the available device.

Image Canny Filter Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.