I have some directorys with Umlaute like "Bänder"
I want to read in. From this question here Python not able to open file with non-english characters in path , I know that I have to convert my Path to utf-8
f = 'data\\Bänder'
s = f.encode('utf-8')
#works
open(s)
#does not work
img = cv2.imread(s)
Using the encoded version results in the error:
TypeError: bad argument type for built-in operation
Casting it back to a string, or decoding it will lead to no image read
I am using Windows 10, Python > 3 and Spyder / Anaconda