Visit ComfyUI Online for ready-to-use ComfyUI environment
Overlay contour lines on images to highlight features and boundaries for analysis and visualization using OpenCV capabilities.
The Draw Contour(s) node is designed to overlay contour lines onto an image, providing a visual representation of the contours detected within the image. This node is particularly useful for highlighting specific features or boundaries within an image, making it easier to analyze and interpret the visual data. By drawing contours, you can emphasize edges, shapes, and regions of interest, which can be beneficial for various applications such as object detection, image segmentation, and artistic effects. The node leverages OpenCV's powerful contour drawing capabilities to ensure precise and customizable contour rendering.
This parameter represents the input image on which the contours will be drawn. The image should be in a format compatible with the node, typically an RGB image. The quality and resolution of the input image can affect the clarity and accuracy of the drawn contours.
This parameter contains the contours to be drawn on the image. Contours are typically obtained from a previous contour detection process and are represented as a list of points outlining the shapes or boundaries within the image.
This integer parameter specifies which contour to draw from the list of contours. The default value is -1, which means all contours will be drawn. You can set this to a specific index to draw only a particular contour. The value ranges from -1 to 1000, with a step of 1.
This integer parameter determines the thickness of the contour lines. A value of -1 will fill the contour, while positive values specify the thickness in pixels. The default value is 5, with a range from -1 to 32, and a step of 1. Thicker lines can make contours more visible, while thinner lines can provide more detail.
This parameter defines the color of the contour lines. The color should be specified in a format compatible with the node, typically an RGB value. The choice of color can help distinguish contours from the background and other elements in the image.
The output is the image with the drawn contours. This image will have the same dimensions as the input image but with the specified contours overlaid. The output image can be used for further analysis, visualization, or as part of a larger image processing pipeline.
index_to_draw
parameter to draw only the contour of interest.thickness
parameter to ensure the contours are visible against the background of the image.color
that contrasts well with the image to make the contours stand out.index_to_draw
parameter is set to a value that exceeds the number of available contours.index_to_draw
parameter is within the valid range.color
parameter is not specified in a valid RGB format.© Copyright 2024 RunComfy. All Rights Reserved.