Skip to content

Instantly share code, notes, and snippets.

@sqd sqd/
Created Aug 8, 2018

What would you like to do?
capture colorado college webcam
import pafy
import cv2
url = '8XFlf22-46s'
vpafy =
play = vpafy.getbest()
cap = cv2.VideoCapture(play.url)
ret, frame =
cv2.imwrite('test.jpg', frame)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.