ComfyUI Node
Canny π¦βπ₯
OpenCV Canny Edge Detection. Usually requires Gaussian blur before running. Runs on CPU, different from ComfyUI Kornia version which runs on GPU. Return Shape [B,H,W].
Canny π¦βπ₯
- nparrays
- Np_grays
βthreshold10.40βΊ
βthreshold20.80βΊ
βapertureSize3βΊ
βL2gradienttrueβΊ
Categoryπ¦βπ₯ ArchiGraph/π OpenCV
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| nparrays | NPARRAY | β | |
| threshold1 | FLOAT | 0.400.01β0.99 | First threshold for the hysteresis procedure. |
| threshold2 | FLOAT | 0.800.01β0.99 | Second threshold for the hysteresis procedure. |
| apertureSize | INT | 33β7 | Aperture size for the Sobel operator. |
| L2gradient | BOOLEAN | true | A flag, indicating whether a more accurate L2 norm should be used to calculate the image gradient magnitude. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| Np_grays | NPARRAY | β |