mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Formatting
This commit is contained in:
parent
90be56e635
commit
6a3d15f1e1
@ -78,7 +78,12 @@ class ExternalEventProcessor:
|
||||
def finish_manual_event(self, event_id: str, end_time: float) -> None:
|
||||
"""Finish external event with indeterminate duration."""
|
||||
self.event_sender.publish(
|
||||
(EventTypeEnum.api, EventStateEnum.end, None, {"id": event_id, "end_time": end_time})
|
||||
(
|
||||
EventTypeEnum.api,
|
||||
EventStateEnum.end,
|
||||
None,
|
||||
{"id": event_id, "end_time": end_time},
|
||||
)
|
||||
)
|
||||
|
||||
def _write_images(
|
||||
|
||||
@ -11,4 +11,4 @@ class EventTypeEnum(str, Enum):
|
||||
class EventStateEnum(str, Enum):
|
||||
start = "start"
|
||||
update = "update"
|
||||
end = "end"
|
||||
end = "end"
|
||||
|
||||
@ -536,9 +536,7 @@ class CameraState:
|
||||
):
|
||||
max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[
|
||||
self.name
|
||||
][
|
||||
"max_target_box"
|
||||
]
|
||||
]["max_target_box"]
|
||||
side_length = max_target_box * (
|
||||
max(
|
||||
self.camera_config.detect.width,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user