Remove original frame clamping

This commit is contained in:
Nicolas Mowen 2022-09-22 06:03:08 -06:00 committed by GitHub
parent 65c3e9117e
commit ff852098e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,10 +662,10 @@ def process_frames(
# apply max/min to ensure values do not exceed the known frame size # apply max/min to ensure values do not exceed the known frame size
boxes = [ boxes = [
( (
max(o[2][0], 0), o[2][0],
max(o[2][1], 0), o[2][1],
min(o[2][2] - o[2][0], detect_config.width - 1), o[2][2] - o[2][0],
min(o[2][3] - o[2][1], detect_config.height - 1), o[2][3] - o[2][1],
) )
for o in group for o in group
] ]