Olli Graf
9 months ago
3 changed files with 18 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
bin |
|||
lib |
|||
|
After Width: | Height: | Size: 66 KiB |
@ -0,0 +1,15 @@ |
|||
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() |
Loading…
Reference in new issue