mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
run on telling example
This commit is contained in:
parent
9b78932ab1
commit
f2f4e9d0bf
13
python_examples/face_detector_scores_idx.py
Normal file
13
python_examples/face_detector_scores_idx.py
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
from PIL import Image
|
||||
import numpy as np
|
||||
import dlib
|
||||
|
||||
img = np.array(Image.open('../examples/faces/2008_002506.jpg'))
|
||||
detector = dlib.get_frontal_face_detector()
|
||||
|
||||
dets, scores, idx = detector.run(img, 1)
|
||||
|
||||
for i, d in enumerate(dets):
|
||||
print d, scores[i], idx[i]
|
||||
|
Loading…
Reference in New Issue
Block a user