numpyHDR/picamburst.py
Thomas 7e67b21baf - Removed experimental code from numpyHDR
- added picamburst for creating the ev stack
2023-03-23 12:36:45 +01:00

15 lines
370 B
Python

#!//usr/bin/python3
from picamera2 import Picamera2
from libcamera import controls
picam2 = Picamera2()
config = picam2.create_still_configuration()
picam2.configure(config)
picam2.start()
picam2.set_controls({"AwbEnable": 1, "AeEnable": 1, "AeConstraintMode": controls.AeConstraintModeEnum.Highlight})
np_array = picam2.capture_array()
print(np_array)
picam2.stop()