Built face/vehicle add-on, but need a little help integrating it

Forum for questions and support relating to the 1.30.x releases only.
Locked
tpcarmen
Posts: 17
Joined: Fri May 19, 2017 1:52 am

Built face/vehicle add-on, but need a little help integrating it

Post by tpcarmen »

I built an add-on using Darknet/YOLO and an nVidia graphics card, that processes the ZM images and updates the Frames table to indicate which images contain interesting things like people & cars.

I'd like to add a couple of checkboxes to the events page that says something like Show People/Show Cars, which would filter the frames down to those that contain people and cars.

The catch is that I'm having a little trouble figuring out how the Events page is actually built and where it's query is.

I'm looking for this: https://zm.example.com/zm/index.php?vie ... ]=DateTime . . .

If anybody could toss me a clue where I could add a couple of checkboxes and a new SQL query, I'd appreciate it.

Once I get the switches moderately integrated I'd be happy to put it up for download.

Thanks!

Terry
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Built face/vehicle add-on, but need a little help integrating it

Post by rockedge »

start looking (on my Ubuntu based system) in

Code: Select all

/usr/share/zoneminder/www/skins/classic/views/events.php
and:

Code: Select all

/usr/share/zoneminder/www/skins/classic/views/eventdetail.php
sounds like a great plugin!
tpcarmen
Posts: 17
Joined: Fri May 19, 2017 1:52 am

Re: Built face/vehicle add-on, but need a little help integrating it

Post by tpcarmen »

Thanks!

It's pretty amazing. I can't actually take credit for the detection part, but built a ZM database interface for it.

It's a C app that runs independently of ZM, eats the Event and Frame records, processes the images and tags the frames as appropriate.

I'll see if I can work on it over the weekend.

Terry
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Built face/vehicle add-on, but need a little help integrating it

Post by rockedge »

any progress?
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Built face/vehicle add-on, but need a little help integrating it

Post by iconnor »

Hey Terry, are you the guy on reddit talking about the same thing? In any event, I'm happy to try to hand hold/whatever assist you..

You can find me on IRC, or just converse over email/whatever.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Built face/vehicle add-on, but need a little help integrating it

Post by rockedge »

I found the idea interesting so have also begun to experiment with Darknet/YOLO OpenCv integration with zoneminder. So far I am crunching the jpg images but also working on analyzing real-time streams. Question is how and where to best integrate. Event index page as mentioned sounds logical.
Locked