Add clarifying comment

This commit is contained in:
Nick Mowen 2023-10-17 17:22:55 -06:00
parent f05ff552ff
commit f2a538d6c4

View File

@ -175,6 +175,7 @@ def get_region_from_grid(
if not cell or not cell["sizes"]:
return calculate_region(frame_shape, box[0], box[1], box[2], box[3], min_region)
# convert the calculated region size to relative
calc_size = (box[2] - box[0]) / frame_shape[1]
# if region is within expected size, don't resize