Hi,
I've followed the guide to setup zmeventnotification and object detection. However when I manually run the detect_wrapper.sh I get the following error:
Traceback (most recent call last):
File "/usr/bin/detect.py", line 73, in <module>
filename1, filename2, filename1_bbox, filename2_bbox = utils.download_files(args)
File "/usr/local/lib/python3.7/dist-packages/zmes_hook_helpers/utils.py", line 129, in download_files
input_file = opener.open(url)
File "/usr/lib/python3.7/urllib/request.py", line 523, in open
req = meth(req)
File "/usr/lib/python3.7/urllib/request.py", line 1240, in do_request_
raise URLError('no host given')
urllib.error.URLError: <urlopen error no host given>
The logs show the following:
10/03/19 09:51:48 zmesdetect_m5[9371] INF detect.py:60 [---------| app version: 4.3.5 |------------]
10/03/19 09:51:48 zmesdetect_m5[9371] DBG utils.py:216 [allowing self-signed certs to work...]
10/03/19 09:51:48 zmesdetect_m5[9371] DBG utils.py:232 [[monitor-5] overrides key:detect_pattern with value:(person)]
10/03/19 09:51:48 zmesdetect_m5[9371] DBG utils.py:237 [adding polygon: param [219,304 1113,278 1066,863 177,852]]
10/03/19 09:51:48 zmesdetect_m5[9371] DBG utils.py:232 [[monitor-5] overrides key:models with value:yolo,face]
10/03/19 09:51:48 zmesdetect_m5[9371] DBG utils.py:127 [Trying to download https:/zoneminder.topnoc.co.uk/zm/index.php?view=image&eid=225050&fid=alarm&username=admin&password=*****]
If I paste the URL from the logs above into my browser I successfully get a snapshot of the event.
So any ideas where this is going wrong?
Cheers,
Jon
issue with object detection zmevetnotification
Re: issue with object detection zmevetnotification
Never mind I figured it out... the default objectconfig.ini file has the following sample entry
[general]
portal=https:/server/zm
I'd used https:/zoneminder.topnoc.co.uk for mine... where as it should be https://zoneminder.topnoc.co.uk
Doh
[general]
portal=https:/server/zm
I'd used https:/zoneminder.topnoc.co.uk for mine... where as it should be https://zoneminder.topnoc.co.uk
Doh