mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Formatting
This commit is contained in:
parent
75c5718c06
commit
4028b2fabd
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user