Page 1 of 1

Labels missing in notifications

Posted: Fri Dec 24, 2021 1:03 am
by blauter
Not sure how and when this broke but it seems I rarely (if ever) get labels in my notifications any longer even though the snapshot includes the bounding boxes with labels. I did upgrade zoneminder and event server to latest version just 2 weeks ago so maybe thats where things went wrong.
notification.gif
notification.gif (222.85 KiB) Viewed 12269 times
Detections are also missing from MQTT:
Message 2 received on zoneminder/11 at 6:58 PM:
{
"state": "alarm",
"name": "Ended:Front Doorbell:(192577) Motion: All",
"detection": [],
"monitor": "11",
"hookvalue": 0,
"eventtype": "event_end",
"eventid": "192577"
}

I see the proper labels in the console:
zmconsole.gif
zmconsole.gif (7.73 KiB) Viewed 12269 times
I noticed I also get this warning now as well, but not sure related since expected output is displaying:

Code: Select all

# /var/lib/zmeventnotification/bin/zm_detect.py --config objectconfig.ini --eventid 192577
[ WARN:0] global /tmp/pip-req-build-jr1ur_cf/opencv/modules/dnn/src/dnn.cpp (1442) setUpNet DNN module was not built with CUDA backend; switching to CPU
[s] detected:car:96% person:71% --SPLIT--{"labels": ["car", "person"], "boxes": [[362, 282, 454, 390], [52, 112, 344, 452]], "frame_id": "snapshot", "confidences": [0.963848352432251, 0.7135518789291382], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}
Any pointers on where to look? Detect and event server logs show no errors or warnings.

Re: Labels missing in notifications

Posted: Fri Dec 24, 2021 8:22 am
by Magic919
Config files for ZMES is where I'd start. I'd roll back to the saved ones pre-upgrade.

A read of mine suggests this might be it.

Code: Select all

use_hook_description = yes

Re: Labels missing in notifications

Posted: Fri Dec 24, 2021 6:48 pm
by asker
Whether you get bounding boxes in your phone notification or not depends on the picture URL. Make sure it is set to objdetect