RuntimeError:无法打开shape_predictor_68_face_landmarks.dat?

问题描述 投票:0回答:1

我已经使用python OpenCV创建了一个项目,并使用了shape_predictor_68 ... .dat文件。现在,当我使用cx_freeze构建项目时,一切正常,但是当我运行应用程序构建时,它显示错误。

enter image description here

python opencv cx-freeze
1个回答
0
投票

将解决方案提交给similar issue here

如果出现此错误:

RuntimeError:无法打开/ home / lyz / openface-master / demos / web /../../ models / dlib / shape_predictor_68_face_landmarks.dat

您可能没有正确下载dlibs模型,请再次从https://cmusatyalab.github.io/openface/setup/执行步骤4。简而言之,将CD插入您的openface库并运行./models/get-models.sh

此外,我无法告诉您如何运行此程序,但也可能是在当前venv-解释器所在的位置未正确导入库的情况。

© www.soinside.com 2019 - 2024. All rights reserved.