import cv2
capture = cv2.VideoCapture(0)
while(True):
# 获取一帧
ret, frame = capture.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
opencv测试函数
实时视频捕获
最新推荐文章于 2023-03-16 20:53:47 发布

2838

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



