No notification after detection
Posted: Tue Jan 04, 2022 3:27 pm
Hi,
I just start to implement zmeventnotification with hook. My goal is after detecting a person is to send an alert by email. I tried a lot of things but nothing works.
The person detection works fine but i don't get any notification. Then i try to debug what could be happen, and the first result seems strange for me.
the final result of the following command is:
sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --debug --eventid 157 --eventpath=/tmp
INF [zmesdetect] [Prediction string:[s] detected:person:100% ]
DBG1 [zmesdetect] [Prediction string JSON:{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}]
[s] detected:person:100% --SPLIT--{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}
DBG1 [zmesdetect] [Writing detected image to /tmp/objdetect.jpg]
DBG1 [zmesdetect] [Writing JSON output to /tmp/objects.json]
DBG1 [zmesdetect] [Closing logs]
With the same command without specifying the --eventpath argument i don't get the objdetect.jpg and objects.json files
INF [zmesdetect] [Prediction string:[s] detected:person:100% ]
DBG1 [zmesdetect] [Prediction string JSON:{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}]
[s] detected:person:100% --SPLIT--{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}
DBG1 [zmesdetect] [Closing logs]
Does someone could tell me what could be wrong in configuration files which causes this behavior?
At worst i would like to get at least those 2 files in order to send notification by myself, or better to send notification with a specific script.
I just start to implement zmeventnotification with hook. My goal is after detecting a person is to send an alert by email. I tried a lot of things but nothing works.
The person detection works fine but i don't get any notification. Then i try to debug what could be happen, and the first result seems strange for me.
the final result of the following command is:
sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --debug --eventid 157 --eventpath=/tmp
INF [zmesdetect] [Prediction string:[s] detected:person:100% ]
DBG1 [zmesdetect] [Prediction string JSON:{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}]
[s] detected:person:100% --SPLIT--{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}
DBG1 [zmesdetect] [Writing detected image to /tmp/objdetect.jpg]
DBG1 [zmesdetect] [Writing JSON output to /tmp/objects.json]
DBG1 [zmesdetect] [Closing logs]
With the same command without specifying the --eventpath argument i don't get the objdetect.jpg and objects.json files
INF [zmesdetect] [Prediction string:[s] detected:person:100% ]
DBG1 [zmesdetect] [Prediction string JSON:{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}]
[s] detected:person:100% --SPLIT--{"labels": ["person"], "boxes": [[472, 182, 586, 452]], "frame_id": "snapshot", "confidences": [0.9960215091705322], "image_dimensions": {"original": [1080, 1920], "resized": [450, 800]}}
DBG1 [zmesdetect] [Closing logs]
Does someone could tell me what could be wrong in configuration files which causes this behavior?
At worst i would like to get at least those 2 files in order to send notification by myself, or better to send notification with a specific script.