Page 1 of 1

Zm EventNotification Error

Posted: Tue Jul 11, 2023 5:14 am
by parsmanlin
I have installed zoneminder and opencv gpu, but when I type the following command, it gives an error and does not run, what is the problem?

Ubuntu 22.04.2 LTS
ZoneMinder v1.36.33
Opencv 4.8 ( CUDA Version: 12.1 )
Python 3.10.6

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh  1 1
Traceback (most recent call last):
  File "/var/lib/zmeventnotification/bin/zm_detect.py", line 15, in <module>
    import imutils
  File "/usr/local/lib/python3.10/dist-packages/imutils/__init__.py", line 8, in <module>
    from .convenience import translate
  File "/usr/local/lib/python3.10/dist-packages/imutils/convenience.py", line 65, in <module>
    def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
AttributeError: module 'cv2' has no attribute 'INTER_AREA'

Re: Zm EventNotification Error

Posted: Tue Jul 11, 2023 7:38 am
by Magic919
Sounds like you messed up the OpenCV install and missed something off.

Re: Zm EventNotification Error

Posted: Tue Jul 11, 2023 10:18 am
by parsmanlin
Magic919 wrote: Tue Jul 11, 2023 7:38 am Sounds like you messed up the OpenCV install and missed something off.
No, all compilation steps were completed without errors.

(opencv_cuda):
>>> import cv2
>>> cv2.__version__
'4.8.0'

Re: Zm EventNotification Error

Posted: Wed Jul 12, 2023 3:35 am
by makers_mark
parsmanlin wrote: Tue Jul 11, 2023 5:14 am I have installed zoneminder and opencv gpu, but when I type the following command, it gives an error and does not run, what is the problem?

Ubuntu 22.04.2 LTS
ZoneMinder v1.36.33
Opencv 4.8 ( CUDA Version: 12.1 )
Python 3.10.6

Code: Select all

sudo -u www-data /var/lib/zmeventnotification/bin/zm_event_start.sh  1 1
Traceback (most recent call last):
  File "/var/lib/zmeventnotification/bin/zm_detect.py", line 15, in <module>
    import imutils
  File "/usr/local/lib/python3.10/dist-packages/imutils/__init__.py", line 8, in <module>
    from .convenience import translate
  File "/usr/local/lib/python3.10/dist-packages/imutils/convenience.py", line 65, in <module>
    def resize(image, width=None, height=None, inter=cv2.INTER_AREA):
AttributeError: module 'cv2' has no attribute 'INTER_AREA'
Do you have other old manual installations?

Re: Zm EventNotification Error

Posted: Sun Jul 16, 2023 9:55 am
by parsmanlin
No, I did the installation process myself with the latest updates and the problem was solved.