# 将图像转化为数组
img_array = np.array(img)
# 返回数组行数
img_array.shape[0]
# 返回数组列数
img_array.shape[1]
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交