ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
408 stars 128 forks source link

No alpr details in zoneminder "Cause" field after detecting a car. #388

Closed connectnet closed 3 years ago

connectnet commented 3 years ago

Event Server version app:6.1.21, pyzm:0.3.46

Hooks version (if you are using Object Detection) app:6.1.21, pyzm:0.3.46

Are you using MLAPI? (Y/N) n

The version of ZoneMinder you are using: v1.34.23

(Bug)

Details There there are no alpr details in zoneminder "Cause" field after detecting a car and no pictures where uploaded to platerecognizer But when I run manually with sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --eventid 473 --monitorid 2 zm_detect.py the license plate is recognize well.

Automatically created: Cause [s] detected:car:99% Motion: All (no debug entry in zmesdetect_m2.log, only in zmeventnotification.log)

Manually created:

[ WARN:0] global ~/opencv/opencv/modules/dnn/src/dnn.cpp (1451) setUpNet DNN module was not built with CUDA backend; switching to CPU
[s] detected:car:99% alpr:xxxx88:90% --SPLIT--{"labels": ["car", "alpr:xxxx88"], "boxes": [[0, 112, 496, 450], [6, 353, 89, 416]], "frame_id": "snapshot", "confidences": [0.9882818460464478, 0.905], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}

**Debug Logs (if applicable)** zmesdetect_m2.log is empty for this event

zmeventnotification.log:

11.04.2021 10:16:45.500136 zmeventnotification[169357].DBG [main:1010] [|----> FORK:Monitor-2 (3), eid:473 parse of hook:[s] detected:car:99%  and {"labels": ["car"], "boxes": [[0, 112, 496, 450]], "frame_id": "snapshot", "confidences": [0.9882818460464478], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}]
11.04.2021 10:16:45.500203 zmeventnotification[169357].DBG [main:1010] [|----> FORK:Monitor-2 (3), eid:473 hook start returned with text:[s] detected:car:99%  json:{"labels": ["car"], "boxes": [[0, 112, 496, 450]], "frame_id": "snapshot", "confidences": [0.9882818460464478], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}} exit:0]
pliablepixels commented 3 years ago

zmesdetect_m2.log is empty for this event

Then I have no idea. We need to find the debug logs for zmesdetect monitor 2 when that happened.