")
# 看一下数据的存储维度
image.shape
# 返回:(121, 121, 3)
# 将读入的数据image打印出来
print(image)
'''
如果读入数据失败,返回值将不是一个...:
could not find a writer for the specified extension in function cv::imwrite_
所以,我们在使用OpenCV时候要注意图片文件的扩展名....imread('lena.jpg')
cv2.imwrite('converted_lena_1.jpg', convert_img1(img,2.2,50))
cv2.imwrite('converted_lena..., 121, 3)
new_img = cv2.resize(img,(40,40),interpolation=cv2.INTER_AREA)
cv2.imwrite('new_img1.jpg',....imread('lena.jpg')
# 转换为灰度图像
gray_img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
cv2.imwrite('gray_lena.jpg