import matplotlib.pyplot as plt
img_arr = plt.imread('../img1.png')
print(img_arr)
运行效果:
解析图片后是个三维数组:
我们进一步操作:
import matplotlib.pyplot as plt
img_arr = plt.imread('../img1.png')
plt.imshow(img_arr)
plt.show()
运行效果:
老婆到坐标系上了,哈哈哈!
import matplotlib.pyplot as plt
img_arr = plt.imread('../img1.png')
print(img_arr)
运行效果:
解析图片后是个三维数组:
我们进一步操作:
import matplotlib.pyplot as plt
img_arr = plt.imread('../img1.png')
plt.imshow(img_arr)
plt.show()
运行效果:
老婆到坐标系上了,哈哈哈!