https://github.com/cmohan312002/object-detection_with-dimensions
Computer vision system for detecting objects and estimating real-world dimensions using OpenCV and geometric analysis.
https://github.com/cmohan312002/object-detection_with-dimensions
automation computer-vision cplusplus dimension-estimation image-processing measurement-system object-detection object-measurement opencv pixel-to-real qt
Last synced: 3 months ago
JSON representation
Computer vision system for detecting objects and estimating real-world dimensions using OpenCV and geometric analysis.
- Host: GitHub
- URL: https://github.com/cmohan312002/object-detection_with-dimensions
- Owner: cmohan312002
- Created: 2026-03-17T05:37:57.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-07T07:16:15.000Z (3 months ago)
- Last Synced: 2026-04-07T09:00:50.744Z (3 months ago)
- Topics: automation, computer-vision, cplusplus, dimension-estimation, image-processing, measurement-system, object-detection, object-measurement, opencv, pixel-to-real, qt
- Language: C++
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ VisionMeasure - Object Detection & Dimension Estimation System
VisionMeasure is a computer vision-based system that detects objects in an image and calculates their real-world dimensions with high accuracy. It combines image processing, contour detection, and geometric analysis to measure object width and height dynamically.
---
## ๐ง Project Overview
Measuring objects manually can be inefficient and error-prone. VisionMeasure automates this process by:
* Detecting objects in an image
* Identifying boundaries using contours
* Calculating width and height of each object
* Displaying dimensions directly on the screen
This system is useful for applications where **automated measurement and inspection** are required.
---
## โ๏ธ Key Features
* ๐ฆ **Automatic Object Detection**
* ๐ **Real-Time Dimension Calculation (Width & Height)**
* ๐ฏ **Detects Multiple Objects in a Single Image**
* ๐ง **Contour-Based Detection (No Hardcoding)**
* โก **Fast Image Processing Pipeline**
* ๐ฅ๏ธ **Visual Output with Bounding Boxes & Measurements**
* ๐ **Scalable for Real-Time Video Processing**
---
## ๐๏ธ Tech Stack
* **Language:** C++
* **Framework:** Qt (for UI display)
* **Image Processing:** OpenCV
* **Detection Technique:** Contour Detection & Bounding Rectangles
* **Mathematics:** Pixel-to-real-world scaling
---
## ๐ Workflow
1. Input image or video frame
2. Preprocess image (grayscale, blur, edge detection)
3. Detect contours (object boundaries)
4. Filter valid objects (remove noise)
5. Draw bounding boxes around objects
6. Calculate width & height in pixels
7. Convert pixels to real-world dimensions using scaling
8. Display dimensions on screen
---
## ๐ Dimension Calculation Logic
The system calculates object size using pixel measurements and converts them into real-world units.
### Steps:
* Detect object boundary using contours
* Compute bounding rectangle
* Extract:
* Width (pixels)
* Height (pixels)
* Apply scaling factor:
```id="dimcalc1"
Real Width = Pixel Width ร Scale Factor
Real Height = Pixel Height ร Scale Factor
```
### Notes:
* Scale factor is derived using a reference object or calibration
* Ensures accurate real-world measurement
---
## ๐ Project Structure
```plaintext id="struc1"
VisionMeasure/
โ
โโโ src/
โ โโโ main.cpp
โ โโโ imageprocessor.cpp
โ โโโ detection.cpp
โ
โโโ include/
โ โโโ imageprocessor.h
โ โโโ detection.h
โ
โโโ assets/
โ โโโ test_images/
โ
โโโ output/
โ โโโ processed_images/
โ
โโโ README.md
```
---
## ๐ How to Run
### Prerequisites
* Install OpenCV
* Install Qt Creator
### Steps
```bash id="run1"
# Clone the repository
git clone https://github.com/cmohan312002/Object-Detection_with-Dimensions.git
# Open in Qt Creator
# Build and run the project
```
---
## ๐ฏ Use Cases
* ๐ฆ Industrial Object Measurement
* ๐ญ Quality Inspection Systems
* ๐ Automated Size Detection
* ๐ธ Image-Based Measurement Tools
* ๐ค Computer Vision Applications
---
## ๐ก What Makes This Project Special?
Unlike basic object detection systems, VisionMeasure:
* Focuses on **dimension estimation**, not just detection
* Uses **geometric analysis for real-world measurements**
* Supports **multiple object detection in one frame**
* Provides **visual and measurable output simultaneously**
---
## ๐งช Future Enhancements
* ๐ฅ Deep Learning-based object detection (YOLO / SSD)
* ๐ฅ Real-time video stream processing
* ๐ฑ Mobile app integration
* ๐ Measurement analytics dashboard
* ๐ Automatic calibration system
---
## ๐จโ๐ป Author
**Mohan Chilivery**
Programmer
---
## โญ Support
If you found this project useful:
* Star โญ the repo
* Share it with others
* Contribute to improve it
---
## ๐ License
This project is open-source and available under the MIT License.