Formatting

This commit is contained in:
Nick Mowen 2022-09-21 10:08:29 -06:00
parent 75c5718c06
commit 4028b2fabd

View File

@ -459,11 +459,11 @@ def detect(
y_min = int(max(0, (box[0] * size) + region[1])) y_min = int(max(0, (box[0] * size) + region[1]))
x_max = int(min(detect_config.width - 1, (box[3] * size) + region[0])) x_max = int(min(detect_config.width - 1, (box[3] * size) + region[0]))
y_max = int(min(detect_config.height - 1, (box[2] * size) + region[1])) y_max = int(min(detect_config.height - 1, (box[2] * size) + region[1]))
# ignore objects that were detected outside the frame # ignore objects that were detected outside the frame
if y_min >= detect_config.height - 1: if y_min >= detect_config.height - 1:
continue continue
width = x_max - x_min width = x_max - x_min
height = y_max - y_min height = y_max - y_min
area = width * height area = width * height