-
Notifications
You must be signed in to change notification settings - Fork 116
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
[cli] Capture Image without Autofocus #161
Comments
capture-preview just takes the liveview viewfinder. you probably can do something similar to gphoto2 --set-config eosremoterelease=Immediate --set-config eosremoterelease="Release Full" --wait-event-and-download=5s this controls the shutter directly and bypasses the half-press focusing state |
Thanks very much for this valuable input, it helped me a lot to develop the solution. I'd like to provide some feedback. Please notice, this answer is Canon specific! i solved it like:
At least on the 4000D, when the image is sucessfully downloaded, it sends the "ObjectRemoved" Event, which then identicates to end the command. This allows long and short exposure times without unnecessary long waiting time. For other people who also need to separate autofocus from the capturing process, this might be helpfull as well. It allows to use of contrast autofocus from live view to specify a specific spot in the image (in the example the center of the image, but make sure this coordinates are working for your model as well) and then try to focus on it. Badly, i have not found any event which tells the success or not, so it's necessary to control the image manually after sending this command.
|
Does someone know how to capture without prior autofocus on a Nikon D80. I am using the --trigger-capture command because I want to take several images as fast as possible one after another with different aperture values. I already tried setting the autofocusdrive=0, but the autofocus was still performed. |
Altough i'm Nikon Photographer, I use gphoto only for Canon. But i think i remember Nikon having more settings available for this matter. Try
About your HDR-capture: You could try to use the "exposure compensation" setting. there you can over- and undercompensate for +3/-3 exposure levels. The camera compensates depending on the selected mode (e.g. if you use Aperture Priority (Mode A), it increases and reduces the exposure time accordingly to the measured brightness and your compensation). This function is also available as automatic feature called bracketing and supported out of the box by Nikon cameras for many years now. My D800 from 2012 supports this. You might get used a D5000 for less than 100€ supporting it. It might be easier than doing manual setting changes. Depending on the Model, however, different sets of customization and amount of pictures might be possible, so check if the functionality you need is available on the model you'd like to buy. |
I already tried config settings for disabling the AF, but it did not work out, the camera always does the AF drive prior to the capturing process.
Bracketing would only be an option if Aperture Bracketing would be available, because I need different aperture values. As far as I know the Nikon D80 does support Aperture Bracketing. Any other suggestions? |
can you check if the setting has stuck? gphoto2 --get-config autofocus should show it to be off. If yes, can you capture a debug trace of this? |
Capturing without prior AF drive (Nikon D80). I found out how to solve this problem. $ gphoto2 --set-config controlmode=1 #1: PC mode, 0: camera mode
$ gphoto2 --set-config focusmode2="MF (selection)" # not able to to this when not in control mode = 1
$ gphoto2 --set-config f-number=f/2.8 --trigger-capture
$ gphoto2 --set-config f-number=f/8 --trigger-capture
$ gphoto2 --set-config focusmode2="AF-S"
$ gphoto2 --set-config controlmode=0 Setting |
I am lookin for a Solution for my Canon EOS 1200D - nothing works to Disable the AF. So i call the Camera to take a Picture:
So i set the Focus once:
|
@thomasst1012 can't you turn off autofocus from the lens? nice picture by the way, it reminds me of Innsbruck where I lived one semester, shouldn't be so far :D |
@simontorres - thats not so easy, the picture is from the installation last year. Thank You :) - it's not far away from Innsbruck - it´s in Vorarlberg, Montafon, Bartholomäberg. ;) |
i think your issue is, that you use |
Hei @kohlerdominik I think I solved it that way:
I was confused by this error message:
Despite the error message, the picture is taken. I'll watch it now and report to you tomorrow. Thank You |
usually you do not need to mix eosremoterelease and captureimage. eosremoterelease is basically same as pressing the shutter (half / full / releasing... depending on number), a following capture-tethered or wait-ervent-and-download will download its image. I see that with eosremoterelease=5 should be "Immediate" and eosremoterelease should be "Release Full" If this does not work, check if you set "focusmode" to Manual after autofocusing once. |
…epending on autofocus property gphoto/gphoto2#161
On Nikon... On the D80 the selectioon via "autofocus" was not yet working correctly. I have now changed the code to also honor the "autofocus" property in current libgphoto2 git master. |
@msmeissn
When i change focusmode (set-config autofocusmode=0) the camera is also still refocusing. With eosremoterelease & capture-image-and-download it works. Addendum to yesterday: Yesterday in the Evening the Camera has stopped making pictures. I think it was a trouble with the exponsure time. After a few hours of try i fixed it (added --capture-tethered):
|
I wrote "focusmode". 3 different things to check / try:
gphoto2 --set-config eosremoterelease=8 --set-config eosremoterelease=7 --wait-event-and-download=5s
|
I have tried this with multiple eosremorelease options, it always triggers the Autofocus. The Result: gphoto2 --get-config focusmode |
Hi. Is it possible to trigger only Auto-Focus without Capture-Image. I tried this below, but did not work. gphoto2 --set-config eosremoterelease="Press Half" --wait-event=5s --set-config eosremoterelease="Release Half" Thanks. |
Hi @kohlerdominik .. I see, great. I missed that. Just tried and its exactly what I am looking for. gphoto2 --set-config autofocusdrive=1 --wait-event=5s I tried only autofocusdrive=1 before and did not work. So the clue is need to use wait-event. This autofocusdrive should be a global command for Canon and Nikon ... right? Also one more ques ... in manualfocus drive ... what is the step difference between Near and Far? Like, how many "Near 1" equals to 1 "Near 2" and 1 "Near 3" .. same for Far. Is there any relation calculation? Actually, I wanted to do Timelaspe Focus Ramping. Thanks. |
I know this is an old thread, but this is exactly the issue that I'm running into. I don't need the camera/lens autofocusing on every capture with Right now I have to set the physical switch on the lens to "AF", otherwise Once I focus the camera/lens with the exposure settings I want, I want everything locked (exposure settings and the focus point locked) until I want them changed. Note: Shutter speed is always 1/200s, IS0 is always 100, I only change the aperture slightly depending on environmental conditions...... I manually focus the lens/camera with a half press of the shutter targeted at the capture target. Then I want all the exposure settings and also the lens focus locked under What settings/parameters via gphoto2 would accomplished this goal on a Canon EOS 5DS R using Note: I'm not even sure Right now the lens/camera "focusmode" are set to "One Shot", which when I'm able to lock the focus (set the lens to MF) works very well for us with our high performance flashes. But that is not available to me when using --capture-image-and-download as I mentioned (gphoto2 --capture-image-and-download will only work with the lens in the AF setting). I don't see any --get-config --autofocus command in the list of commands that indicates whether or not autofocus is on or off. Continuous AF is currently "Off". Thanks for you help and time. Greatly appreciated. |
This is maybe more like question than an issue:
Is it possible to "capture-image-and-download" without triggering AF first. I think, capture-preview does somethink like this, altough, i'm not really sure what's exactly the difference between these two.
If there's no possibility for this, i would love if this can be added.
Controller: Raspberry Pi 3
Camera: Canon 4000D
The text was updated successfully, but these errors were encountered: