Hacker News new | ask | show | jobs
by Roark66 1264 days ago
Not the original poster, but I recommend zoneminder(open source) software. I do the same as the parent. I have an old cpu in a server that does motion detection on multiple h264 HD streams and only once (zone based) motion is detected it feeds it into a SSDLite_MobileDet object detection running on a pcie edge TPU (a cheap Google made AI accelerator). Same can be done with no accelerator, but I plan on adding many more cameras.

(Zmeventnotification add on is used for edgetpu stuff.)

Important things to note. Streams are recorded at 30fps,but motion detection runs at only 5fps as I found it better for slow moving objects. Also be prepared for the motion detection to run horribly until you tune it in, but although many more user friendly software packages exist I recommend zoneminder, because no other give so much control over motion detection parameters. I have one camera that looks at a 100m long field with multiple bushes and trees moving in the wind. It needs to be less sensitive for nearby stuff(bottom of the frame) and a lot more for far away. It has to exclude rain, snow, switches to IR etc. Only ZM allows me to tweak it properly and now that I did it runs with no false positives for days.

2 comments

I wish zoneminder's setup was better - it's frankly abysmal. https://www.how2shout.com/linux/how-to-install-zoneminder-on... - and this may not even be up to date. The official docs are no help, only covering up to 18.04, and not being functional. There are docker images, but they're deprecated/unsupported. This may all have been de rigeur when zoneminder was first being created (in 2002!) but expecting this level of hackery to set up an application in 2023 is somewhat taking the piss. The UI isn't that much better - it's the kind of application sysadmins would build for each other, reminding me a lot of a typical router admin app.
Indeed it is true, I hated it when I was setting it up, but I love how it works now... So, I still recommend it, but only to people that don't mind looking at code if things don't work.
I get similar results with AgentDVR. Kind of crazy how good that software is.