Search found 17 matches

by tpcarmen
Thu Jun 08, 2017 3:08 am
Forum: ZoneMinder 1.30.x
Topic: zm remote mysql server.
Replies: 2
Views: 2837

Re: zm remote mysql server.

Make sure you can actually connect as the zm user from the machine zm is running on.

From the command prompt type:

mysql --host=YourServerAddress -u UserName -p --protocol=TCP

If you can't connect that way, Zoneminder can't connect either.
by tpcarmen
Wed Jun 07, 2017 12:21 am
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

but for experimentation I would like to make a button or another column to select both views, one from zm and other after it runs through yolo. Sounds great! Also the FrameMatches table .... are the times synced with the event id and/or frame id? Neither. The FrameMatches table is linked to the Fra...
by tpcarmen
Tue Jun 06, 2017 7:48 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

I hate to keep diverting this topic, but I've never tried tiny-yolo mentioned by tpcarmen. Its speed is amazing, but its prediction capability is quite low. But I do think tiny-yolo is very impressive and potentially a candidate for real-time analysis. I'll look into how its training is done. I sus...
by tpcarmen
Tue Jun 06, 2017 1:00 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Yep! Those are results all right! 8-)

Very cool, thanks for playing with it!

If you start picking up invalid detections, you can raise "thresh" in zmdn.conf. Probabilities that are less than "thresh" aren't INSERTed into the DB.
by tpcarmen
Tue Jun 06, 2017 3:36 am
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Very cool! It's running and waiting for frames that have a score greater than "MinFrameScoreToCheck" from the config file. When it finds one, it runs the detection code, and INSERTs records into the FrameMatches table, listing what it found in the frame. All we need now is for someone to g...
by tpcarmen
Tue Jun 06, 2017 2:14 am
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

It's supposed to create the config file by itself.

Try getting the newest code from github.
by tpcarmen
Tue Jun 06, 2017 12:02 am
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Set debug=1 in the /etc/zmdn.conf and see how far it gets and what the last thing is it says.
by tpcarmen
Mon Jun 05, 2017 8:01 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

you might have to fix the makefile to point to where your mysqsl libs are. It might be different than on my system.
by tpcarmen
Mon Jun 05, 2017 7:15 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

You're almost there! You need the mysql libs.

Ubuntu/Debian: apt-get install libmysqlclient libmysqlclient-dev

Centos/Redhat/Fedora: yum install mysql-devel
by tpcarmen
Mon Jun 05, 2017 5:53 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Both looking at image data via the Frame table, or processing live streams should be options. A daemon process that can be started to achieve this along the path tpcarmen is suggesting, something like zmaudit.pl? The real-time analysis need only be applied maybe in the alarm frames and then at firs...
by tpcarmen
Mon Jun 05, 2017 3:59 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Yes, using a CNN approach without a GPU is extremely slow. Here is another approach if you want to tinker - this approach directly reads from ZM's shared memory buffer and does face/object/or whatever recognition. That won't hold up when the system starts tossing out a lot of frames to analyze, whi...
by tpcarmen
Mon Jun 05, 2017 3:51 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

The training data to modify the weights file I think needs to be refined. I have not tried Tiny YOLO yet. The training data is the key, but I don't know how to get access to the training images, so I used it as-is. Tiny YOLO worked, but guessed wrong a lot. If you edit the weights file, maybe you c...
by tpcarmen
Mon Jun 05, 2017 2:00 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Cool! That's how I got started, it is a lot of fun, but it takes time for it to create the new image and draw the boxes and write them out, so I ended up removing all the actual image output code and just pop the names of the objects into the new ZM.FrameMatches table. However it would be nice to ha...
by tpcarmen
Mon Jun 05, 2017 2:10 am
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

Re: I wrote an object-detection add-on for ZM

Yes, I beleive so. Try setting GPU=0 in the Makefile. (it's the first line). To get the GPU stuff working and get really high performance, you'll need an nVidia CUDA compatible graphics card and the CUDA tooolkit from https://developer.nvidia.com/cuda-downloads However just for trying it out, you ca...
by tpcarmen
Sun Jun 04, 2017 5:30 pm
Forum: ZoneMinder 1.30.x
Topic: I wrote an object-detection add-on for ZM
Replies: 37
Views: 44555

I wrote an object-detection add-on for ZM

Right now, it's running on the latest ZM release on CentOS 7.3. It's a stand-alone C app that populates a table with matched objects (people, cars, etc), so besides "something moved" now ZM has the data for "a person" is in this frame. Or "a car" or any of a number of o...