티스토리 뷰

$ ifconfig 명령

Preferences/Raspberry Pi Configuration/Interface에서 camera를 enable 시킴

 

사진 촬영

from picamera import PiCamera
import time
camera = PiCamera()
camera.resolution = (1280, 720)
camera.vflip = True
camera.contrast = 10
camera.image_effect = "watercolor"
time.sleep(2)
camera.capture("/home/pi/Pictures/img.jpg")
print("Done.")