📜  拍照的代码 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:15.594000             🧑  作者: Mango

代码示例1
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.")