Setting focus from scripts or menus - page 45 - General Discussion and Assistance - CHDK Forum
supplierdeeply

Setting focus from scripts or menus

  • 601 Replies
  • 207464 Views
Re: Setting focus from scripts or menus
« Reply #440 on: 22 / June / 2014, 13:05:13 »
Advertisements
Correlation doesn't imply causation... 
Got it. It was my aging brain.  :)
Quote
You can still get the earlier version of the script here
One more retest ?
Already tested in the morning. Results are identical.

Re: Setting focus from scripts or menus
« Reply #441 on: 22 / June / 2014, 13:30:05 »
Already tested in the morning. Results are identical.
Let's try something different.  Run the attached script with the camera in P mode (no AFL or MF).  Have it pointed off in the distance but with foreground objects also in the field of view.   It will take a series of ten pictures with focus set to 1ft out to infinity in steps.  Let's see what the resulting images tell us?

Update: script updated for more near distance shots
« Last Edit: 22 / June / 2014, 13:48:13 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Setting focus from scripts or menus
« Reply #442 on: 22 / June / 2014, 13:47:56 »
It will take a series of ten pictures with focus set to 1ft out to infinity in steps.  Let's see what the resulting images tell us?

In the first shoot lens is focused to few millimeters.
Other shoots of the series are identical, focused at less than 1 meter

UPDATE

There is a slight focus increment between 1 and 3 (maybe 4). Then stuck at less than 1 meter
« Last Edit: 22 / June / 2014, 14:07:50 by fabri22 »

Re: Setting focus from scripts or menus
« Reply #443 on: 22 / June / 2014, 13:55:48 »
In the first shoot lens is focused to few millimeters.
Other shoots of the series are identical, focused at less than 1 meter
Wow - that's harsh.

Does the SD value shown by the CHDK OSD step through the settings properly (even though the focus in the images appears locked) ??

I updated the script and reposted above.  The first picture was at 30 mm rather than 300 mm as I had intended.  I added some more near distance steps too.  See if it at least walks through those?

On both my G10 and A1200 I get a nice series of focus steps across my desk and out the window to infinity when I run it.

Update : it might be worth resetting CHDK's setup competely.  Use the CHDK Settings -> Reset Options to Default ...   menu item. 

( Note to self :  dof_subj_dist_as_near_limit is set in the CHDK Settings -> OSD Settings -> DOF Calculator -> Canon Subj. Dist. as Near Limit [ * ]  and can affect the value actually sent to set focus()  )
« Last Edit: 22 / June / 2014, 14:30:24 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Setting focus from scripts or menus
« Reply #444 on: 22 / June / 2014, 14:31:14 »
Update : it might be worth resetting CHDK's setup competely.  Use the CHDK Settings -> Reset Options to Default ...   menu item.

I did a chdk reset and nothing changed.
"There is a slight focus increment between 1 and 3 (maybe 4). Then stuck at less than 1 meter"

Thanks for your precious help in any case, waterwingz
« Last Edit: 22 / June / 2014, 14:38:28 by fabri22 »

Re: Setting focus from scripts or menus
« Reply #445 on: 22 / June / 2014, 14:44:25 »
Update : it might be worth resetting CHDK's setup competely.  Use the CHDK Settings -> Reset Options to Default ...   menu item.

I did a chdk reset and nothing changed.
"There is a slight focus increment between 1 and 3 (maybe 4). Then stuck at less than 1 meter"

Thanks for your precious help in any case, waterwingz
Does the CHDK OSD sunject distance value change with each step?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Setting focus from scripts or menus
« Reply #446 on: 22 / June / 2014, 15:00:21 »
Does the CHDK OSD sunject distance value change with each step?

Retested with DOF osd on. The battery door is smoking  :)
I check focus shots on my pc everytime to avoid false reports  ::)
Values changed between 1 and 7, then inf/inf/inf until the end.
Real focus changed between 1 and 3 (maybe 4)

Re: Setting focus from scripts or menus
« Reply #447 on: 22 / June / 2014, 17:42:14 »
Retested with DOF osd on. The battery door is smoking  :)
At some point, connecting by USB to download image becomes attactive vs wearing out small plastic parts.  ;)

Quote
I check focus shots on my pc everytime to avoid false reports. Values changed between 1 and 7, then inf/inf/inf until the end. Real focus changed between 1 and 3 (maybe 4)
This is becoming worrying. 

I actually went outside (in the rain) and took a series of shots with an updated version of the script (attached) and my G10  (with aperture locked at f2.8 ).  Subject matter was along the edge of a flower garden so there were things to look at from .5 meter out to infinity.  The script walked the G10's focus out past 30m very nicely.  I confirmed the focus changes at each step by "pixel peeping" the resulting images. The Canon "maker notes" data on subject distance in each photo was not exactly what the script reported but it was within 5% or so.

Can you try looking at the Subject Distance value in the Maker Notes section of the exif data to see what that says ?  Note that some photo software is better at reporting that than others.

I'm starting to run out of ideas about what to do but I guess I'll try the script outdoors on some of my other cameras and report back.

Ported :   A1200    SD940   G10    Powershot N    G16


Re: Setting focus from scripts or menus
« Reply #448 on: 22 / June / 2014, 18:39:34 »
The Canon "maker notes" (Exiftool 9.58) reports as "focus distance upper"
- from pic.1 to pic.10 an incremental value from 0.13 mt to 3.83 mt
- pic.11 and pic.12 have 3.83 mt too
- pics from 13 to 23 have all 65.53 mt (but real focus, by pixel peeping, is 0.5 mt or less  ??? )

Other landscape shots that i took (without any chdk use) have a "focus distance upper" of 65.53 mt and real focus to infinite.

I ran your script with MF mode and logging flagged. Attached the log file.

Re: Setting focus from scripts or menus
« Reply #449 on: 22 / June / 2014, 18:48:05 »
Update :  I may be onto something.   Or not.

While the G10 was happy to focus at various distances, the A1200 and SD940 (less expensive cameras) seem to only focus in discrete steps.  As the script walks the focus settings out towards infinity,  the reported subject distance from the Canon Maker Notes only increases every few shots.  It's like there are fixed focus points rather than a continuous focus.  However, it does go to "infinity" but I guess I need to go back out and shoot without the script to see if there is a difference in sharpness?
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal