achoy
9th of October 2003 (Thu), 08:37
Hi,
I'm currently trying use the SDK to write an app to take some close-up photos. The problem is that the camera doesn't find the correct focus point everytime. Even when I use RemoteCapture, I still need to turn on and off the "Macro" and "AF lock" serveral times before the camera focus properly. So, my question is how to control the camera so that it finds the focus point correctly and consistently.
Just to give more details. The object is about 7cm away from the tip of the len (when it's turned on). The sequence of how I set the camera is as following:
1) Set camera in "cdSHOOTING_MODE_PROGRAM"
2) Set the desire zoom (ie to 0)
3) Set the CDSetAFDistanceSetting to cdAF_DISTANCE_CLOSE_UP (here, I assume this is equivalent to the 'Macro' in RemoteCapture).
4) Set the CDAFLock ON.
5) Release
Also, I found that the camera find the focus better if I switch between cdAF_DISTANCE_CLOSE_UP and cdAF_DISTANCE_AUTO couple times in step 3). I am not sure why but it seems like this would reset the auto-focus on the camera. However, I still can't get consistent focus on the camera with this weird method.
p.s. If someone can't replicate this problem, try changing the zoom around in step (2) before proceeding to (3).
Please help!! This is driving me crazy~~
Thx guys,
Ambrose
I'm currently trying use the SDK to write an app to take some close-up photos. The problem is that the camera doesn't find the correct focus point everytime. Even when I use RemoteCapture, I still need to turn on and off the "Macro" and "AF lock" serveral times before the camera focus properly. So, my question is how to control the camera so that it finds the focus point correctly and consistently.
Just to give more details. The object is about 7cm away from the tip of the len (when it's turned on). The sequence of how I set the camera is as following:
1) Set camera in "cdSHOOTING_MODE_PROGRAM"
2) Set the desire zoom (ie to 0)
3) Set the CDSetAFDistanceSetting to cdAF_DISTANCE_CLOSE_UP (here, I assume this is equivalent to the 'Macro' in RemoteCapture).
4) Set the CDAFLock ON.
5) Release
Also, I found that the camera find the focus better if I switch between cdAF_DISTANCE_CLOSE_UP and cdAF_DISTANCE_AUTO couple times in step 3). I am not sure why but it seems like this would reset the auto-focus on the camera. However, I still can't get consistent focus on the camera with this weird method.
p.s. If someone can't replicate this problem, try changing the zoom around in step (2) before proceeding to (3).
Please help!! This is driving me crazy~~
Thx guys,
Ambrose