ComfyUI Node
cv2.pencilSketch
Raw wrapper of cv2.pencilSketch(src, sigma_s?, sigma_r?, shade_factor?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.
cv2.pencilSketch
- src
- sketch
- color
◄sigma_s60.0000►
◄sigma_r0.0700►
◄shade_factor0.0200►
Categoryimage/CV/low-level/cv2 P
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| src | COMFY_MATCHTYPE_V3 | Input 8-bit 3-channel image. The image output(s) echo this input's format. Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size. | |
| sigma_sopt | FLOAT | 60.0000-1e+38–1e+38 | %Range between 0 to 200. Preset to the OpenCV default (60.0). |
| sigma_ropt | FLOAT | 0.0700-1e+38–1e+38 | %Range between 0 to 1. Preset to the OpenCV default (0.07). |
| shade_factoropt | FLOAT | 0.0200-1e+38–1e+38 | %Range between 0 to 0.1. Preset to the OpenCV default (0.02). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| sketch | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |
| color | COMFY_MATCHTYPE_V3 | Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY. |