1.利用opencv读取。
示例代码:
cv2中的路径,不能有中文,否则读出的image为空。
imagess = cv2.imread(r'C:\Users\Administrator\Desktop\03.jpg',-1)
print(imagess.shape)
print(imagess)
'''
(800, 601, 3)
[[[254 196 174]
[254 196 174]
[254 196 174]
...
[252 253 233]
[252 253 233]
[252 253 233]]
[[254 196 174]
[254 196 174]
[254 196 174]
'''
1万+



被折叠的 条评论
为什么被折叠?



