Ask Your Question

almed's profile - activity

2018-12-16 13:26:54 -0600 received badge  Student (source)
2018-12-16 13:26:49 -0600 received badge  Self-Learner (source)
2018-12-16 13:26:49 -0600 received badge  Teacher (source)
2018-12-14 05:12:24 -0600 marked best answer imread and Russian language path to img

Could you please help with following problem:

When I try to open file with imread and path on file system to this file has Russian latter I catch only blank array. If I change path to English letters only - file upload in right way. In future its will not be possible change names of files to English.

code: img = cv2.imread('E:\folder 3.1\тест.jpg',1) #тест - its a Russian latters

P.s.: I use python and work in windows. Thanks in advance!

Alexander.

2018-12-14 05:09:02 -0600 commented answer imread and Russian language path to img

I have a solution: f = open(some_kyrillic_name, "rb") chunk = f.read() chunk_arr = np.frombuffer(chunk, dtype=np.uint8)

2018-12-14 05:08:34 -0600 commented answer imread and Russian language path to img

I have a solution: f = open(some_kyrillic_name, "rb") chunk = f.read() chunk_arr = np.frombuffer(chunk, dtype=np.uint8)

2018-12-14 04:42:29 -0600 commented answer imread and Russian language path to img

berak, thank you again for fast answer. Does it work on you PC? Now I have a new one error:ValueError: invalid literal

2018-12-14 04:13:16 -0600 commented answer imread and Russian language path to img

Thank you fast answer! But now I have error:TypeError: buf is not a numpy array, neither a scalar Code: f = open(some_

2018-12-14 02:59:26 -0600 asked a question imread and Russian language path to img

imread and Rissian language path to img Could you please help with following problem: When I try to open file with imre