A surveillance app (Python tree here I come!)
So, lately I've been taking it very easy on the activities front, since I've had a court-related matter to get to see the kids.So I've had some ideas, urges etc. to do technical stuff, artsy stuff etc. - and today I wrote myself a script that will run on a PC, or a demo board like Raspberry Pi, Orange Pi etc. - and take pictures on a webcam, and merge these pictures taken over time into a video, and mail them.
I started with Python (2), but figured that now is the time to take the plunge to Python 3 and don't look back.
I have to say, Python 3 isn't difficult, there are some changes in conventions etc. but nothing big.
So I was able to be productive in Python 3 straight away, and wrote this script:
https://github.com/morphex/surveil
Which will do what I mentioned above. And here's the source code tree as it was when I wrote this post:
https://github.com/morphex/surveil/tree/1cb5ceed7657e2635cca...
This video was generated from this script:
http://blogologue.com/surveil_out.webm
And impressively enough, each image the video was generated from, was 55-78 KB, while the entire video with 18 images was ~120 KB. I guess VP9 is effective at compressing, at the same time, a lot of the objects in the video are static.
[Permalink] [By morphex] [Python and web (Atom feed)] [17 Sep 00:08 Europe/Oslo]