오픈 하드웨어/라즈베리파이
picamera 활성화
hujoo
2023. 5. 31. 11:27
$ 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.")