8mm film scanner / How many pictures possible per ten seconds? - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

8mm film scanner / How many pictures possible per ten seconds?

  • 82 Replies
  • 20418 Views
Zoom setting and focusing on script
« Reply #10 on: 20 / October / 2015, 04:53:20 »
Advertisements
Hi all,

I have a Canon Ixus 55 with the appropriate hack kit, and it works fine.

I am using this to build a 8mm film scanner; therefore, I need to have the zoom set at maximum, and to shoot 40 test images with focus starting from 1 on to 40, so I can calibrate the view.

I have tested the following script, which I modified from the zoom-shoot example, but it takes only one image and then shuts down the camera. I was wondering if my camera is able to do what I am requesting, or whether my script fails?

It zooms out, takes one picture, and appears to be getting ready to take image #2; but then it dies and kills the camera too.

I am attaching a test image I have been able to obtain when using the zoom lever and autofocus, but for shootin 5,500 images, this is not feasible - I need a focus and zoom lock before running the motion detection to know when to shoot.

Any help greatly appreciated!



print "Zooming-out..."

set_zoom 127

for s=1 to 40
  print "Shoot", s, "of", 40
  set_focus s
 shoot
next s

end
« Last Edit: 20 / October / 2015, 05:29:53 by heikkiH »

*

Offline msl

  • *****
  • 1276
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Zoom setting and focusing on script
« Reply #11 on: 20 / October / 2015, 07:56:30 »
Your values are not usable. The ixus 55 has 7 zoom steps. Try the uBASIC command get_zoom_steps. The near focus limit is 30 mm. With a maximum of  the focal length the near focus limit will be greater.

The value of set_focus/get_focus corresponds with mm.

msl
CHDK-DE:  CHDK-DE links

Re: Zoom setting and focusing on script
« Reply #12 on: 20 / October / 2015, 08:10:46 »
Thank you for that already. Now I tried this:


@title Focus Bracket Steps
@param d Near Focus (mm)
@default d 30
@param e Far Focus (mm)
@default e 100
@param f Step Increment (mm)
@default f 5
@param myzoom Zoom Stage (value)
@default z 7
@param x Focus value
@default x 30

for z = 1 to get_zoom_steps
set_zoom z   

for x=d to e step f
  set_focus x
  shoot
next x

next z

end


But it fails just as fast. I wonder if you could draft a working script in Basi that would step through the allowed values of the zoom, and took shots at every zoom step focusing from 30 to 100 millimeters?

I am in your debt already :)

Zoom setting and focusing on script
« Reply #13 on: 20 / October / 2015, 08:55:44 »
According to the testing reported here,  the ixus55 should allow MF with just the set_focus() statement.

Try adding a sleep 2000 statement right before the set_focus statement and also right before the shoot statement.

Code: [Select]
@title Focus Bracket Steps
@chdk_version 1.3
@param d Near Focus (mm)
@default d 30
@param e Far Focus (mm)
@default e 100
@param f Step Increment (mm)
@default f 5
@param myzoom Zoom Stage (value)
@default z 7
@param x Focus value
@default x 30
n=1
set_record 1
sleep 2000
for z = 1 to get_zoom_steps
set_zoom z   
print "zoom:" z
for x=d to e step f
   sleep 2000
   set_focus x
   print "focus:" x
   sleep 2000
   shoot
   print "shot:" n
  n=n+1
next x
next z
end

Tested on my G10.  If it still crashes,  there is most likely a problem with the CHDK port for your camera.  If so, there are a couple of build changes that can be tried.
« Last Edit: 20 / October / 2015, 09:56:45 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Zoom setting and focusing on script
« Reply #14 on: 21 / October / 2015, 04:35:35 »
Hi again,

thank you very much. This code fails after 1 shot.

You mentioned different builds - which one should I try? I have tried the 1.3.0 and 1.4.0 as listed for my Ixus 55. Its firmware is 1.00C.

Best regards,

Heikki
« Last Edit: 21 / October / 2015, 04:52:14 by heikkiH »

Re: Zoom setting and focusing on script
« Reply #15 on: 21 / October / 2015, 08:12:33 »
You'll need a custom build so that you can test some different build options.  I can take a look tonight if nobody else tries it first.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Zoom setting and focusing on script
« Reply #16 on: 21 / October / 2015, 08:16:05 »
That'd be super! Thanks already!

*

Offline srsa_4c

  • ******
  • 4426
Re: Zoom setting and focusing on script
« Reply #17 on: 21 / October / 2015, 19:16:19 »
Just a thought: if SD override continues to fail, perhaps shooting in AF lock could be an option?
The script could start with issuing a half press then lock the focus and start shooting.


Re: Zoom setting and focusing on script
« Reply #18 on: 21 / October / 2015, 19:56:30 »
Just a thought: if SD override continues to fail, perhaps shooting in AF lock could be an option?
The script could start with issuing a half press then lock the focus and start shooting.
Worth a shot,  although it's reported here that using AF lock with set_focus will cause the ixus55 to crash.

Might be better to try set_mf instead?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4426
Re: Zoom setting and focusing on script
« Reply #19 on: 21 / October / 2015, 20:06:32 »
Worth a shot,  although it's reported here that using AF lock with set_focus will cause the ixus55 to crash.

Might be better to try set_mf instead?
What I meant is to skip set_focus and just use the focus set by the camera's AF (if that is able to focus successfully).

 

Related Topics