OK, maybe the python enum is inversed ?
In libcamera_cpp_demo the enum is in the right order : controls_.set(controls::AfTrigger, 0)
In anycase, autofocus don’t work for me when switching to StreamRole::Raw … sad
OK, maybe the python enum is inversed ?
In libcamera_cpp_demo the enum is in the right order : controls_.set(controls::AfTrigger, 0)
In anycase, autofocus don’t work for me when switching to StreamRole::Raw … sad
I don’t know , but when I used it in libcamera_cpp_demo it worked well too
maybe you should try it first
Oh and I haven’t tried to change the setting of generateConfiguration({ StreamRole::Viewfinder }) to StreamRole::Raw, so for now I can’t help you with that problem , IMO that’s not for the speed but just to capture raw frames from the sensor
ref: libcamera: libcamera Namespace Reference
I have tried … and not working
About StreamRole::Viewfinder vs StreamRole::Raw … in RAW i can get a frame in about 370ms … so near the sensor full speed …
More : the frame size ( 10b/pixel vs 24b/pixel ) allow me buffering 3 frames ! … impossible using RB24 … so I really need RAW
The problem is just about setting focus.
My final goal is to manually set focus to distance ‘x’ and takes 3 frames in burst mode.
Any help or idea is welcome
[Edit] Thanks for your answers !
Hi yang,
I am getting the same segmentation fault error. My raspberry kernel version is 5.10.92 and libcamera deb version is 0.0.11 . Please suggest.