mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Check horizontal placement as well
This commit is contained in:
parent
4028b2fabd
commit
65c3e9117e
@ -461,7 +461,7 @@ def detect(
|
|||||||
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 (x_min >= detect_config.width - 1) or (y_min >= detect_config.height - 1):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
width = x_max - x_min
|
width = x_max - x_min
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user