OpenCV中的图像处理
颜色空间转换
1、基本读写操作
import cv2
import numpy as np
img = cv2.imread('MyPic.png', cv2.IMREAD_GRAYSCALE)
print(img.shape)
cv2.imwrite('creat_jpg.png', img)
显示原始图像为:
输出图像结果为:
图像与原始字节之间的转换
# first we sould ...
原创
2019-12-31 17:27:11 ·
365 阅读 ·
0 评论