mirror of
https://github.com/aladdinpersson/Machine-Learning-Collection.git
synced 2026-02-20 13:50:41 +00:00
cleaned code
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import face_alignment
|
||||
from skimage import io
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=False)
|
||||
input = io.imread('mee.jpg')
|
||||
preds = fa.get_landmarks(input)
|
||||
print(preds[0].shape)
|
||||
plt.imshow(input)
|
||||
plt.plot(preds[0][:, 0], preds[0][:, 1], "ro")
|
||||
plt.show()
|
||||
#plt.savefig('myimage.png')
|
||||
Reference in New Issue
Block a user