improve photo zoom - speed or increment - Script Writing - CHDK Forum

improve photo zoom - speed or increment

  • 4 Replies
  • 3224 Views
improve photo zoom - speed or increment
« on: 01 / July / 2012, 22:19:42 »
Advertisements
Hi all,

Is there a way to improve the camera's photographic (i.e. non-video) zoom via CHDK? By "improve" I mean slow down the zoom speed (I saw one post for zoom_rate but that doesn't appear to be a chdk command) or increase/decrease the increment? When I use the camera's zoom wheel, it increments in huge numbers (for my needs) of 50, 61, 73, 80, etc. I need to finer grained zooming for my project at diybookscanner.org. Using overrides for Distance to Subject sometimes causes the A2200 to crash, so maybe I need a script? Or, have I reached the limits of the CHDK + A2200? Thanks!
« Last Edit: 01 / July / 2012, 22:21:24 by mellow-yellow »

Re: improve photo zoom - speed or increment
« Reply #1 on: 02 / July / 2012, 02:54:40 »
You need to use set_zoom() command and put incrementing values in a loop or something like that (maybe you like to do so on keypresses- depend what you need.

There's also set_zoom_speed() for CHDK.

Read here:
http://chdk.wikia.com/wiki/CHDK_scripting#set_zoom_.2F_set_zoom_rel_.2F_get_zoom_.2F_set_zoom_speed
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline reyalp

  • ******
  • 13432
Re: improve photo zoom - speed or increment
« Reply #2 on: 02 / July / 2012, 03:41:58 »
Note that zoom_speed only works on some of the cameras with a lot of zoom steps. For the cameras that only come with ~5-10 steps in the canon firmware, that's all you get, and you can't change the speed. As far as I know, this includes all the A series and Ixus/SD.
Don't forget what the H stands for.

*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: improve photo zoom - speed or increment
« Reply #3 on: 02 / July / 2012, 04:08:18 »
Hi all,

Is there a way to improve the camera's photographic (i.e. non-video) zoom via CHDK? By "improve" I mean slow down the zoom speed (I saw one post for zoom_rate but that doesn't appear to be a chdk command) or increase/decrease the increment? When I use the camera's zoom wheel, it increments in huge numbers (for my needs) of 50, 61, 73, 80, etc. I need to finer grained zooming for my project at diybookscanner.org. Using overrides for Distance to Subject sometimes causes the A2200 to crash, so maybe I need a script? Or, have I reached the limits of the CHDK + A2200? Thanks!

Are you talking about zoom (field of view) or focus (subject distance) - you mention both in your post?
Is it the size of the image in the frame (zoom) or the sharpness of the image (focus) that is the problem?

The A2200 has only 8 zoom steps and they are fixed - you can't zoom to a position in between the built in ones.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


Re: improve photo zoom - speed or increment
« Reply #4 on: 02 / July / 2012, 09:52:51 »
Thank you all. Yes, I do mean field of view (zoom) instead of manual focus. It also sounds like I may be at the limit of the a2200's abilities, so CHDK might not help. I appreciate your responses!

 

Related Topics