Difference between revisions of "ZMES"

From ZoneMinder Wiki
Jump to navigationJump to search
Line 17: Line 17:
This happens to me following the default guides. I'm probably missing a step, but the below solves it for me:
This happens to me following the default guides. I'm probably missing a step, but the below solves it for me:
<pre>
<pre>
the install path though is local to the build folder. so it needs to be copied...
the install path is local to the build folder, but the module is further down a few directories. so the shared object / module needs to be copied to the path...
therefore:
therefore:


root@zmes:/home/dev/build# python3 -m site
root@zmes:/home/user/build# python3 -m site
sys.path = [
sys.path = [
     '/home/dev/build',
     '/home/user/build',
     '/usr/lib/python39.zip',
     '/usr/lib/python39.zip',
     '/usr/lib/python3.9',
     '/usr/lib/python3.9',
Line 32: Line 32:
USER_SITE: '/root/.local/lib/python3.9/site-packages' (doesn't exist)
USER_SITE: '/root/.local/lib/python3.9/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
ENABLE_USER_SITE: True
root@zmes:/home/dev/build# cp lib/python3/cv2.cpython-39-x86_64-linux-gnu.so /usr/local/lib/python3.9/dist-packages/.
root@zmes:/home/user/build# cp lib/python3/cv2.cpython-39-x86_64-linux-gnu.so /usr/local/lib/python3.9/dist-packages/.
root@zmes:/home/dev/build# python3
root@zmes:/home/user/build# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)  
Python 3.9.2 (default, Feb 28 2021, 17:03:44)  
[GCC 10.2.1 20210110] on linux
[GCC 10.2.1 20210110] on linux

Revision as of 04:02, 19 August 2023

The Event Notification Server sits along with ZoneMinder and offers real time notifications, support for push notifications as well as Machine Learning powered recognition. As of today, it supports:

   detection of 80 types of objects (persons, cars, etc.)
   face recognition
   deep license plate recognition

I will add more algorithms over time. Ref: https://github.com/ZoneMinder/zmeventnotification

In plain terms, why would you want to use ZMES? Because it avoids false positives associated with weather, automobiles, nature, and a number of other factors. ZMES will get motion detection to detect correctly in the 90-99% range. To do this with Zoneminder's built in motion detection is more difficult.

Setup

Refer to https://zmeventnotification.readthedocs.io/en/latest/guides/install.html

Troubleshooting

I installed opencv per the zmeventnotification docs, but import cv2 doesn't work...?

This happens to me following the default guides. I'm probably missing a step, but the below solves it for me:

the install path is local to the build folder, but the module is further down a few directories. so the shared object / module needs to be copied to the path...
therefore:

root@zmes:/home/user/build# python3 -m site
sys.path = [
    '/home/user/build',
    '/usr/lib/python39.zip',
    '/usr/lib/python3.9',
    '/usr/lib/python3.9/lib-dynload',
    '/usr/local/lib/python3.9/dist-packages',
    '/usr/lib/python3/dist-packages',
]
USER_BASE: '/root/.local' (exists)
USER_SITE: '/root/.local/lib/python3.9/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
root@zmes:/home/user/build# cp lib/python3/cv2.cpython-39-x86_64-linux-gnu.so /usr/local/lib/python3.9/dist-packages/.
root@zmes:/home/user/build# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> quit()