img = cv2.imread('test.jpg')
dets = detector.run(img, 1)
for i, d in enumerate(dets):
    print('Detection {}, score: {}, face_type:{}'.format(d, scores[i], idx[i]))
crop = img[d.top():d.botton(), d.left():d.right()]
cv2.imwrite('cropped.jpg', crop)
how to save/crop detected faces in dlib python