ComfyUI > Nodes > comfy_PoP > AdaptiveCannyDetector_PoP

ComfyUI Node: AdaptiveCannyDetector_PoP

Class Name

AdaptiveCannyDetector_PoP

Category
PoP
Author
picturesonpictures (Account age: 1261days)
Extension
comfy_PoP
Latest Updated
2026-03-13
Github Stars
0.02K

How to Install comfy_PoP

Install this extension via the ComfyUI Manager by searching for comfy_PoP
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_PoP 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

AdaptiveCannyDetector_PoP Description

Enhances image processing by combining adaptive thresholding and Canny edge detection for detailed edges.

AdaptiveCannyDetector_PoP:

The AdaptiveCannyDetector_PoP node is designed to enhance image processing by combining adaptive thresholding with Canny edge detection. This node is particularly useful for AI artists who want to extract detailed edges from images, which can be crucial for creating outlines or enhancing features in digital artwork. By using adaptive thresholding, the node adjusts the threshold values dynamically based on the local neighborhood of pixels, allowing for more nuanced edge detection compared to static thresholding methods. This approach is beneficial in scenarios where lighting conditions vary across the image, ensuring that edges are detected consistently. The integration of Gaussian blur further refines the process by smoothing the image, reducing noise, and improving the accuracy of edge detection. Overall, the AdaptiveCannyDetector_PoP node provides a robust solution for artists looking to incorporate sophisticated edge detection techniques into their creative workflows.

AdaptiveCannyDetector_PoP Input Parameters:

images

This parameter accepts a list of images that you want to process. The images are converted to grayscale and processed individually to detect edges. The input should be in the form of a list, even if you are processing a single image.

gaussian_blur_ksize

This integer parameter determines the size of the kernel used for Gaussian blurring. It must be an odd number between 1 and 31, with a default value of 5. Gaussian blurring helps in reducing image noise and detail, which is essential for accurate edge detection.

gaussian_blur_sigma

This float parameter specifies the standard deviation for the Gaussian kernel. It ranges from 0.0 to 10.0, with a default value of 0.0. A higher sigma value results in more blurring, which can help in smoothing out noise but may also reduce edge sharpness.

adaptive_thresh_method

This parameter allows you to choose the method for adaptive thresholding. You can select either "GAUSSIAN_C" or "MEAN_C". "GAUSSIAN_C" uses a weighted sum of neighborhood values, while "MEAN_C" uses the mean of the neighborhood values. The choice affects how the threshold is calculated for each pixel.

adaptive_thresh_type

This parameter determines the type of thresholding applied. You can choose between "BINARY" and "BINARY_INV". "BINARY" sets pixels above the threshold to the maximum value and others to zero, while "BINARY_INV" does the opposite. This choice affects the appearance of the resulting edge map.

adaptive_thresh_blocksize

This integer parameter defines the size of the neighborhood used for calculating the adaptive threshold. It must be an odd number between 3 and 51, with a default value of 11. A larger block size considers more surrounding pixels, which can be useful for images with varying lighting conditions.

adaptive_thresh_C

This integer parameter is a constant subtracted from the mean or weighted mean calculated during adaptive thresholding. It ranges from 0 to 10, with a default value of 2. Adjusting this value can help in fine-tuning the thresholding process to better capture edges.

AdaptiveCannyDetector_PoP Output Parameters:

IMAGE

The output is a tensor representing the processed images with detected edges. Each image is converted to a three-channel format, normalized to a range of [0, 1], and stacked into a tensor. This output can be used directly in further image processing tasks or visualized to assess the effectiveness of the edge detection.

AdaptiveCannyDetector_PoP Usage Tips:

  • Experiment with different gaussian_blur_ksize and gaussian_blur_sigma values to find the optimal balance between noise reduction and edge sharpness for your specific images.
  • Use adaptive_thresh_method and adaptive_thresh_type to adjust how edges are detected based on the characteristics of your images. For instance, "GAUSSIAN_C" might work better for images with gradual lighting changes.
  • Adjust adaptive_thresh_blocksize and adaptive_thresh_C to fine-tune the sensitivity of edge detection, especially in images with complex lighting or textures.

AdaptiveCannyDetector_PoP Common Errors and Solutions:

"Input images must be a list"

  • Explanation: This error occurs when the input images are not provided as a list.
  • Solution: Ensure that you wrap your image(s) in a list, even if you are processing a single image.

"Gaussian blur kernel size must be odd"

  • Explanation: The Gaussian blur kernel size must be an odd number to ensure proper blurring.
  • Solution: Adjust the gaussian_blur_ksize to an odd number within the allowed range.

"Adaptive threshold block size must be odd"

  • Explanation: The block size for adaptive thresholding must be odd to correctly calculate the local threshold.
  • Solution: Ensure that adaptive_thresh_blocksize is set to an odd number within the specified range.

AdaptiveCannyDetector_PoP Related Nodes

Go back to the extension to check out more related nodes.
comfy_PoP
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

AdaptiveCannyDetector_PoP