Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import picamera
- with picamera.PiCamera() as camera:
- camera.resolution = (2592, 1944) # Set the resolution to the maximum supported by the OV5640 chipset
- camera.start_preview()
- time.sleep(2) # Allow the camera to adjust to the lighting conditions
- camera.capture('image.jpg')
- camera.stop_preview()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement