Browse Source

first commit

develop
Olli Graf 9 months ago
parent
commit
dceb2d7730
  1. 3
      camera/.gitignore
  2. BIN
      camera/test-python.jpg
  3. 15
      camera/testcam.py

3
camera/.gitignore

@ -0,0 +1,3 @@
bin
lib

BIN
camera/test-python.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

15
camera/testcam.py

@ -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…
Cancel
Save