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.
Line Length Calculator
- image
- skeleton_overlay
- total_length_px
- skeleton_pixel_count
- report
◄threshold128►
◄invertfalse►
Categorydiagram-analysis
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| threshold | INT | 1281–254 | Pixel intensity threshold (0-255). Pixels darker than this are treated as line pixels. |
| invert | BOOLEAN | false | Enable if lines are white on dark background instead of black on light. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| skeleton_overlay | IMAGE | — |
| total_length_px | FLOAT | — |
| skeleton_pixel_count | INT | — |
| report | STRING | — |