CoolFace
Apppublic

Zitti123/meassure

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ“ 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

  1. 1.Calibration: Uses a checkerboard pattern with known square dimensions
  2. 2.Detection: OpenCV finds the pattern and calculates pixel-to-cm ratio
  3. 3.Measurement: Detects objects and converts their pixel dimensions to real-world measurements

๐Ÿ“‹ Requirements

  • โ€”Python 3.8+
  • โ€”OpenCV
  • โ€”Streamlit
  • โ€”NumPy
  • โ€”Pillow

๐ŸŽฏ Usage

  1. 1.Print a calibration pattern (or generate one in the app)
  2. 2.Place it next to objects you want to measure
  3. 3.Take a photo with both pattern and objects visible
  4. 4.Upload to the app and enter the real square size
  5. 5.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!