Fix typing for various frame_shape members

Frame shapes are most likely defined by height and width, so a single int
cannot express that.
This commit is contained in:
Martin Weinelt 2025-05-13 05:26:49 +02:00
parent eee1f93a1b
commit 64b3d77073
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -164,7 +164,7 @@ def get_cluster_region_from_grid(frame_shape, min_region, cluster, boxes, region
def get_region_from_grid(
frame_shape: tuple[int],
frame_shape: tuple[int, int],
cluster: list[int],
min_region: int,
region_grid: list[list[dict[str, Any]]],
@ -447,7 +447,7 @@ def get_cluster_region(frame_shape, min_region, cluster, boxes):
def get_startup_regions(
frame_shape: tuple[int],
frame_shape: tuple[int, int],
region_min_size: int,
region_grid: list[list[dict[str, Any]]],
) -> list[list[int]]:
@ -481,7 +481,7 @@ def get_startup_regions(
def reduce_detections(
frame_shape: tuple[int],
frame_shape: tuple[int, int],
all_detections: list[tuple[Any]],
) -> list[tuple[Any]]:
"""Take a list of detections and reduce overlaps to create a list of confident detections."""