mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 05:05:26 +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:
|
def finish_manual_event(self, event_id: str, end_time: float) -> None:
|
||||||
"""Finish external event with indeterminate duration."""
|
"""Finish external event with indeterminate duration."""
|
||||||
self.event_sender.publish(
|
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(
|
def _write_images(
|
||||||
|
|||||||
@ -11,4 +11,4 @@ class EventTypeEnum(str, Enum):
|
|||||||
class EventStateEnum(str, Enum):
|
class EventStateEnum(str, Enum):
|
||||||
start = "start"
|
start = "start"
|
||||||
update = "update"
|
update = "update"
|
||||||
end = "end"
|
end = "end"
|
||||||
|
|||||||
@ -536,9 +536,7 @@ class CameraState:
|
|||||||
):
|
):
|
||||||
max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[
|
max_target_box = self.ptz_autotracker_thread.ptz_autotracker.tracked_object_metrics[
|
||||||
self.name
|
self.name
|
||||||
][
|
]["max_target_box"]
|
||||||
"max_target_box"
|
|
||||||
]
|
|
||||||
side_length = max_target_box * (
|
side_length = max_target_box * (
|
||||||
max(
|
max(
|
||||||
self.camera_config.detect.width,
|
self.camera_config.detect.width,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user