Skip to content

Instantly share code, notes, and snippets.

@MarshalW
Created May 21, 2013 05:19
Show Gist options
  • Save MarshalW/5617619 to your computer and use it in GitHub Desktop.
Save MarshalW/5617619 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import cv2
cap = cv2.VideoCapture(0)
while True:
ret,im = cap.read()
cv2.imshow('video test',im)
key = cv2.waitKey(10)
if key == 27:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment