yolov7-daemon, secondary object detection to eliminate false event notification #1886
Replies: 2 comments 2 replies
-
I have implemented something similar with Yolov8, except it also decides if the resulting movie file should be kept or not. One issue your script might have is that if the event is long - for example there might be wind constantly moving vegetation, or a person moving about in front of the camera for long periods of time - if the processing is only triggered at the end of the event, users might get alerts a long time after the relevant motion occurred. This might be ok depending on your application though |
Beta Was this translation helpful? Give feedback.
-
I mentioned about long running events because I just had an issue with one of my systems in the last few days. The weather has been windy, and I discovered that events kept on running for hours because of the constant movement from wind - so notifications can be delayed a long time. If you can arrange to have the cameras covering an area without vegetation, or are able to mask off the vegetation completely in Motion, then your script could still work with satisfactory results though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
never could get secondary detection to work within motion so this should run on_event_end.
this came to fruition after digging through a conversation here on github about similar issues with secondary_detection and a desire to keep everything in memory to save R/W on the disk unless it is "worth" keeping.
all made in chatgpt.
https://github.com/feelingwalnut/yolov7_daemon
daemonized the detection, this version gets a directory passed to it when the event ends, searches for the image to process, makes a decision to dump it or move it and, if set up, will message the user with the annotated version of the image.
or i've also a wrapper script for on_picture_save. this processes the image and decides to dump/move and messages similarly.
https://github.com/feelingwalnut/yolov7_detect_wrapper
i'm not providing detailed setup instructions, just saving some time/effort if you want a similar solution.
the wrapper has an issue where if the event is long, it may process the image and take action while files are being saved, leaving crumbs.
the daemon waits until event end and has a queue.
Beta Was this translation helpful? Give feedback.
All reactions