Closed ilirosmanaj closed 5 months ago
@ilirosmanaj are you using the Camera v3 Wide or Normal variant here? You can find more details on the PDAF algorithms and tuning params in our camera tuning guide.
@njhollinghurst can provide more guidance here as well.
Hi @naushir - I am using the wide variant in this case. I tried playing with most of the parameters and understanding the PDAF logic from the source code, but unfortunately, I couldn't get very far with it since I think I lack some basic understanding of this.
Changes tried:
My concern is whether the AF is trying PDAF, then failing, and then jumping to CDAF. Is there a way to enforce PDAF only and limit it to rounded numbers of lens positions?
Closing this, please track this issue at https://github.com/raspberrypi/picamera2/issues/944.
My end goal is simple, but to do so, I need some understanding of Picamera2 and libcamera as well. In this case I am using picamera2 as well, but I think the wrapper is not really important and most of the logic would fall into libcamera tunning.
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.