Labels missing in notifications

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
blauter
Posts: 7
Joined: Fri Dec 07, 2018 7:23 pm

Labels missing in notifications

Post 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 11010 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 11010 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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Labels missing in notifications

Post 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
-
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Labels missing in notifications

Post 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
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply