blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.94k stars 1.73k forks source link

Static objects "re-detected" after periods without motion detected #1273

Closed brewtangclan closed 3 years ago

brewtangclan commented 3 years ago

Describe the bug Static objects (e.g., parked vehicles) are detected as new when motion is detected after long periods (several seconds) without motion.

Version of frigate 0.8.1-D376F6B

Computer Hardware

Camera Info:

Additional context It seems that the lack of motion / object detection not being run is interpreted as "no objects detected", beyond the "max_disappeared" threshold, causing Frigate to treat the previously-detected objects as no longer present. Next motion event (unrelated to the object in question) triggers object detection, which detects the object.

Ideally, when there are "active" object detections (still present as of the last time object detection was run) but no motion, to either infer that any detected objects are still present at the location they were last detected, or not count motionless/detectionless frames toward the max_disappeared threshold.

blakeblackshear commented 3 years ago

This is by design in the current version. There are already several related issues open.

arshsingh commented 3 years ago

Is there any way to differentiate stationary objects in the event data? I've setup notifications with home-assistant, but if there's a car parked in the driveway it keeps sending notifications for it every few minutes.

blakeblackshear commented 3 years ago

Not really. The best option for now is discussed here: https://github.com/blakeblackshear/frigate/discussions/1128

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.