increase default max_disappeared to 5x FPS

This commit is contained in:
Blake Blackshear 2021-02-04 07:20:04 -06:00
parent 1cbe6f77ee
commit d6faa18adb
3 changed files with 5 additions and 5 deletions

View File

@ -41,8 +41,8 @@ Global object detection settings. These may also be defined at the camera level.
```yaml
detect:
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: double the frame rate)
max_disappeared: 10
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
max_disappeared: 25
```
### `logger`

View File

@ -276,8 +276,8 @@ cameras:
# Optional: enables detection for the camera (default: True)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: double the frame rate)
max_disappeared: 10
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
max_disappeared: 25
# Optional: save clips configuration
clips:

View File

@ -746,7 +746,7 @@ class MotionConfig():
class DetectConfig():
def __init__(self, global_config, config, camera_fps):
self._enabled = config['enabled']
self._max_disappeared = config.get('max_disappeared', global_config.get('max_disappeared', camera_fps*2))
self._max_disappeared = config.get('max_disappeared', global_config.get('max_disappeared', camera_fps*5))
@property
def enabled(self):