Hi, 

I'm still trying to have a possibility in tethering to trigger autofocus
(AF) manually but not automatically.
This is useful, if AF fails in a difficult scene -- currently, if AF
fails, capturing fails too. 

Here's my idea: 

Even if AF is turned on at the lens, gphoto2 allows to bypass AF when
capturing.
There are two possibilities how to do this: 

        * 

Canon EOS cameras (and probably for others too) can be configured not to
trigger AF when pressing down the capture button. AF is still possible
but it has to be done with a different button on the backside of the
body. If the camera is configured like this, gphoto2 allows to do AF and
capturing independently from each other like this:

gphoto2 --set-config autofocusdrive=1 --wait-event=5s
gphoto2 --capture-image-and-download

        * 

there's also a second method to bypass AF which doesn't even need the
camera to be configured not to trigger AF when pressing the capture
button:

gphoto2 --set-config eosremoterelease=4 --set-config eosremoterelease=5
--capture-tethered=5

For method 1. to be used from darktable, I tried to implement the
--set-config autofocusdrive=1 command in dt. Essentially I implemented a
button (an eye symbol right from the manual focus buttons) which
triggers

dt_camctl_camera_set_property_int(darktable.camctl, NULL,
"autofocusdrive", 1);

This indeed triggers AF the first time I click on the newly implemented
button and starts the camera's AF search.
Unfortunately, after having used this AF button once, the tethering
session hangs somehow and no further commands can be sent to the camera.


Any help on how to implement this correctly would be much appreciated.

​ 
--  
 Johannes
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to [email protected]

Reply via email to