Ich bin total noob wie es zu dlib kommt. Ich weiß, wie man Gesichtsformmodell direkt von der Akte lädt und es funktioniert.Dlib deserialize Gesicht Form Modell mit iStream
dlib::shape_predictor face_shape_predictor_;
dlib::deserialize("shape_predictor_68_face_landmarks.dat") >> face_shape_predictor_;
Aber wie aus istream zu deserialisieren?
Ich habe den folgenden Code:
dlib::shape_predictor face_shape_predictor_;
std::stringstream face_data_stream;
loadDataToStream(face_data_stream);
dlib::deserialize(face_shape_predictor_, face_data_stream);
Und ich weiß nicht, wie es die Arbeit.
Antwort kann hier gefunden werden: http://stackoverflow.com/questions/37724457/is-it-possible-to-load-read-shape-predictor-68-face-landmarks-dat-at-compile- tim – Evgeniy