WildEye
Protect Wildlife, Stop Poaching—Every Life Counts
Created on 24th August 2025
•
WildEye
Protect Wildlife, Stop Poaching—Every Life Counts
The problem WildEye solves
-
Wildlife Detection and Analysis
- Problem it solves: Automates wildlife monitoring and poacher detection, reducing human effort and increasing safety and coverage.
-
Video Upload Endpoint (/upload/) with Dual YOLOv5 Models
- Problem it solves: Ensures accurate detection in varied lighting conditions (daylight vs thermal/nighttime), improving reliability.
-
Annotated Output Video Generation
- Problem it solves: Makes raw AI detections visually understandable for verification and analysis.
-
Per-frame Detection with Geotagging
- Problem it solves: Provides actionable insights on what, when, and where events occur, enabling mapping and better monitoring.
-
Alert Analysis (Person/Vehicle/Fire)
- Problem it solves: Automatically identifies high-risk events, reducing false alarms and enabling faster intervention.
-
Health Endpoint (/health) & Sample Data Endpoint
- Problem it solves: Ensures system reliability and allows testing without full video analysis.
-
Mobile Video Capture and Upload Sessions
- Problem it solves: Enables field recording with geolocation, simplifying real-time reporting from remote areas.
-
Cloud Storage via Cloudinary
- Problem it solves: Handles large video files securely and provides scalable, optimized delivery.
-
Frontend Detection Page (UX Features)
- Problem it solves: Allows users to upload, visualize, and analyze videos intuitively with original vs processed comparison.
-
Dashboard with Analytics and Charts
- Problem it solves: Provides insights at a glance, helping track trends and make data-driven decisions.
-
Community Posts (CRUD)
- Problem it solves: Facilitates collaboration and knowledge sharing among field researchers and volunteers.
-
Authentication (NextAuth with Google, GitHub, Resend)
- Problem it solves: Ensures secure access control and prevents unauthorized usage or data leaks.
-
Performance and Reliability Enhancements
- Problem it solves: Optimizes AI video processing for CPU-only setups, large files, and diverse environments, ensuring stability and speed.
-
Geolocation Variability Handling
- Problem it solves: Ensures consistent and usable location data despite GPS inaccuracies or permission issues.
-
CORS and Cross-Origin Handling
- Problem it solves: Enables smooth playback of processed videos across domains without security errors.
-
Session Lifecycle Management
- Problem it solves: Maintains data integrity by handling incomplete, expired, or abandoned uploads.
-
Environment & Tooling Automation
- Problem it solves: Simplifies setup and deployment of AI models, PyTorch CUDA, and FFmpeg for reproducibility and maintenance.
Challenges we ran into
- YOLOv5 + PyTorch compatibility
- Torch 2.6+ weights_only behavior required monkey-patching torch.load
- Path handling quirks addressed for YOLOv5 local hub loading
- Device selection with CUDA vs CPU and graceful fallbacks
- Video formats across browser, storage, and processing
- MediaRecorder often produces WebM; Cloudinary and some clients prefer MP4/H.264
- Implemented MIME-type negotiation and retry strategies in upload API
- Post-processing via FFmpeg to H.264 with faststart for smooth browser playback
- OpenCV VideoWriter fallback chain (mp4v → XVID → H264) to ensure output on diverse systems
- Performance and reliability
- Large video files and memory pressure: codec choices, bitrate tuning, and optimization step
- CPU-only inference performance and stability when GPU unavailable
- Cross-origin and static delivery
- CORS enabled for static directory so the frontend can play processed files from FastAPI
- Absolute URL construction to avoid mixed-origin issues in the app
- Data consistency and session lifecycle
- Upload sessions with PENDING/COMPLETE/EXPIRED states; time-based expiry; single-session cleanup
- Cloudinary error handling with safe cleanup on DB failure, and DB updates even when session finalization fails
- Geolocation variability
- Permission prompts, accuracy differences, timeouts, and fallbacks when coordinates are missing or invalid
- Server-side randomization to simulate/augment location when client data isn’t available
- Auth and ecosystem upgrades
- NextAuth v5 (beta) integration with Prisma + MongoDB and JWT callbacks
- Next.js 15 + React 19 + Turbopack: keeping types, ESLint/Tailwind v4 setup, and build ergonomics aligned
- Environment and tooling
- Managing YOLOv5 submodule, ensuring weights exist, and matching PyTorch CUDA wheels with drivers
- FFmpeg availability across environments and Dockerization for reproducibility
Tracks Applied (2)
Vultr Cloud Deployment Track
Vultr
Wildlife
Technologies used
Discussion
Builders also viewed
See more projects on Devfolio

