This project demonstrates object detection using PyTorch and OpenCV. It allows detection on live video (webcam), image files, and video files.
git clone https://github.com/camelbyte/object-detection.git
cd object-detection
Don't forget to install requirements.
pip install -r requirements.txt
python object_detection.py
python object_detection.py --source video.mp4
python object_detection.py --source image.jpg
- Python 3.x
- PyTorch
- OpenCV
- Other dependencies listed in
requirements.txt
This project is open-source. Feel free to modify and use it as needed.
Happy coding! 🚀