是否可以使用train_shape_predictor_ex.cpp.html和face_landmark_detection_ex.cpp.html来训练不同的地标数字?默认情况下,两者都检测68
正面中的地标。我只想检测39
地标。我可以使用train_shape_predictor_ex
. 但是face_landmark_detection_ex
输出附加的消息:
抛出异常
Error detected at line 25.
Error detected in file /Users/Vareto/Documents/Dlib/dlib/../dlib/image_processing/render_face_detections.h.
Error detected in function std::vector dlib::render_face_detections(const std::vector &, const dlib::rgb_pixel).
Failing expression was dets[i].num_parts() == 68.
std::vector render_face_detections()
Invalid inputs were given to this function.
dets[0].num_parts(): 39