mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Account for 0 index
This commit is contained in:
parent
70c05978a4
commit
c8fcc2cd64
@ -652,8 +652,8 @@ def process_frames(
|
||||
(
|
||||
max(o[2][0], 0),
|
||||
max(o[2][1], 0),
|
||||
min(o[2][2] - o[2][0], detect_config.width),
|
||||
min(o[2][3] - o[2][1], detect_config.height),
|
||||
min(o[2][2] - o[2][0], detect_config.width - 1),
|
||||
min(o[2][3] - o[2][1], detect_config.height - 1),
|
||||
)
|
||||
for o in group
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user