import cv2
vc = cv2.VideoCapture(0)
fps = 20000
size = (int(vc.get(cv2.CAP_PROP_FRAME_WIDTH)),
int(vc.get(cv2.CAP_PROP_FRAME_HEIGHT)))
vw = cv2.VideoWriter('test2-7out.avi',
cv2.VideoWriter_fourcc('X', 'V', 'I', 'D'),
fps, size)
success, frame = vc.read()
while success:
vw.write(frame)
cv2.imshow('MyCamera', frame)
key = cv2.waitKey()
if key == 27:
服务器托管网 break
success, frame = vc.rea服务器托管网d()
vc.release()
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: Python逐行读取文件内容(Python read file line by line)
thefile thefile thefile thefile thefile for item in thelist: 服务器托管网 thefile.write(“%sn”% item) thefile 服务器托管,北京服服务器托管网务器托管,服务器租用 h…