mirror of
https://github.com/serengil/deepface.git
synced 2025-06-11 13:57:09 +00:00
Amend incompatible assignement warning
This commit is contained in:
parent
ab8adf262b
commit
4713572a24
@ -210,6 +210,5 @@ def align_face(
|
||||
return img, 0
|
||||
|
||||
angle = float(np.degrees(np.arctan2(right_eye[1] - left_eye[1], right_eye[0] - left_eye[0])))
|
||||
img = Image.fromarray(img)
|
||||
img = np.array(img.rotate(angle))
|
||||
img = np.array(Image.fromarray(img).rotate(angle))
|
||||
return img, angle
|
||||
|
Loading…
x
Reference in New Issue
Block a user