簡體   English   中英

使用 Dlib 進行人臉地標檢測

[英]Facial Landmark Detection using Dlib

是否可以使用train_shape_predictor_ex.cpp.htmlface_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

就錯誤消息而言,這一點非常清楚。

據說雖然你有39標記(恭喜你訓練了它!),演示仍在嘗試在render_face_detections()函數中繪制68

39 != 68

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM