This project utilizes YOLO (You Only Look Once) for object detection and classification in videos, complemented by optical flow estimation for improved tracking of moving objects.
-
Clone the repository:
git clone https://github.com/someshbhandare/moving-object-detection cd moving-object-detection
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Run the main script:
python main.py --input_video path/to/your/video.mp4 --output_video_path output.mp4
Replace
path/to/your/video.mp4
with the path to your input video file.- --input_video_path = YOUR_INPUT_VIDEO_PATH
- --output_video_path = YOUR_OUTPUT_VIDEO_PATH [optional]
#
If you would like to contribute to the project, follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/new-feature
) - Commit your changes (
git commit -m 'Add new feature'
) - Push to the branch (
git push origin feature/new-feature
) - Open a Pull Request
This project is licensed under the Apache License 2.0.