fix variable scope

This commit is contained in:
Blake Blackshear 2023-06-11 08:29:03 -05:00
parent 17e810dead
commit 22987190fb

View File

@ -635,8 +635,8 @@ def get_cluster_candidates(frame_shape, min_region, boxes):
)
# if region could be smaller and either box would be too small
# for the resulting region, dont cluster
if (cluster_region[2] - cluster_region[0]) > min_region:
should_cluster = True
if (cluster_region[2] - cluster_region[0]) > min_region:
for b in potential_cluster:
box = boxes[b]
# boxes should be more than 5% of the area of the region