mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Add clarifying comment
This commit is contained in:
parent
f05ff552ff
commit
f2a538d6c4
@ -175,6 +175,7 @@ def get_region_from_grid(
|
|||||||
if not cell or not cell["sizes"]:
|
if not cell or not cell["sizes"]:
|
||||||
return calculate_region(frame_shape, box[0], box[1], box[2], box[3], min_region)
|
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]
|
calc_size = (box[2] - box[0]) / frame_shape[1]
|
||||||
|
|
||||||
# if region is within expected size, don't resize
|
# if region is within expected size, don't resize
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user