Как сделать классы в dlib?

Здраствуйте, иска по этой теме решения и нашёл только такое: https://stackoverflow.com/questions/44465354/how-t...
Там код на c++ и описания функции не нашёл нигде (именно evaluate_detectors)
  • Вопрос задан
  • 52 просмотра
Решения вопроса 1
mcborrrov
@mcborrrov Автор вопроса
detector1 = dlib.fhog_object_detector("detector.svm")
# In this example we load detector.svm again since it's the only one we have on
# hand. But in general it would be a different detector.
detector2 = dlib.fhog_object_detector("detector.svm") 
# make a list of all the detectors you want to run.  Here we have 2, but you
# could have any number.
detectors = [detector1, detector2]
image = dlib.load_rgb_image(faces_folder + '/2008_002506.jpg')
[boxes, confidences, detector_idxs] = dlib.fhog_object_detector.run_multiple(detectors, image, upsample_num_times=1, adjust_threshold=0.0)
for i in range(len(boxes)):
    print("detector {} found box {} with confidence {}.".format(detector_idxs[i], boxes[i], confidences[i]))


Взял отсюда:
https://github.com/davisking/dlib/blob/master/pyth...
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы