import cv2
capture = cv2.VideoCapture(0)
while(1)
ret, frame = capture.read()
print frame.shape[0], frame.shape[1]
cv2.imshow("results", frame)
c = cv2.waitKey(5) & 0xff
if c == 27:
cv2.destroyAllWindows()
capture.release()
break;
python调用摄像头
最新推荐文章于 2024-02-29 22:22:46 发布
496

被折叠的 条评论
为什么被折叠?



