Problems getting object detection work
Posted: Sun Aug 20, 2023 3:15 pm
Hello, I have installed zoneminder and event sever completely from scratch and according to official docs, i.e. did everything as described there. But for whatever reason and all that I‘ve tried I cannot get object detection to work in zoneminder. Opencv is properly installed and up and running. Doing object detection outside zoneminder with some sample scripts downloaded from the internet also works fine. But for whatever reason not yet in zoneminder. Could you please help me out solving it. That would be great. At the moment when I try object detection manually on the command line for a certain zoneminder event I get the following output, so something seems to be wrong with my installation?
Thanks a lot for your support.
Thanks a lot for your support.
Code: Select all
root@nano:/home/jetson/zmeventnotification# sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --eventid 369 --monitorid 1 --debug
Unrecoverable error:future feature annotations is not defined (abstracts.py, line 33) Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 556, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 267, in main_handler
log.init(name='zmesdetect_' + 'm' + args.get('monitorid'), override=g.config['pyzm_overrides'])
File "/usr/local/lib/python3.6/dist-packages/pyzm/ZMLog.py", line 227, in init
engine = create_engine(cstr, pool_recycle=3600)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/__init__.py", line 525, in create_engine
return strategy.create(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/strategies.py", line 87, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/dialects/mysql/mysqlconnector.py", line 135, in dbapi
from mysql import connector
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/__init__.py", line 32, in <module>
from .connection_cext import CMySQLConnection
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/connection_cext.py", line 40, in <module>
from .abstracts import MySQLConnectionAbstract
File "/usr/local/lib/python3.6/dist-packages/mysql/connector/abstracts.py", line 33
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined