ZoneMinder / zmeventnotification

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

objdetect_mp4 doesnt show detected object polygons #332

Closed kanemari closed 3 years ago

kanemari commented 3 years ago

Before you create an issue, please make sure you have read the README. If you are asking about the object detection part, I don't provide support for it unless you've tried hard enough.

Event Server version 6.05

The version of ZoneMinder you are using: 1.35.10

What is the nature of your issue when clicking on the link in the 'cause' column of the events screen in ZM, the animated gif doesnt show any object polygons to highlight the object that has been detected.

Details

after setting the picture_url to objdetect_mp4 (and enabling create_animation), the objects appear to be detected correctly based on the description inserted into the motion cause description. however, the polygons that normally outline the detected object in a static gif are not shown in the animated gif.

Debug Logs (if applicable)

no errors related to this are showing in the system logs.

kanemari commented 3 years ago

actually this could be related to a change to the ZM API behaviour with SSL certificates. previously it didnt throw an error if the cert name didnt match the URL string in the config file (i.e. cert CN name must be the same as ZM_API server string) but it started doing this after I upgraded a few packages yesterday. I fixed the certificate error and now the image link is back to a static GIF with polygon outlines.

if this is the expected behaviour, then feel free to close. it would be cool if the objdetect.mp4 file could have moving polygons in it though, like the youtube video of yolov4 on the documentation website.

pliablepixels commented 3 years ago

Yes, this is expected behavior. You won't see moving polygons because object detection is only done for one or two frames at most. The ES doesn't detect polygons for all frames in the video. The GIF or MP4 that is created just takes frames from the existing video - it does not re-run object detection.