Python/picamera2 to read camera properties
Python/picamera2 to read camera properties.
picam_info.py
Output run on Raspberry Pi 5/8G & Camera Module 3 Wide NoIR:
picam_info.py
"""
Python/picamera2 exercise:
to read camera properties.
"""
import picamera2
from importlib.metadata import version #New in Python version 3.8.
picam2 = picamera2.Picamera2()
camera_properties = picam2.camera_properties
print("=============================================")
print(picamera2.__name__, version(picamera2.__name__)) # get version of picamera2
print("=============================================")
for keys, values in camera_properties.items():
print(keys, ":", values)
Output run on Raspberry Pi 5/8G & Camera Module 3 Wide NoIR:
=============================================
picamera2 0.3.16
=============================================
Model : imx708_wide_noir
UnitCellSize : (1400, 1400)
Location : 2
Rotation : 180
PixelArraySize : (4608, 2592)
PixelArrayActiveAreas : [(16, 24, 4608, 2592)]
ColorFilterArrangement : 0
ScalerCropMaximum : (0, 0, 0, 0)
SystemDevices : (20750, 20752, 20753, 20755, 20756, 20757, 20760, 20740, 20741, 20742, 20743, 20744)
Comments
Post a Comment