Created
October 18, 2013 15:15
-
-
Save bechu/7043071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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