I wrote a script to manipulate some pictures with cv2
in python.
Now I need to save these files, but some of the filenames contain german letters ("ä, ü, ö")
.
Unfortunately it seems the cv2
function imwrite()
can't handle this and writes the filenames as Bögen instead of Bögen.
I tried to convert the pathname
to UTF-8
and other encodings via
path.encode("utf-8")
but this just leads to a
"TypeError: bad argument type for built-in operation"
Has anyone any experience with problems like that?