AI hooks working for anyone running 1.30.4 and Debian 9?

Discussion topics related to mobile applications for ZoneMinder
Post Reply
SkippyDo
Posts: 97
Joined: Mon Nov 20, 2017 6:49 pm

AI hooks working for anyone running 1.30.4 and Debian 9?

Post by SkippyDo » Sat Feb 02, 2019 10:31 pm

I'd love to hear from anyone who has successfully gotten zmeventserver and the yolo3 hook(s) working with ZM 1.30.4 and Debian Stretch.

I had push notifications and AI detection stuff working really well on ZM 1.34.3 and Debian Sid, but the combination of ZM 1.34.3 and Debian Sid was just too unstable so I have reverted back to Debian Stretch and ZM 1.30.4. I currently have zmeventserver operating as it should. After hassling with python, getting versions all mixed up, I believe that I'm now down to an issue with openCV, requiring version 3, which is not available for Debian Sid. I'm worried that trying to cobble it might end up in another trashed system (I'm a bit tired of rebuilding things).

Pretty much stuck here:
sudo -u www-data /usr/bin/detect_wrapper.sh 3 retuns:

Traceback (most recent call last):
File "/usr/bin/detect_yolo.py", line 18, in <module>
import cv2
ImportError: No module named 'cv2'

Internet turns up a bunch of sketchy "solutions," most that worry me that going down those paths will result in a trashed system: many folk do complete fresh OS installs and a couple of wand wavings....

User avatar
asker
Posts: 1072
Joined: Sun Mar 01, 2015 12:12 pm

Re: AI hooks working for anyone running 1.30.4 and Debian 9?

Post by asker » Sat Feb 09, 2019 4:37 pm

I can't really help on Debian - haven't a clue. But a few notes:

a) Unless you are able to get open CV 3+ installed, yolo detection won't work
b) I'd strongly recommend not using 1.30.4 - its very old, and I have no idea what will/will not be supported. The hook part of the code depends on ZM supporting specific image retrieval modes which may not be available with 1.30.4 (I don't know for sure).
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

bbunge
Posts: 2404
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: AI hooks working for anyone running 1.30.4 and Debian 9?

Post by bbunge » Tue Feb 12, 2019 3:45 pm

Have not had much success getting Zmninja to work with Pi 3B+ on Debian.
However, have loaded Bionic and ZM 1.32.3 on Pi 3B+ and have Zmninja working. See: viewtopic.php?f=12&t=28050&sid=590cf382 ... 12c3756a9e

SkippyDo
Posts: 97
Joined: Mon Nov 20, 2017 6:49 pm

Re: AI hooks working for anyone running 1.30.4 and Debian 9?

Post by SkippyDo » Sun Feb 17, 2019 6:12 pm

Appreciate the replies. As there are no newer production releases of ZM than 1.30.4 and because newer non-production versions of ZM (I can only speak to 1.32.3) are not stable under Debian (due to requiring running development branch of Debian- Sid) I have little choice than to continue to run ZM 1.30.4, doing so, of course, without the AI detection hooks.

Until stable newer versions of ZM and Debian are available I may look to just utilize the push notification feature (w/o analysis).

Again, the AI stuff (I had used yolo) worked great on ZM 1.32.3 and Debian Sid, but my problem was with the later two and not the AI/yolo stuff.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests