Prechádzať zdrojové kódy

increase default max_disappeared to 5x FPS

Blake Blackshear 4 rokov pred
rodič
commit
d6faa18adb

+ 2 - 2
docs/docs/configuration/advanced.md

@@ -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`

+ 2 - 2
docs/docs/configuration/cameras.md

@@ -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:

+ 1 - 1
frigate/config.py

@@ -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):