Skip to content

Commit f2f4e9d

Browse files
committed
run on telling example
1 parent 9b78932 commit f2f4e9d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
from PIL import Image
3+
import numpy as np
4+
import dlib
5+
6+
img = np.array(Image.open('../examples/faces/2008_002506.jpg'))
7+
detector = dlib.get_frontal_face_detector()
8+
9+
dets, scores, idx = detector.run(img, 1)
10+
11+
for i, d in enumerate(dets):
12+
print d, scores[i], idx[i]
13+

0 commit comments

Comments
 (0)