Error on ES object detection - [Ran out of frames to read]

Pentagano

Pulling my weight
Joined
Dec 11, 2020
Messages
316
Reaction score
128
Location
Uruguay
I seem to have got everything working now but hitting one roadblock when testing an event.


Using this command:

sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --debug --eventid 146 --monitorid 3

I keep getting these errors at the end of the script:

Code:
....

12/13/21 14:50:28 zmesdetect_m4[2605] DBG3 Media.py:271 [Reading http/192.168.1.245/zm/index.php?view=image&eid=140&fid=alarm]

12/13/21 14:50:28 zmesdetect_m4[2605] DBG3 api.py:144 [No need to relogin as access token still has 119.99939278333333 minutes remaining]

12/13/21 14:50:28 zmesdetect_m4[2605] DBG3 api.py:272 [make_request called with url=http/192.168.1.245/zm/index.php?view=image&eid=140&fid=alarm payload={} type=get query={'token': xxxxxxxxxxxx'}]

12/13/21 14:50:28 zmesdetect_m4[2605] DBG1 Media.py:343 [Error reading frame: 2 of max 5 contiguous errors]

12/13/21 14:50:28 zmesdetect_m4[2605] DBG1 Media.py:246 [Reached end of frame_set]

12/13/21 14:50:28 zmesdetect_m4[2605] DBG1 detect_sequence.py:650 [Ran out of frames to read]

12/13/21 14:50:28 zmesdetect_m4[2605] FAT zm_detect.py:561 [Unrecoverable error:'object' 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 426, in main_handler
    matched_data,all_data = m.detect_stream(stream=stream, options=stream_options)
  File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/detect_sequence.py", line 812, in detect_stream
    for m in self.models[seq]:
KeyError: 'object'
]
 
Top