Fix incorrect object classification crop

This commit is contained in:
Nicolas Mowen 2025-11-07 10:53:41 -07:00
parent 1918e9682b
commit c2203ead61

View File

@ -418,8 +418,8 @@ class CustomObjectClassificationProcessor(RealTimeProcessorApi):
obj_data["box"][2], obj_data["box"][2],
obj_data["box"][3], obj_data["box"][3],
max( max(
obj_data["box"][1] - obj_data["box"][0], obj_data["box"][2] - obj_data["box"][0],
obj_data["box"][3] - obj_data["box"][2], obj_data["box"][3] - obj_data["box"][1],
), ),
1.0, 1.0,
) )