Python打印我的相机捕获的0元素矩阵

时间:2019-11-02 21:29:43

标签: python

我尝试在控制台中打印摄像机捕获的实时矩阵,它显示的所有内容都是0元素矩阵,但是当我读取随机图像并尝试打印图像矩阵时,它起作用了:< / p>

import cv2 , time

#THIS IS THE IMAGE AI READ
image = cv2.imread("C:\\Users\\user\\Desktop\\LionKing.jpg")
print("Your image matrix is :",image)

#This is the capture
video = cv2.VideoCapture(0)
check, frame = video.read()
print(check)
print("Your capture matrix is :",frame)
video.release()

print(frame)的结果:

This is the random image matrix

0 个答案:

没有答案