Welcome to the Animal Detection with Custom Trained YOLOv5 project! This application enables real-time animal detection using a custom-trained YOLOv5 model integrated with OpenCV. Whether you're monitoring wildlife or studying animal behavior, this tool provides accurate and efficient detection capabilities.
- Real-time animal detection using the webcam feed.
- Support for multiple animal species with customizable class labels.
- Integration with OpenCV for seamless execution and visualization.
- Efficient inference leveraging hardware acceleration platforms.
To run the Animal Detection with Custom Trained YOLOv5 project, follow these steps:
- Clone this repository to your local machine.
- Install Python 3.9 and create a virtual environment.
- Install required dependencies:
pip install -r requirements.txt
. - Download the YOLOv8 model weights and place them in the specified directory.
- Run the
main.py
script.
📂 animal_detection_yolov5/
├── 📁 data/
│ ├── 📁 train/
│ │ ├── 📁 images/
│ │ └── 📁 labels/
│ └── 📁 valid/
│ ├── 📁 images/
│ └── 📁 labels/
├── 📂 runs/
│ └── 📂 detect/
│ └── 📂 train/
│ └── 📂 weights/
│ └── 📄 best.pt
├── 📄 main.py
├── 📄 config.yaml
├── 📄 model.py
└── 📄 requirements.txt
python main.py
Contributions are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.