什么图像
代码
import cv2 as cv
#d打开摄像头
def video_demo():
capture=cv.VideoCapture(0)
while(True):
ret,frame = capture.read()
frame = cv.flip(frame, 1) #镜像变换
cv.imshow("video",frame)
c=cv.waitKey(50)
if c==27:
break
#加载图像
def get_image_info(image):
print(type(image))
print(image.shape)
print(image.size)
print(image.dtype)
print("======hello python======")
src=cv.imread("E:/study2.png")
cv.namedWindow("input image",cv.WINDOW_AUTOSIZE)
#cv.imshow("input image",src)
#get_image_info(src)
video_demo()
cv.waitKey(0)
cv.destroyAllWindows()