-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set AFL(autofocus locking) in libgphoto2 #91
Comments
there is the "aelaflmode" config variable, ... However it seems as if the D3300 does not expose it via its API . :/ |
Thank you for your reply and i am so sorry for that i didn't notice your anwser. It has been confirmed that the D3300 does not support AFL via its API. So i tried to capture the image in LiveView mode and it did work for me. But now i meet some problem when i using gp_camera_capture_preview to get preview image data in a while loop and i get the error message below: *** Contexterror ***
} I wonder if i didn't use the api well, thus the application went wrong ? Thank you for your reply. |
Hi, I am developing a application and using Nikon D3300 controlled by libgphoto2 on ubuntu14.04. I found that the camera couldn't auto focus successfully in the darkness, so that the method capture_to_file() return failed code and print error message: "Context Error, Out Of Focus". I wonder if there is a way to set AFL by linux shell command or c/c++ code. My idea is that calling AFL method when calling autofocus method return GP_OK in brightness and then turn to darkness so the camera can take a picture successfully.
Thank you!
The text was updated successfully, but these errors were encountered: