Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

code to take the picture


import picamera

# Setup the camera such that it closes
# when we are done with it.
print("About to take a picture.")
with picamera.PiCamera() as camera:
    camera.resolution = (1280,720)
    camera.capture("/home/pi/Desktop/cookie/newimage.jpg")
print("Picture taken.")

Comment

PREVIOUS NEXT
Code Example
Python :: validate ip address 
Python :: range(len()) in python 
Python :: import path in django 
Python :: nonlocal keyword python 
Python :: python serial readline 
Python :: beautifulsoup check if text exists 
Python :: Format UTC to local timezone using PYTZ for Django 
Python :: python convert string to int 
Python :: how to merge two variables to get an array in python 
Python :: arg parse array argument 
Python :: if-else 
Python :: static files not loading 404 error django 
Python :: Tensor.expand_as 
Python :: py -m pip 
Python :: Invalid password format or unknown hashing algorithm. 
Python :: Set symmetric Using Python Set symmetric_difference() Method 
Python :: install json on python 
Python :: pretty printing using rich library in python 
Python :: parse int python 
Python :: numpy fill with 0 
Python :: size array python 
Python :: tf MaxPooling2D 
Python :: print string elements in list python 
Python :: python range in intervals of 10 
Python :: reversed python 
Python :: double quotes in python dictionary 
Python :: insert list python 
Python :: rename files with spaces in a folder python 
Python :: os.move file 
Python :: how do a plot on matplotlib python 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =