Skip to content

Instantly share code, notes, and snippets.

@bechu
Created October 18, 2013 15:15
Show Gist options
  • Save bechu/7043071 to your computer and use it in GitHub Desktop.
Save bechu/7043071 to your computer and use it in GitHub Desktop.
import cv2
if __name__ == '__main__':
# on accede au device
capture = cv2.VideoCapture(0)
while True:
# on capture une image
_, frame = capture.read()
# on l'affiche :
cv2.imshow("Track blue blob", frame)
# si interuption clavier, on quitte le prgm
if (cv2.waitKey(2) >= 0):
break
cv2.destroyAllWindows()
cv2.VideoCapture(0).release()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment