Created
September 29, 2015 16:27
-
-
Save mathiasose/508295f6b0a9f9172fd6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/python3.4 | |
| from picamera import PiCamera | |
| from sys import stdout | |
| RES = (640, 480) | |
| FPS = 30 | |
| STREAM = stdout.buffer | |
| with PiCamera(resolution=RES, framerate=FPS) as cam: | |
| cam.start_recording(STREAM, format='rgb') | |
| try: | |
| while True: pass | |
| except KeyboardInterrupt: | |
| cam.stop_recording() | |
| exit(0) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment