mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-15 03:22:10 +03:00
Adjust timing
This commit is contained in:
parent
13fad9706d
commit
a12063e19d
@ -40,7 +40,7 @@ logger = logging.getLogger(__name__)
|
||||
THUMB_HEIGHT = 180
|
||||
THUMB_WIDTH = 320
|
||||
|
||||
THRESHOLD_ALERT_ACTIVITY = 120
|
||||
THRESHOLD_ALERT_ACTIVITY = 40
|
||||
THRESHOLD_DETECTION_ACTIVITY = 30
|
||||
|
||||
|
||||
@ -504,7 +504,7 @@ class ReviewSegmentMaintainer(threading.Thread):
|
||||
self._publish_segment_start(
|
||||
self.active_review_segments[activity.camera_config.name]
|
||||
)
|
||||
elif frame_time > (
|
||||
elif segment.severity == SeverityEnum.detection and frame_time > (
|
||||
segment.last_detection_time + THRESHOLD_DETECTION_ACTIVITY
|
||||
):
|
||||
self._publish_segment_end(segment, prev_data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user