无法使用 skimage 读取 jpeg
Can't read a jpeg with skimage
我正在尝试 运行 此代码,但它不起作用。 google- 我看了,没找到答案,我在这里白看了
from skimage import io
photo = io.imread('C:\Users\comp\Desktop\Urban.jpg')
type(photo)
答案应该如下:
numpy.ndarray
错误:
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
使用双斜杠代替单斜杠
from skimage import io
photo = io.imread('C:\Users\comp\Desktop\Urban.jpg')
type(photo)
我正在尝试 运行 此代码,但它不起作用。 google- 我看了,没找到答案,我在这里白看了
from skimage import io
photo = io.imread('C:\Users\comp\Desktop\Urban.jpg')
type(photo)
答案应该如下: numpy.ndarray
错误:
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
使用双斜杠代替单斜杠
from skimage import io
photo = io.imread('C:\Users\comp\Desktop\Urban.jpg')
type(photo)