mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
increase default max_disappeared to 5x FPS
This commit is contained in:
parent
1cbe6f77ee
commit
d6faa18adb
@ -41,8 +41,8 @@ Global object detection settings. These may also be defined at the camera level.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
detect:
|
detect:
|
||||||
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: double the frame rate)
|
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
|
||||||
max_disappeared: 10
|
max_disappeared: 25
|
||||||
```
|
```
|
||||||
|
|
||||||
### `logger`
|
### `logger`
|
||||||
|
@ -276,8 +276,8 @@ cameras:
|
|||||||
# Optional: enables detection for the camera (default: True)
|
# 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
|
# This value can be set via MQTT and will be updated in startup based on retained value
|
||||||
enabled: True
|
enabled: True
|
||||||
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: double the frame rate)
|
# Optional: Number of frames without a detection before frigate considers an object to be gone. (default: 5x the frame rate)
|
||||||
max_disappeared: 10
|
max_disappeared: 25
|
||||||
|
|
||||||
# Optional: save clips configuration
|
# Optional: save clips configuration
|
||||||
clips:
|
clips:
|
||||||
|
@ -746,7 +746,7 @@ class MotionConfig():
|
|||||||
class DetectConfig():
|
class DetectConfig():
|
||||||
def __init__(self, global_config, config, camera_fps):
|
def __init__(self, global_config, config, camera_fps):
|
||||||
self._enabled = config['enabled']
|
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
|
@property
|
||||||
def enabled(self):
|
def enabled(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user