simple Python3 script realtime object detection

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
LBDG
Posts: 20
Joined: Mon Jun 23, 2014 10:17 am

simple Python3 script realtime object detection

Post by LBDG »

Hello

I know there are plenty of object detection script out there but I thought I would share this because it is simple to setup and requires no zoneminder changes. It is one python file which can be run with normal permission from the home folder on the zoneminder machine. Most detection scripts I found were either too complicated to setup or had too many options so decided to make my own.

Basically it scans zoneminder monitors of choice every seconds and upon object detection emails and/or stores (to a folder of choice) the detected frame/frames images.

Uses opencv (YOLOv4)

For more details:
https://github.com/lbdc/zm-alarm

*** NOTE: I am not a programmer so code may not meet any standards.
User avatar
burger
Posts: 434
Joined: Mon May 11, 2020 4:32 pm

Re: simple Python3 script realtime object detection

Post by burger »

added to https://wiki.zoneminder.com/ZMES I thought the zm-movie script you previously made was well made, so I'm sure this is good as well. One of the weaknesses of ZMES is that it could become abandonware if no one manages it, so it's good to have other options. Thanks.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
Post Reply