import cv2
capture = cv2.VideoCapture(0)
while(True):
ret, frame = capture.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
python使用opencv开启摄像头
猜你喜欢
转载自blog.csdn.net/qq_26018075/article/details/106978728
今日推荐
周排行