Open pierresa opened 1 year ago
@pierresa Could you tell me absolute path you want to have library read? Because dlib can handle only std::string so it can not understand unicode. You can resolve this issue by using FaceRecognition.InternalEncoding property.
for instance, the path string is: D:\Photos\filles.jpg
It's very weird. Path is simple. So this file may be corrupted or dlib may not support.
I want to reproduce your issue. Could you upload this file?
Or you can try Image LoadImage(byte[] array, int row, int column, int stride, Mode mode)
or Image LoadImage(Bitmap bitmap)
.
I do not think the issue is with the file as my work around consist of a file copy to Temp directory. As this work around works for me, we can close issue. The only thing that could help understand issue would be a more specific error message.
Dlib.LoadImage returns "Unable to read file". I have to copy file first to temp folder