https://github.com/abdel-17/object-size-calculator
Calculate object size from video
https://github.com/abdel-17/object-size-calculator
opencv python
Last synced: 3 months ago
JSON representation
Calculate object size from video
- Host: GitHub
- URL: https://github.com/abdel-17/object-size-calculator
- Owner: abdel-17
- Created: 2023-02-06T02:35:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T02:51:59.000Z (over 3 years ago)
- Last Synced: 2025-10-26T16:59:35.352Z (8 months ago)
- Topics: opencv, python
- Language: Jupyter Notebook
- Homepage:
- Size: 992 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Camera Object Size
Capture objects in video and calculate their size.
## Libraries
1. Numpy
2. OpenCV
## File Structure
You'll mainly run `main.py`, which capture videos from the
webcam and calculates the size of each object in each frame.
`imutils.py` contains the logic for processing each frame,
finding contours in those frames and their dimensions, etc.
`constants.py` conntains some constants which control how
the dimensions of each object are drawn on the frame.
Feel free to tinker with those to fit your needs.
`test.ipynb` is a Jupyter notebook for testing the output
of the functions in the `imutils` module.
Tested on Python 3.11, but should work on versions below that.