ComfyUI > Nodes > ComfyUI-Purz > Edge Detection (Purz)

ComfyUI Node: Edge Detection (Purz)

Class Name

PurzEdgeDetect

Category
Purz/Image/Effects
Author
purzbeats (Account age: 1545days)
Extension
ComfyUI-Purz
Latest Updated
2026-02-06
Github Stars
0.02K

How to Install ComfyUI-Purz

Install this extension via the ComfyUI Manager by searching for ComfyUI-Purz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Purz 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

Edge Detection (Purz) Description

PurzEdgeDetect highlights image edges using Sobel, Canny, and Laplacian for artistic effects.

Edge Detection (Purz):

The PurzEdgeDetect node is designed to identify and highlight the edges within an image using advanced edge detection techniques. This node is particularly useful for artists and designers who want to emphasize the contours and outlines of objects within their images, providing a more defined and artistic look. By utilizing methods such as Sobel, Canny, and Laplacian, the node offers flexibility in how edges are detected, allowing you to choose the most suitable method for your creative needs. Whether you're looking to create a sketch-like effect or simply want to enhance the details in your artwork, PurzEdgeDetect provides a powerful toolset to achieve these goals.

Edge Detection (Purz) Input Parameters:

image

This parameter represents the input image on which edge detection will be performed. It is the primary source material that the node processes to identify edges. The quality and resolution of this image can significantly impact the final output, as higher quality images may yield more precise edge detection results.

method

The method parameter allows you to select the edge detection technique to be applied to the image. You can choose from three options: "sobel", "canny", and "laplacian". Each method has its unique characteristics; for instance, Sobel is useful for detecting gradients, Canny is known for its precision in detecting edges, and Laplacian is effective for highlighting areas of rapid intensity change. The default method is "sobel".

threshold_low

This parameter sets the lower threshold for edge detection, particularly relevant when using the Canny method. It determines the minimum intensity gradient that will be considered an edge. The value ranges from 0.0 to 255.0, with a default of 50.0. Adjusting this value can help in controlling the sensitivity of edge detection, where a lower value may detect more edges, including noise.

threshold_high

Similar to threshold_low, this parameter sets the upper threshold for edge detection, again most applicable to the Canny method. It defines the maximum intensity gradient for edge detection. The range is from 0.0 to 255.0, with a default of 150.0. A higher threshold can help in reducing noise by ignoring weaker edges, focusing only on the most prominent ones.

Edge Detection (Purz) Output Parameters:

image

The output parameter image is the processed image with detected edges highlighted. This output retains the original dimensions of the input image but visually emphasizes the edges based on the selected detection method. The resulting image can be used for further artistic processing or as a standalone piece to showcase the defined contours and outlines.

Edge Detection (Purz) Usage Tips:

  • Experiment with different method options to see which edge detection technique best suits your artistic vision. Each method offers a distinct style of edge enhancement.
  • Adjust the threshold_low and threshold_high parameters to fine-tune the sensitivity of edge detection, especially when using the Canny method. This can help in achieving the desired level of detail and noise reduction.
  • Use high-resolution images as input to ensure that the edge detection process captures fine details accurately, resulting in a more refined output.

Edge Detection (Purz) Common Errors and Solutions:

Image input is not valid

  • Explanation: This error occurs when the input provided is not a valid image format or is corrupted.
  • Solution: Ensure that the input is a valid image file and is correctly loaded into the node.

Threshold values are out of range

  • Explanation: This error happens when the threshold_low or threshold_high values are set outside their allowed range of 0.0 to 255.0.
  • Solution: Adjust the threshold values to be within the specified range to avoid this error.

Method not recognized

  • Explanation: This error indicates that the specified method is not one of the accepted options ("sobel", "canny", "laplacian").
  • Solution: Verify that the method parameter is set to one of the valid options and correct any typos.

Edge Detection (Purz) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Purz
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.