This commit is contained in:
Josh Hawkins 2024-05-08 09:21:02 -05:00
parent ac7944a8ea
commit 3444d340f9

View File

@ -606,7 +606,7 @@ class ZoneConfig(BaseModel):
if explicit:
self.coordinates = ",".join(
[
f"{int(points[i]) / frame_shape[1]},{int(points[i + 1]) / frame_shape[0]}"
f"{round(int(points[i]) / frame_shape[1], 3)},{round(int(points[i + 1]) / frame_shape[0], 3)}"
for i in range(0, len(points), 2)
]
)