This project is an object detection system built with Python, OpenCV, and YOLOv8 to detect cows in images and video streams.
- Real-time detection using a webcam.
- Detection on static images.
- Trained on a custom dataset from Roboflow.
-
Clone the repository:
git clone https://github.com/vamshi-246/HAWK.git cd HAWK -
Create and activate a virtual environment:
python -m venv venv .\venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run a prediction:
python detect_custom.py
The trained model best.pt is not included in this repository due to its size. You can download it from the Releases page.
Place the downloaded best.pt file in the correct path as specified in the detection script.