mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 04:05:26 +03:00
ruff formatting
This commit is contained in:
parent
fe3cdebd17
commit
5b7ff9a849
@ -523,9 +523,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,
|
||||||
|
|||||||
@ -1144,9 +1144,7 @@ class PtzAutoTracker:
|
|||||||
"target_box"
|
"target_box"
|
||||||
] + self._predict_area_after_time(
|
] + self._predict_area_after_time(
|
||||||
camera, predicted_movement_time
|
camera, predicted_movement_time
|
||||||
) / (
|
) / (camera_width * camera_height)
|
||||||
camera_width * camera_height
|
|
||||||
)
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"{camera}: Zooming prediction: predicted movement time: {predicted_movement_time}, original box: {self.tracked_object_metrics[camera]['target_box']}, calculated box: {calculated_target_box}"
|
f"{camera}: Zooming prediction: predicted movement time: {predicted_movement_time}, original box: {self.tracked_object_metrics[camera]['target_box']}, calculated box: {calculated_target_box}"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user