Nodes/comfyui_cv/CV Skeletonize
ComfyUI Node

CV Skeletonize

Reduces the foreground of a binary image to its 1-pixel-wide skeleton (centerline). Thinning (cv2.ximgproc, opencv-contrib) gives clean connected centerlines; 'morphological' is a coarser fallback that works without the contrib build. Used by the clock-reading pipeline to turn thick hands into measurable rays.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Skeletonize
  • image
  • skeleton
methodthinning (Zhang-Suen)
Categoryimage/CV/contours

Inputs (2)

NameTypeDefaultDescription
imageCOMFY_MATCHTYPE_V3Binary image (or MASK); non-zero = foreground. The skeleton comes back in 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.
methodCOMBOthinning (Zhang-Suen)Zhang-Suen / Guo-Hall need opencv-contrib-python(-headless) (cv2.ximgproc) and give the cleanest centerlines; if that build is unavailable they fall back to 'morphological' automatically. Morphological works everywhere but is noisier.

Outputs (1)

NameTypeDescription
skeletonCOMFY_MATCHTYPE_V3Same format as the image input.