A computer vision project to monitor dog daycare locations by collecting and analyzing camera feed screenshots at regular intervals.
This project automatically captures screenshots from dog daycare webcam feeds and processes them to detect and track dogs and humans. The system is currently deployed on a Raspberry Pi 5 with a 10-minute cron job for continuous monitoring.
- Automated Screenshot Collection (
capture/): Downloads images at regular intervals from multiple dog daycare camera feeds - Object Detection (
process/): Uses YOLOv8 model to detect and draw bounding boxes around:- Dogs
- Humans
- Displays confidence scores for each detection
- Identify individual dogs (your specific dog)
- Detect dog stances and behaviors
- Track the ratio of dogs to people over time
- Generate analytics and alerts based on activity patterns
dog-daycare/
├── capture/
│ └── download-data.py # Script to download screenshots from camera feeds
├── process/
│ └── process-image.py # Script to detect dogs and humans in images
└── data/ # Storage for captured images (gitignored)
The capture script downloads images from configured camera feeds:
python capture/download-data.pyImages are saved to data/<camera_name>/<timestamp>.jpg
Analyze an image to detect dogs and humans:
python process/process-image.py <path_to_image>This will display the image with bounding boxes around detected dogs and people.
Currently running on a Raspberry Pi 5 with a cron job that executes every 10 minutes to collect screenshots automatically.
- Python: Core programming language
- YOLOv8: State-of-the-art object detection model (via Ultralytics)
- OpenCV: Image processing and visualization
- Requests: HTTP client for downloading images
- Python 3.x
- ultralytics
- opencv-python
- requests