Created
October 2, 2020 02:38
-
-
Save suadanwar/d0063efac962777fac6cbf32758dda8d to your computer and use it in GitHub Desktop.
This is a sample code for Getting Started with Raspberry Pi Camera Tutorial(Take A Picture).
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
from picamera import PiCamera | |
from time import sleep | |
camera = PiCamera() | |
camera.rotation = 180 | |
camera.start_preview() | |
sleep(5) | |
camera.capture('/home/pi/Desktop/image.jpg') | |
camera.stop_preview() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment