Nodes/ComfyUI-ArchiGraph/Find Contours 🐦
ComfyUI Node

Find Contours 🐦

OpenCV Find Contours. Finds contours in a binary image. Default without offset. Return: - Contours, each contour is stored as a vector of points. Return: - hierarchy, containing info about topology. Same length as contours. Each has 4 elements, [next, prev, first child, parent].

By vincentfsΒ·Created 2 years agoΒ·Updated 8 months agoΒ· 3
Find Contours 🐦
  • Np_bins
  • contours
  • hierarchy
β—„modeRETR_CCOMPβ–Ί
β—„methodCHAIN_APPROX_SIMPLEβ–Ί
CategoryπŸ¦β€πŸ”₯ ArchiGraph/πŸ“€ OpenCV

Inputs (3)

NameTypeDefaultDescription
Np_binsNPARRAYBinary image. Non-zero pixels are treated as 1's. You can use compare(), threshold(), inRange(), Canny() etc. to create a binary image.
modeCOMBORETR_CCOMPContour retrieval mode
methodCOMBOCHAIN_APPROX_SIMPLEContour approximation method

Outputs (2)

NameTypeDescription
contoursCV_CONTOURSβ€”
hierarchyCV_HIERARCHYβ€”