SmartVision is a computer vision project that transforms your camera into a precision measurement tool. Using advanced contour detection and perspective correction, SmartVision calculates object dimensions with incredible accuracy, whether from an image or a live webcam feed.
- Smart Object Detection: Automatically identifies and isolates objects in any scene.
- Precision Measurement: Accurately calculates object dimensions in real-world units.
- Versatile Input: Supports both static images and real-time webcam streams.
- Visual Feedback: Annotates dimensions directly on the objects in the image.
- OpenCV: Industry-standard library for image processing.
- NumPy: High-performance mathematical operations.
- Python: Robust scripting language for development.
- Install Python 3.8+
- Clone the repository:
git clone https://github.com/yourusername/smartvision.git cd smartvision- Install dependencies:
pip install -r requirements.txt
- For image-based measurement:
- Open main.py and set webcam = False.
- Specify the path to your image in the path variable.
- Run the script:
python main.py
- For real-time measurement via webcam:
- Open main.py and set webcam = True.
- Run the script:
python main.py
- Install dependencies:
pip install -r requirements.txt