mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
fastmtcnn's coordinates casted to int
This commit is contained in:
parent
139d6a7251
commit
d375962cab
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user