Nodes/ComfyUI-HappNodeSet/Line Length Calculator
ComfyUI Node

Line Length Calculator

Calculates total length of black lines in a diagram image (in pixels). Returns a skeleton visualization, the measured length, raw skeleton pixel count, and a text report.

By mikemojen·Created 8 months ago·Updated 3 months ago· 0
Line Length Calculator
  • image
  • skeleton_overlay
  • total_length_px
  • skeleton_pixel_count
  • report
threshold128
invertfalse
Categorydiagram-analysis

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
thresholdINT1281–254Pixel intensity threshold (0-255). Pixels darker than this are treated as line pixels.
invertBOOLEANfalseEnable if lines are white on dark background instead of black on light.

Outputs (4)

NameTypeDescription
skeleton_overlayIMAGE
total_length_pxFLOAT
skeleton_pixel_countINT
reportSTRING