Project Description
For this Hackweek, I want to focus on building a small application around Raspberry PI, motion-sensors and video capture.
It will use the motion sensor to trigger a clip recording (maybe a 10s clip) that will be uploaded to some kind of storage (probably Cloudinary).
Motivation:
I have many kinds of birds coming to my window for food and water. I wanted to have a way to be able to see them even when I'm not around and to be sure that I don't miss the fun :P
The initial idea was to build it around Node.js since JS is my primary programming language but this might be a good time to learn and use Python since it is meant to be used for this kind of things.
Goal for this Hackweek
Have a public repository with the application that can be used as a DIY starting point.
If the time allows:
- Create a public space to visualize the clips
- Use a pre-trained ML model to tag and categorize the birds species
Resources
All the code will be made available here https://github.com/en3sis/pi-watcher
Hardware:
Looking for hackers with the skills:
This project is part of:
Hack Week 20
Activity
Comments
-
about 2 years ago by scuescu | Reply
Day 1 update
As for the first day, I prepared all the hardware (pi, motion-sensor) and start looking into how to get them to work together in Python. After a lot of work and tweaks, I managed to have the sensor triggering on movement and send the signal to the PI. The first part of the code (for the motion) is available at https://github.com/en3sis/pi-watcher
Day 2
For today I want to get the video recording part ready. For that, I'm looking into OpenCV (probably a little bit overkill but could work as a base for features :P )
-
about 2 years ago by scuescu | Reply
Day 3
Yesterday I finished the clip recording part, now a ~10s clip will trigger when motion is detected.
The plans for today are:
- Upload the clip to Cloudinary
- Improve the clip recording part
- Set a cooldown of X time after a recording starts.The latest code was uploaded to https://github.com/en3sis/pi-watcher
-
about 2 years ago by scuescu | Reply
Day 4
Yesterday I finished the uploading part and some other improvements plus, a static website where we can preview the uploaded clips. A first demo can be found at https://serverless-en3sis.vercel.app/ with our first Rock-Start
An issue I ran into is that the motion sensor won't trigger if the target is behind the window (it's an infrared motion-sensor, the more you learn... :P ). Since I already started to build the video recording part around OpenCV, I'm now looking into using Object Motion detection.
Plans for today:
- Have an Object Detection system with OpenCV
- If I'm done early, bring Pytorch and look for an ML model that can help me label the bird's species.
- Improve the preview application (?) -
about 2 years ago by scuescu | Reply
Day 5:
Yesterday I had to implement the motion-detection with OpenCV, I ran into some issues but after all, I could finish it and now I have a solid application (with a looooooot of room for improvements :P ).
To wrap it up, today I'll focus on the preview space and whatever time I have left for improvements. I have a long list of improvements that I want to take care of.
Some new clips can be found at https://serverless-en3sis.vercel.app/
Similar Projects
Bring to life the Studio Kiosk in Frankenstrasse by digitaltomm
[comment]: # (Please use the project descriptio...
Humidity sensors with dashboard by joachimwerner
Build a network of ("edge") humidity sensors...
Hack on project MONAI (Medical Open Network for Artificial Intelligence) by jordimassaguerpla
Project Description
MONAI is a set of o...
Learn about AI, ML, neural networks and see what's possible with SUSE Linux by rsimai
Everybody is talking about (and with) ChatGPT. ...
Improve error handling of the '/search' API endpoints of OBS by enavarro_suse
Project Description
Improve error handlin...
Vai: a Kubernetes API accelerator/cache by moio
![Kubernetes API caching layer according to Sta...