Periyaraja/Wild_guard — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me WildGuard, a Python based farm protection system that watches a camera feed and alerts farmers when wild animals enter a field. It should use YOLOv8 and OpenCV for real time detection, ignore humans to avoid false alarms, save snapshots when animals are detected, and log each event with the animal name, confidence, image, and timestamp.

When an animal is detected, trigger the right deterrent sound, like firecrackers for elephants or dog barking for monkeys, send SMS and WhatsApp alerts through Twilio, write the event to Firebase Firestore, and activate an ESP32 buzzer if connected. Make the settings come from a .env file, including Twilio keys, Firebase credentials, ESP32 port, model path, confidence level, and cooldowns.

Please make it modular with separate files for detection, alerts, sounds, buzzer control, Firebase, and messaging. Include clear setup instructions, example environment values, and make it runnable with python detection.py. Look up current docs online if needed.

Want more depth? Deep Reverse