Author Topic: Best shot selector mode (Poor man's IS)  (Read 4622 times)

Offline brainwash

  • Jr. Member
  • **
  • Posts: 95
  • Nikon D40x & A460
Re: Best shot selector mode (Poor man's IS)
« Reply #15 on: 11 / August / 2008, 19:28:17 »
Couldn't this feature be merged in colab.? Please? :D
I cannot test this since I own an S2.
I'm thinking the useful trigger for this function would be to use the burst-mode selector button and when cycling through modes it should also display BSS. This is to avoid hunting through the menu for that specific feature.

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: Best shot selector mode (Poor man's IS)
« Reply #16 on: 12 / August / 2008, 17:07:14 »
i can merge it in, need a diff against current branch though, as i fail to merge using his latest diff :(

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Best shot selector mode (Poor man's IS)
« Reply #17 on: 12 / August / 2008, 18:38:49 »
I'm afraid I cannot work on this very much this month, as I'm on dial-up and not on my computer...

Offline robz

  • Newbie
  • *
  • Posts: 1
Re: Best shot selector mode (Poor man's IS)
« Reply #18 on: 08 / December / 2008, 00:43:38 »
This feature is SO cool!!
Could we have this feature merged please please please...??

Offline orlp

  • Newbie
  • *
  • Posts: 2
Re: Best shot selector mode (Poor man's IS)
« Reply #19 on: 31 / January / 2010, 17:22:51 »
This feature is SO cool!!
Could we have this feature merged please please please...??

Yes yes yes. It would even be useful on my SD800IS when shooting manually in museums...
Failing that how can I merge this into my build and can I get it to work on SD800IS (perhaps PROPCASE 177???)?
« Last Edit: 31 / January / 2010, 19:20:00 by orlp »

Offline Mac

  • Rookie
  • *
  • Posts: 40
Re: Best shot selector mode (Poor man's IS)
« Reply #20 on: 02 / February / 2010, 04:36:53 »
Question: Does the current version of Lua in CHDK allow the use of "require"?
If it did, you could use "lfs.dll" (14kb) to determine the sizes of the photos taken.

Offline Mac

  • Rookie
  • *
  • Posts: 40
Re: Best shot selector mode (Poor man's IS)
« Reply #21 on: 02 / February / 2010, 05:39:45 »
Better yet, just use os.stat(filename) to get the file size and combine this with some of the file handling routines used to 'merge'  files to select the "best of the last".
Just an idea.
Anyone think that it might work?

Offline Mac

  • Rookie
  • *
  • Posts: 40
Re: Best shot selector mode (Poor man's IS)
« Reply #22 on: 02 / February / 2010, 06:03:47 »
Well the following will get you all the sizes of the photo (and stick it in a log file in this test).

path="A/CHDK/LOGS/"
file="Size"
file=path..file..".txt"
io.output(io.open(file,"w"))

path="A/DCIM/100CANON/"
File_Table=os.listdir(path,false)
for i=1,#File_Table do
   filename=path..File_Table
   INFO=os.stat(filename)
   io.write("Filename: "..filename.."  size = "..INFO.size.."\n")
   end
io.close()

If you know how many pictures you have take for evaluation, you can delete  (os.remove) the smaller files and only keep the largest one.
Don't know how valid this approach is to getting the best photo but it definitely can be done.
Best,
Mac


Offline orlp

  • Newbie
  • *
  • Posts: 2
Re: Best shot selector mode (Poor man's IS)
« Reply #23 on: 12 / February / 2010, 21:22:54 »
I'm afraid I haven't yet got round to learning lua, but it looks as though lua may be powerful enough to do the job.

What I would like is a script that does the following.
Takes a burst of photos - if the script cannot sense when the button is released this could be a preselected number say 8.
Script then reads from camera which photos belong to the burst, selects the largest and deletes the others.

It seems to me that if I have to take the burst first, then switch to CHDK then tell the script which images to look at and then study a log file, that will be not much better than previewing the pics manually and selecting the largest (except that my IXUS only shows size to nearest 10KB)
« Last Edit: 12 / February / 2010, 21:25:29 by orlp »

CHDK Forum

Re: Best shot selector mode (Poor man's IS)
« Reply #23 on: 12 / February / 2010, 21:22:54 »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal