Nodes/comfyui_cv/cv2.pencilSketch
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.pencilSketch
  • src
  • sketch
  • color
sigma_s60.0000
sigma_r0.0700
shade_factor0.0200
Categoryimage/CV/low-level/cv2 P

Inputs (4)

NameTypeDefaultDescription
srcCOMFY_MATCHTYPE_V3Input 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_soptFLOAT60.0000-1e+38–1e+38%Range between 0 to 200. Preset to the OpenCV default (60.0).
sigma_roptFLOAT0.0700-1e+38–1e+38%Range between 0 to 1. Preset to the OpenCV default (0.07).
shade_factoroptFLOAT0.0200-1e+38–1e+38%Range between 0 to 0.1. Preset to the OpenCV default (0.02).

Outputs (2)

NameTypeDescription
sketchCOMFY_MATCHTYPE_V3Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.
colorCOMFY_MATCHTYPE_V3Echoes the 'src' input's format: an IMAGE link comes back as IMAGE, MASK as MASK, NPARRAY stays NPARRAY.