Open ilirosmanaj opened 8 months ago
@davidplowman a very interesting problem I have been checking recently. Hope you can help!
Here are some suggestions:
'LensPosition': 13
to the controls for creating the configuration).dropout_frames
. However it's likely that a moving hand might not produce a good peak for CDAF.conf_thresh
and conf_epsilon
, the algorithm will accept PDAF with lower confidence. It might be less stable.LIBCAMERA_LOG_LEVELS=RPiAf:0
The last three columns print contrast, phase and confidence (for phase) measurements.Thanks for the response, @davidplowman @njhollinghurst.
I am unsure what the next reasonable step would be in this case. Is there a way to completely disable CDAF?
My end goal is simple, but to do so, I need some understanding of Picamera2 and libcamera as well.
Let me explain my problem in a couple of bullet points:
Note: what I am trying to capture is my hand, which is in front of the camera (about 10-15 cm from the camera itself).
Here is my camera tunning file (adding only the autofocus part here):
Here is a test script I am using. For testing, please use a lighter in front of the camera so that the hand is visible to the camera more quickly (and this is what I will be using as well - an LED that lightens the hand).
A test run:
So this took 2s already, which is way too much for what I want. I would need it at a maximum of 200ms speed.
To wrap up, I need to run the AF on lenses [13, 14, 15, 16, 17, 19] as quickly as possible in a trustable way.
I do expect this to be a combination of picamera and libcamera as well, so happy to perform tunning as much as needed. I failed to find some good explanation of the PDAF algorithm and their parameters so that I would know how to change.