Amend incompatible assignement warning

This commit is contained in:
Andrea Lanfranchi 2024-02-21 15:12:51 +01:00
parent ab8adf262b
commit 4713572a24
No known key found for this signature in database
GPG Key ID: 2D623A60BB279915

View File

@ -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