Zitti123/meassure
0
๐ Object Size Measurement Tool
A web application that measures real-world dimensions of objects in images using checkerboard calibration patterns.
๐ Features
- Automatic Calibration: Detects checkerboard patterns for accurate pixel-to-cm conversion
- Object Detection: Automatically finds and measures multiple objects
- Pattern Generator: Create custom calibration patterns
- Real-time Results: Instant measurements with visual annotations
- Export Results: Download measurements as text file
๐ ๏ธ How It Works
- Calibration: Uses a checkerboard pattern with known square dimensions
- Detection: OpenCV finds the pattern and calculates pixel-to-cm ratio
- Measurement: Detects objects and converts their pixel dimensions to real-world measurements
๐ Requirements
- Python 3.8+
- OpenCV
- Streamlit
- NumPy
- Pillow
๐ฏ Usage
- Print a calibration pattern (or generate one in the app)
- Place it next to objects you want to measure
- Take a photo with both pattern and objects visible
- Upload to the app and enter the real square size
- Get instant measurements!
โ ๏ธ Important Notes
- Objects and calibration pattern must be at the same distance from camera
- Better lighting improves detection accuracy
- Pattern should be flat and clearly visible
๐ค Contributing
Feel free to open issues or submit pull requests!
