roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.51k stars 155 forks source link

Flashing or Lightning Motion Trigger #678

Open roflcoopter opened 9 months ago

roflcoopter commented 9 months ago

Discussed in https://github.com/roflcoopter/viseron/discussions/675

Originally posted by **ceewanna** September 21, 2023 Currently my setup will undergo almost full-time recording as a result of flashing or lightening light. I have tried lowering the fps but I suppose it's already very low, i.e. 3. For indoor activity I have fps 3 but for outdoor activity which involves vehicle, it requires around 8-12 fps to work in my case. I am not so sure if it is possible to set a threshold number which the motion trigger needs to make consecutively to qualify for motion detected.

Introduce a new config option, consecutive_frames, which specifies the number of consecutive frames of motion that is required to trigger motion detection.

tdashmike commented 6 months ago

I'm trying to fix a similar issue for when the camera is turning the IR on or off. Does consecutive_frames work both for background subtractor and mog2? What fps is it being based off of, the video fps or motion detection fps? Thank you.

roflcoopter commented 6 months ago

consecutive_frames option has not been implemented yet sadly, so it cannot be used as of this moment