Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
342 B

9 months ago
from picamera2 import Picamera2
from libcamera import controls
from time import sleep
picam = Picamera2()
config = picam.create_preview_configuration()
picam.configure(config)
picam.start()
picam.set_controls({"AfMode": controls.AfModeEnum.Continuous})
sleep(2)
picam.capture_file("/tank/cameratests/terri/test-python.jpg")
picam.close()