Script that will fire on focus change? - page 3 - Script Writing - CHDK Forum supplierdeeply

Script that will fire on focus change?

  • 23 Replies
  • 16254 Views
Re: Script that will fire on focus change?
« Reply #20 on: 01 / June / 2008, 09:38:25 »
Advertisements
I tried your script just now and when I half-press the shutter I get some numbers at the top that I can't interpret (R1/R2/...) and when I push it all the way I get "starting" and the camera hangs until I turn it off.

When I enable DoF as you suggested (thanks for the instructions!) it's weird - when I point at an object about 25 feet away it says SD 1.8 ... 1.8 what?? It's way more than 1.8 meters away. Not only that, if I focus  on the same object four times I get four different values: 1.8, 1.3, 2.0, 1.5.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Script that will fire on focus change?
« Reply #21 on: 01 / June / 2008, 10:08:34 »
I tried your script just now and when I half-press the shutter I get some numbers at the top that I can't interpret (R1/R2/...) and when I push it all the way I get "starting" and the camera hangs until I turn it off.

Did you forget to delete your old chdk.cfg before upgrading to Allbest?

When I enable DoF as you suggested (thanks for the instructions!) it's weird - when I point at an object about 25 feet away it says SD 1.8 ... 1.8 what?? It's way more than 1.8 meters away. Not only that, if I focus  on the same object four times I get four different values: 1.8, 1.3, 2.0, 1.5.

As for getting 4 different values, the camera is probably focusing to a slightly different distance each time, maybe even changing aperture.

And why SD is wrong.... well. I'm truly no expert in photography or the DoF calculator. Try reading the the new pdf manual, wiki and their links about the hyperfocal distance, DoF and DoF calculator. Basically, if the pdf manual is correct, the displayed DoF is near limit + 0.33*DoF. And according to http://en.wikipedia.org/wiki/Depth_of_field, that's just a common approximation which is only accurate if the subject happens to be at 1/3 of hyperfocal distance. So, add hyperfocal distance to your DoF calculator display and find out how far from it you are.

Re: Script that will fire on focus change?
« Reply #22 on: 02 / June / 2008, 03:06:20 »
When I enable DoF as you suggested (thanks for the instructions!) it's weird - when I point at an object about 25 feet away it says SD 1.8 ... 1.8 what?? It's way more than 1.8 meters away. Not only that, if I focus  on the same object four times I get four different values: 1.8, 1.3, 2.0, 1.5.
at one point when I was testing my script, I had it printing all the focus values. I learned that focus distance can be really erratic, at least on my camera. If you ar elooking at the distance values, it may be normal for them to be weird. 4 different values when focusing on 1 object was definitely the norm for me.

*

Offline brainwash

  • **
  • 95
  • Nikon D40x & A460
Re: Script that will fire on focus change?
« Reply #23 on: 22 / August / 2008, 11:11:17 »
My advice will probably not be very useful to you, but perhaps to others. I used to have the same problem with following birds and other objects in the sky. The only way to get a clear picture of a fast-moving object is to do panning. As a bonus you also get blurred background.
To set up: zoom in on an object at about the desired image distance and frame as desired. Focus on that (static) object and see what values you get for focus distance, focus depth and hyperfocal. Now set your manual focus, zoom and aperture (raise f-number if possible) to include the estimated depth of field. Half-press shutter to see if the displayed values are what you want.
The trick with high-speed panning is to know your camera well and treat it like a bionic eye ;) Practice tracking the object at wide angle while keeping it into the center of the frame. Then zoom in, little by little, and practice keeping it centered. It helps to use EVF instead of big LCD.
Remove picture review from menu (default is something like 2 secs) and while tracking either set burst mode or full-press, release to half press, full-press, a.s.o. until you get a set of pictures. Then you can start deleting from that.
As an example I have two photos which have taken about 4 seconds to shoot - that is: grab and switch on camera while removing lenscap, put camera to eye and follow object while zooming in at full tele (12x), half-press to acquire focus, shoot two or three photos if you're lucky while keeping the shutter half-pressed.
Poze Album/Sociale/2008_05_10_Valiug/IMG_6860.JPG/
Poze Album/Sociale/2008_05_10_Valiug/IMG_6873.JPG/

You can keep the other eye open while viewing through the EVF, might help you acquire the object into frame better.


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal