Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #To save a Video File
- import numpy as np
- import cv2
- cap = cv2.VideoCapture(0)
- # Define the codec and create VideoWriter object
- fourcc = cv2.cv.CV_FOURCC(*'XVID')
- out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement