Merge pull request #1411 from serengil/feat-task-2612-fastmtcnn-coordinates-are-not-int

fastmtcnn's coordinates casted to int
This commit is contained in:
Sefik Ilkin Serengil 2024-12-26 12:35:08 +00:00 committed by GitHub
commit 701eca8812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,4 +92,4 @@ def xyxy_to_xywh(regions: Union[list, tuple]) -> tuple:
x, y, x_plus_w, y_plus_h = regions[0], regions[1], regions[2], regions[3]
w = x_plus_w - x
h = y_plus_h - y
return (x, y, w, h)
return (int(x), int(y), int(w), int(h))