Hacker News new | ask | show | jobs
by arwineap 1573 days ago
My goals were mostly the same, and I realized I needed RTSP/ONVIF cameras with poe links

Started using kerberos.io but got frustrated with their licensing. I had thought using their hooks would be enough for my use case.

In the end I wrote some code that uses opencv to monitor the stream, look for motion, then I isolate the motion and use yolov3 to classify what is in the motion area. The motion isolation ended up being required because I didn't want the car in my driveway to be classified on every video.

Then some simple rules to control how things get saved and if I get alerted. If I am alerted the video gets uploaded to an s3 bucket, and a presigned link gets sent over telegram. Of course, I keep a local copy for some time as well :)

My cameras are all on an isolated network. The server monitoring them has two nics so it's able to route to the cameras and externally. The server consumes a lot of CPU, but I hope to eventually get a minor gpu for it to offload some of the work

It's been a very fun and rewarding project, and I hope to keep iterating.