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.
15 lines
342 B
15 lines
342 B
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()
|
|
|