opencv 输出照片

import cv2 as cv

def get_image_info(image):
    print(type(image))
    print(image.shape)
    print(image.size)
    print(image.dtype)

print("_" *60)
src = cv.imread("E:/opencv/1.jpg")
cv.imshow("imput image",cv. WINDOW_NORMAL)
cv.imshow("input image",src)
# get_image_info(src)和cv.waitKey(0)不能换位置 不然窗口不会输出数据
get_image_info(src)
cv.waitKey(0)
# des 释放内存的代码?
cv.destroyAllWindows()

你可能感兴趣的:(opencv 输出照片)