How to iterate through cameras with libcamera and Python?
Here is my Python 3.12 script:
import libcamera as lc
cm = lc.CameraManager
for cam in cm.cameras:
print(cam)
which produces:
File "/home/rock/camera/so-0.py", line 5, in
for cam in cm.cameras:
TypeError: 'property' object is not iterable
There is no up to date documentation of Python bindings and CameraManager class. AI gives me outdated examples, which no longer work. How to iterate through cameras? A link to current examples or documentation would help, too.