WildAnimalDetector is a machine learning project designed to detect wild animals, such as elephants, using OpenCV and TensorFlow. This project aims to help in monitoring and protecting areas from potential animal intrusions by accurately identifying specific animals. Right now the model is trained only for detecting elephants but the model will be updated frequently.
The WildAnimalDetector project uses computer vision and deep learning techniques to detect the presence of wild animals in real-time. It leverages OpenCV for image processing and TensorFlow for the machine learning model. The primary goal is to provide a reliable system for wildlife monitoring and prevention of human-wildlife conflicts.
- Real-time animal detection
- High accuracy with pre-trained TensorFlow model
- Easy integration with camera systems
- Supports multiple animal species detection
To get started with WildAnimalDetector, follow these steps:
-
Clone the repository:
git clone https://github.com/memidhun/Elephant-Detection-using-ML cd WildAnimalDetector
-
Install the required dependencies:
pip install -r requirements.txt
opencv-python-headless==4.5.5.64
tensorflow==2.9.1
numpy==1.21.6
Pillow==9.1.1
imutils==0.5.4
To run the animal detection model, use the following command:
python main.py
Ensure that your camera is properly connected and configured.
The model and label files are included in the model
directory. If you wish to use a different model, replace the existing files with your own.
model/saved_model.pb
- The pre-trained TensorFlow model.model/labels.txt
- The label file containing the names of the detected animals.
The main script to run the detection is main.py
. This script loads the model, processes the video feed from the camera, and performs the detection in real-time.
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
This project has been applied to patents.