record video from webcam by python and cv2

前端 未结 0 455
悲哀的现实
悲哀的现实 2021-02-05 15:54

Hi i use this code to record from webcam for 10 sec:

import cv2

camera = cv2.VideoCapture(10)
return_value, video = camera.read()
cv2.imwrite(\'hello\'+\'.mp4\',         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题