-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode Path/Filename for imread and imwrite #4292
Comments
IMHO this should be specified in the documentation : here http://docs.opencv.org/master/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56 and here http://docs.opencv.org/master/d4/da8/group__imgcodecs.html#gabbc7ef1aa2edfaa87772f1202d67e0ce. |
Encoding issues.... difficult but no impossible if you have this string = Then if you want to read the file and get the filenames readable and usable, you can use some library to read the filenames of your path and then change the encoding-> |
OpenCV core team discussed the problem on weekly meeting and decided to stay conservative and do not introduce new API calls with
There are 2 alternatives to use
|
Could we perhaps at least raise an error instead of silently just failing to write? |
Raising would be indeed very helpful. I currently have to work with a Windows machine and accidentially a "Umlaut" slipped into my path. Invoking the API by Python I assumed that handling of UTF8 would be handled correctly. |
I posted a workaround on stackoverflow, that works flawless with any cv2 method: https://stackoverflow.com/a/78462365/924017 |
Unfortunately, it does not work on my machine.
|
Transferred from http://code.opencv.org/issues/1268
Unicode Path/Filename for imread and imwrite
History
Alexander Shishkov on 2012-02-12 20:47
Vadim Pisarevsky on 2012-04-04 11:58
Andrey Kamaev on 2012-05-18 14:20
n n on 2014-03-18 13:11
n n on 2014-03-19 10:48
n n on 2014-03-19 11:20
Alexander Smorkalov on 2014-04-02 01:18
The text was updated successfully, but these errors were encountered: