mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +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)
|
active_objects = get_active_objects(frame_time, camera_config, objects)
|
||||||
|
|
||||||
if len(active_objects) > 0:
|
if len(active_objects) > 0:
|
||||||
has_sig_object = False
|
|
||||||
detections: dict[str, str] = {}
|
detections: dict[str, str] = {}
|
||||||
sub_labels = set()
|
sub_labels = set()
|
||||||
zones: set = set()
|
zones: set = set()
|
||||||
@ -296,7 +295,7 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
self.active_review_segments[camera] = PendingReviewSegment(
|
self.active_review_segments[camera] = PendingReviewSegment(
|
||||||
camera,
|
camera,
|
||||||
frame_time,
|
frame_time,
|
||||||
SeverityEnum.alert if has_sig_object else SeverityEnum.detection,
|
severity,
|
||||||
detections,
|
detections,
|
||||||
sub_labels=sub_labels,
|
sub_labels=sub_labels,
|
||||||
audio=set(),
|
audio=set(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user