mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Fix bug with creating review segment
This commit is contained in:
parent
9751f91b91
commit
8dc37579e4
@ -237,7 +237,6 @@ class ReviewSegmentMaintainer(threading.Thread):
|
||||
active_objects = get_active_objects(frame_time, camera_config, objects)
|
||||
|
||||
if len(active_objects) > 0:
|
||||
has_sig_object = False
|
||||
detections: dict[str, str] = {}
|
||||
sub_labels = set()
|
||||
zones: set = set()
|
||||
@ -296,7 +295,7 @@ class ReviewSegmentMaintainer(threading.Thread):
|
||||
self.active_review_segments[camera] = PendingReviewSegment(
|
||||
camera,
|
||||
frame_time,
|
||||
SeverityEnum.alert if has_sig_object else SeverityEnum.detection,
|
||||
severity,
|
||||
detections,
|
||||
sub_labels=sub_labels,
|
||||
audio=set(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user