mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
disable debug zoom
This commit is contained in:
parent
d34dd3f491
commit
38805223ef
@ -588,11 +588,17 @@ class PtzAutoTracker:
|
|||||||
and distance <= 10
|
and distance <= 10
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.debug(f"Zoom test: left edge: {bb_left > edge_threshold * camera_width}")
|
# debug zooming
|
||||||
|
if False:
|
||||||
|
logger.debug(
|
||||||
|
f"Zoom test: left edge: {bb_left > edge_threshold * camera_width}"
|
||||||
|
)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Zoom test: right edge: {bb_right < (1 - edge_threshold) * camera_width}"
|
f"Zoom test: right edge: {bb_right < (1 - edge_threshold) * camera_width}"
|
||||||
)
|
)
|
||||||
logger.debug(f"Zoom test: top edge: {bb_top > edge_threshold * camera_height}")
|
logger.debug(
|
||||||
|
f"Zoom test: top edge: {bb_top > edge_threshold * camera_height}"
|
||||||
|
)
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Zoom test: bottom edge: {bb_bottom < (1 - edge_threshold) * camera_height}"
|
f"Zoom test: bottom edge: {bb_bottom < (1 - edge_threshold) * camera_height}"
|
||||||
)
|
)
|
||||||
@ -807,7 +813,6 @@ class PtzAutoTracker:
|
|||||||
and self.tracked_object_previous[camera] is not None
|
and self.tracked_object_previous[camera] is not None
|
||||||
and obj.obj_data["id"] == self.tracked_object[camera].obj_data["id"]
|
and obj.obj_data["id"] == self.tracked_object[camera].obj_data["id"]
|
||||||
and obj.obj_data["frame_time"] != self.previous_frame_time
|
and obj.obj_data["frame_time"] != self.previous_frame_time
|
||||||
and not all(x == 0.0 for x in obj.score_history[-3:])
|
|
||||||
):
|
):
|
||||||
if (
|
if (
|
||||||
self._below_distance_threshold(camera, obj)
|
self._below_distance_threshold(camera, obj)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user