Local Ai
RulerNet: Learning Perspective-Invariant Ruler Representations for Robust Image Scale Estimation
arXiv:2507.07077v2 Announce Type: replace Abstract: Accurately converting pixel measurements into absolute real-world dimensions remains a fundamental challenge in computer vision, limiting progress i
arXiv:2507.07077v2 Announce Type: replace Abstract: Accurately converting pixel measurements into absolute real-world dimensions remains a fundamental challenge in computer vision, limiting progress in applications such as biomedicine, forensics, nutritional analysis, and e-commerce. We introduce RulerNet, a deep learning framework that robustly infers scale in the wild by reformulating ruler reading as a unified keypoint detection problem and representing rulers with geometric progression parameters that compactly approximate the non-uniform spacing induced by perspective transformations. Unlike traditional methods that rely on handcrafted thresholds or rigid, ruler-specific pipelines, RulerNet directly localizes centimeter markings using a mark-visibility-based annotation and training strategy that remains valid under mark-preserving transformations, enabling strong generalization across diverse ruler types and imaging conditions while mitigating data scarcity. Additionally, we introduce a scalable synthetic data generation pipeline that combines graphics-based ruler creation with ControlNet-enhanced realism, significantly expanding training diversity and improving model performance. Extensive experiments on both our datasets and public benchmarks demonstrate that RulerNet achieves accurate, consistent, and efficient scale estimation under challenging real-world conditions. Integration into a medical analysis pipeline further demonstrates its practical utility for scale-aware measurement. These results suggest that RulerNet can serve as a generalizable measurement component and be readily integrated with other vision modules, such as segmentation, monocular depth estimation, and diagnostic workflows, for automated analysis in medical and other domains. An online demo is provided. The project page is at https://github.com/ymp5078/RulerNet.
Related
- {alpha}Depth: Learning Single-Pass Soft Boundary Decomposition for Stereo Conversion
- Where Do Vision-Language Models Fail? World Scale Analysis for Image Geolocalization
- LoMa: Local Feature Matching Revisited
Source: arXiv cs.CV | 2026-08-14