二、图片加载与保存

一、基本概念
1,什么是图片? 答:图像是结构化存储的数据信息
2,图像的属性 答:1、通道数目,2、宽与高,3、像素数据,4、图像类型
二、加载显示图像并保存
import cv2
import numpy as np

def get_image_info(image):
print(type(image))#
print(image.shape)# (150, 110, 3)
print(image.size)# 49500 = 150*110*3
print(image.dtype)# uint8
print(np.array(image))
'''
[[[255 255 255]
[255 255 255]
[255 255 255]
...
[255 255 255]
[255

二、图片加载与保存最先出现在Python成神之路

版权声明:
作者:Alex
链接:https://www.techfm.club/p/27093.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>