Closed huihut closed 4 years ago
Please enable the "Use Unicode UTF-8 for worldwide language support" setting .All Settings -> Time & Language -> Language -> "Administrative Language Settings"
This can solve my computer problem, but the program written with DlibFaceLandmarkDetector will run on the user's computer (including Win7, MacOS).
Is it better to have the DlibFaceLandmarkDetector_LoadShapePredictor
interface of dlibfacelandmarkdetector.dll
receive the UTF-8 character shapePredictorFilename
?
You can set the relative file path from the project folder.
//dlibShapePredictorFilePath = Utils.getFilePath (dlibShapePredictorFileName);
dlibShapePredictorFilePath = "./Assets/StreamingAssets/sp_human_face_68.dat";
Thank you very much, I solved it.
#if UNITY_WEBGL && !UNITY_EDITOR
var getFilePath_Coroutine = DlibFaceLandmarkDetector.Utils.getFilePathAsync (dlibShapePredictorMobileFileName, (result) => {
coroutines.Clear ();
dlibShapePredictorFilePath = result;
Run ();
});
coroutines.Push (getFilePath_Coroutine);
StartCoroutine (getFilePath_Coroutine);
#else
#if UNITY_EDITOR
dlibShapePredictorFilePath = "./Assets/StreamingAssets/sp_human_face_68.dat";
#elif UNITY_STANDALONE_WIN
dlibShapePredictorFilePath = "./Avalive_Data/StreamingAssets/sp_human_face_68.dat";
#elif UNITY_ANDROID || UNITY_IOS
dlibShapePredictorFilePath = DlibFaceLandmarkDetector.Utils.getFilePath (dlibShapePredictorMobileFileName);
#else
dlibShapePredictorFilePath = DlibFaceLandmarkDetector.Utils.getFilePath (dlibShapePredictorFileName);
#endif
Run();
#endif
In the
FaceLandmarkDetector.cs
shapePredictorFilePath = "D:/code/git/测试test/Assets/StreamingAssets\sp_human_face_68.dat"
Failed to load D:/code/git/测试test/Assets/StreamingAssets\sp_human_face_68.dat
I want it to run in the path of Chinese characters, what should I do?