Skip to content

This Python-based code that utilizes OpenCV's DNN module with MobileNetSSD to detect animals in the farmland.The code provides a GUI using Tkinter, allowing users to select a video file and start the animal detection process. When an animal is detected, an alert is triggered with a siren sound.

Notifications You must be signed in to change notification settings

ragultv/ANIMAL-DETECTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Installation Clone the repository: git clone https://github.com/yourusername/animal-detection-app.git cd animal-detection-app

Install the required Python packages: pip install numpy opencv-python imutils playsound

Download the necessary model files: MobileNetSSD_deploy.prototxt.txt MobileNetSSD_deploy.caffemodel

Place the model files in the appropriate directory: C:\Users\yourusername\Downloads\animal-detection-using-ssd-algorithm-main\

Place the siren sound file in the appropriate directory: C:\Users\yourusername\Downloads\animal-detection-using-ssd-algorithm-main\Siren.wav

Usage Run the application: python animal_detection_app.py

Use the GUI to select a video file for processing. Click on "Start Detection" to begin the animal detection process. The application will display the video with detected animals highlighted and trigger a siren sound if an animal is detected.

Customization Detection Classes: Modify the REQ_CLASSES list in the start_detection function to detect different classes of objects. Confidence Threshold: Adjust the conf_thresh variable to change the confidence threshold for detection. Alert Sound: Change the siren_wav variable to use a different alert sound. Acknowledgments OpenCV for providing powerful computer vision tools. MobileNetSSD for the pre-trained model used in this project. License This project is licensed under the MIT License - see the LICENSE file for details.

About

This Python-based code that utilizes OpenCV's DNN module with MobileNetSSD to detect animals in the farmland.The code provides a GUI using Tkinter, allowing users to select a video file and start the animal detection process. When an animal is detected, an alert is triggered with a siren sound.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages