4 ms·
A birdfeeder, a security camera, and this python script: https://github.com/ctrager/opencv_py/blob/master/red_yellow_blue.py https://github.com/ctrager/opencv_p
by ctrager 6y ago
A birdfeeder, a security camera, and this python script: https://github.com/ctrager/opencv_py/blob/master/red_yellow_blue.py https://github.com/ctrager/opencv_py/blob/master/red_yellow_...
I want to record visits to my birdfeeder but not all the visits. 99% of the visitors are sparrows, which, no offense to any sparrows reading this, are dull colored. I want to capture the cardinals, bright red birds. The python script monitors the video stream and starts recording when the image gets suddenly redder. But it's configurable to also react to blue (bluejays) and yellow (goldfinches).
This is barely baked, just a script.
A video: https://drive.google.com/file/d/1vUjYrTwJkPVUlWIYQ6_qA9t1tqiodgVU/view?usp=sharing https://drive.google.com/file/d/1vUjYrTwJkPVUlWIYQ6_qA9t1tqi...
- bdefore 6y agoSparrow here. You will be hearing from my avian attorney. In earnest, nice work! I recently bought what looks like the same feeder and have pondered making something similar. What camera are you using for it? Note that you are sharing your user/pass and server address on the local server, although with a 10.x.x.x target I expect that's behind your router.
- ctrager 6y agoAmcrest IP2M-841B. This works the best of the three I've tried. The other two: The cheap Wyze cameras which special software that gives access to the RTSP stream, but the stream is so jerky it creates too many false alarms to be useful. If you just want to have a cheap security camear, though, these Wyze cameras are fun. I've also tried using a Reolink camera with Neolink to get at the RTSP stream, but it wasn't super stable. Missing frames. I wonder if that's because my laptops are old and slow. I don't know. I've also tried using a Raspberry Pi with a camear. Get the camera that you can focus. Here's a video I got with the that combo https://drive.google.com/file/d/1rMmap4fWgj8iTAYCo5eNaTDMLlOdfEwI/view?usp=sharing https://drive.google.com/file/d/1rMmap4fWgj8iTAYCo5eNaTDMLlO... Using this script: https://github.com/ctrager/opencv_py/blob/master/hummingbird_pi.py https://github.com/ctrager/opencv_py/blob/master/hummingbird...
- deleted 6y ago[deleted]
- mssundaram 6y agoThat's really neat! What is the hardware set up - how does it interface with the camera?
- ctrager 6y agoSee my comment above. The cameras are on my WIFI network. They provide a URL you connect to and that gives you a stream. My python stream connects to that stream so I can watch my birdfeeder by looking at my laptop stream. FYI, VLC also knows how to be a RTSP client.
- ctrager 6y agomy python *script
- enraged_camel 6y agoSomeone actually linked me a Kickstarter of this very concept the other day: https://www.kickstarter.com/projects/mybirdbuddy/bird-buddy-a-smart-bird-feeder https://www.kickstarter.com/projects/mybirdbuddy/bird-buddy-...
- ctrager 6y agoOMG, they've raised $4 million dollars??!! Clearly I'm not as clever at monetizing my ideas.
- gadders 6y agoI think Sparrows are classed as LBJ ( or LBB): https://en.wikipedia.org/wiki/Little_brown_bird https://en.wikipedia.org/wiki/Little_brown_bird