mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-15 11:32:09 +03:00
Fix
This commit is contained in:
parent
556df018a8
commit
8efdcb89a0
@ -659,15 +659,13 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
):
|
):
|
||||||
current_segment.audio.add(audio)
|
current_segment.audio.add(audio)
|
||||||
current_segment.severity = SeverityEnum.alert
|
current_segment.severity = SeverityEnum.alert
|
||||||
current_segment.update_time(frame_time, SeverityEnum.alert)
|
current_segment.last_alert_time = frame_time
|
||||||
elif (
|
elif (
|
||||||
camera_config.review.detections.labels is None
|
camera_config.review.detections.labels is None
|
||||||
or audio in camera_config.review.detections.labels
|
or audio in camera_config.review.detections.labels
|
||||||
) and camera_config.review.detections.enabled:
|
) and camera_config.review.detections.enabled:
|
||||||
current_segment.audio.add(audio)
|
current_segment.audio.add(audio)
|
||||||
current_segment.update_time(
|
current_segment.last_detection_time = frame_time
|
||||||
frame_time, SeverityEnum.detection
|
|
||||||
)
|
|
||||||
elif topic == DetectionTypeEnum.api or topic == DetectionTypeEnum.lpr:
|
elif topic == DetectionTypeEnum.api or topic == DetectionTypeEnum.lpr:
|
||||||
if manual_info["state"] == ManualEventState.complete:
|
if manual_info["state"] == ManualEventState.complete:
|
||||||
current_segment.detections[manual_info["event_id"]] = (
|
current_segment.detections[manual_info["event_id"]] = (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user