Search code examples
pythonopencvcx-freeze

RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat?


I´ve made a project with python OpenCV, and used the shape_predictor_68... a .dat file. Now when I build the project with cx_freeze, everything does right, but when I run the app build, it shows a error.

enter image description here


Solution

  • I am also facing the same issue but after some search, I get to know my shape_predictor_68_face_landmarks.dat is not updated or correct so I replace it with another and issue resolved, the link for the new shape_predictor_68_face_landmarks.dat file is https://github.com/AKSHAYUBHAT/TensorFace/blob/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat

    replace the new file with older one.