Built by Best ROI MediaMITWave 2 · LiveBestRoiMedia/easel
Measure
Coordinate-grid, line-detection, and tilt-corrected proportion ruler for reference drawings.
Precision measurement CLI for reading pixel coordinates, detecting straight guide lines, snapping anatomical landmarks, and computing rotation-invariant ratios against head, body, and hand templates.
View on GitHub ↗
Quick clone
git clone https://github.com/BestRoiMedia/easel.gitWhy we built it
Eyeballing proportions causes character drawings to drift off-model. Measure gives AI agents exact tilt-corrected ratios and pixel-level correction vectors without copying or redistributing copyrighted reference art.
Architecture & how it works
Renders scaled coordinate grids with zoom panels, runs LSD/Hough line detection with collinear merging, snaps landmarks onto skeleton centerlines or corners, and aligns normalized measurements via robust similarity transforms.
Key capabilities
- Scaled pixel-grid and zoom-panel overlay generator (grid) in full source-image coordinates
- LSD and Hough straight-line detection with collinear segment bridging and intersection points
- Sub-pixel landmark snapping (ink, corner, end, edge, line, extreme bounds) for head, body, and hand schemas
- Tilt-corrected ratio computation and multi-sample statistical aggregation with MAD outlier detection
- Strict copyright guardrails storing only JSON numbers and SHA-256 hashes (refuses writing overlays into the repo)
Usage example
Generate a coordinate grid, mark landmarks, and compare to a templatePython
python3 measure/measure.py grid ./drawing.png --crop 100,80,400,500 --step 10 --out /tmp/grid.png
python3 measure/measure.py mark ./drawing.png --schema head --points ./pts.json --out ./marks.json
python3 measure/measure.py ratios ./marks.json
python3 measure/measure.py compare ./marks.json --template ./head_template.json --tol 0.04Optional ViTPose-base pose proposals via measure.py auto --model vitpose; includes a 12-case offline selftest.