An open API service indexing awesome lists of open source software.

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

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.