A smart wildlife detection and deterrence system built with Next.js that helps monitor and manage wildlife interactions using automated detection and customizable deterrence methods.
- 🦊 Wildlife Detection: Automatically detects and classifies different types of animals (Penguin, Deer, Fox)
- 📸 Image Management: Stores and manages detection images with timestamps
- 🚨 Deterrence System: Configurable deterrence methods including:
- LED controls (frequency and duty cycle)
- Speaker controls (frequency and duty cycle)
- Motor controls (ON/OFF)
- 📊 Detection Records: Maintains detailed logs of all detections and deterrence actions
- 🌐 REST API: Full API support for retrieving detections and adding new records
- Clone the repository:
git clone https://github.com/your-username/predator_dettera.git
cd predator_dettera- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 with your browser to see the application.
Retrieves all detection records with their associated images and deterrence settings.
Add a new detection record with the following structure:
{
"image": "base64_encoded_image",
"timestamp": "YYYY-MM-DD HH:mm:ss",
"animalType": "Penguin|Deer|Fox",
"duration": 2.5,
"deterrence": {
"LED": {
"frequency": 50,
"dutyCycle": 0.5
},
"Speaker": {
"frequency": 500,
"dutyCycle": 0.5
},
"motor": "ON|OFF"
}
}/public/mock: Contains mock images and detection records for testing/src/app/api: API routes for handling detections/src/app/components: React components for the UI
Contributions are welcome! Please feel free to submit a Pull Request.