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].
Find Contours π¦
- Np_bins
- contours
- hierarchy
βmodeRETR_CCOMPβΊ
βmethodCHAIN_APPROX_SIMPLEβΊ
Categoryπ¦βπ₯ ArchiGraph/π OpenCV
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| Np_bins | NPARRAY | Binary image. Non-zero pixels are treated as 1's. You can use compare(), threshold(), inRange(), Canny() etc. to create a binary image. | |
| mode | COMBO | RETR_CCOMP | Contour retrieval mode |
| method | COMBO | CHAIN_APPROX_SIMPLE | Contour approximation method |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| contours | CV_CONTOURS | β |
| hierarchy | CV_HIERARCHY | β |