Script inside script for HDR - page 2 - Script Writing - CHDK Forum

Script inside script for HDR

  • 28 Replies
  • 7550 Views
*

Offline reyalp

  • ******
  • 13443
Re: Script inside script for HDR
« Reply #10 on: 15 / May / 2014, 16:26:13 »
Advertisements
Personally, my approach to this problem would be to make the HDR script log the image names in some easy to parse format, and use a separate, stand alone script to assemble them.

Writing shell scripts with hard coded filenames to the card seems rather fragile, while having a single script script would make it much easier to control the processing later.

I understand jeż asked for shell scripts on the card, just my two cents ;)
Don't forget what the H stands for.

Re: Script inside script for HDR
« Reply #11 on: 15 / May / 2014, 17:03:18 »
Now that it's tweaked my interest, I'll play with this tonight a bit. The file on the SD card probably needs to sit in the card root and have a relative paths to the image files.  Putting all related files on one line, space delimited, seems easy enough to parse with any scripting language that one is likely to use?
« Last Edit: 15 / May / 2014, 17:05:22 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 13443
Re: Script inside script for HDR
« Reply #12 on: 15 / May / 2014, 17:12:18 »
Putting all related files on one line, space delimited, seems easy enough to parse with any scripting language that one is likely to use?
Yeah, I think that's what I'd do if no other metadata was needed.
Don't forget what the H stands for.

Re: Script inside script for HDR
« Reply #13 on: 15 / May / 2014, 17:21:21 »
Putting all related files on one line, space delimited, seems easy enough to parse with any scripting language that one is likely to use?
Yeah, I think that's what I'd do if no other metadata was needed.
I guess we could tack APEX96 value onto the end of each line for reference - easy enough to ignore in the script. 

However, it's just a Lua script so it's easy enough to add later.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Script inside script for HDR
« Reply #14 on: 15 / May / 2014, 17:24:08 »
Updated script.

This one creates a file (that can be run from the root of the SD card) that will create HDR images there based on image filenames in relative paths.

Linux command line :
Code: [Select]
bash ALL_HDR.SHTested and working on my Linux machine.  I think I'm done here.
« Last Edit: 15 / May / 2014, 22:39:50 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Script inside script for HDR
« Reply #15 on: 16 / May / 2014, 04:47:22 »
What you did is great and I'm impressed. The idea of writing only one script is very nice, but I have to test it in real life. At this point of view I see only two complications:
- Having one Super Script to HDR, it can not be done single HDR photo (without writing a manual script). Look - as I said, I have to test it , it may by better than multi scripts.
- I'm not sure the location sh script outside dcim is good. In this moment it's suggested that processing photos should be on the SD card, and it is neither efficient nor safe because it always some consumes - destroys an SD card. It seems to me, that it would be easier to give the script directly in the directory of photography - DCIM, because in real live for post processing whole content DCIM is copied to the PC

Masters - Good Job - really Thank You!

Re: Script inside script for HDR
« Reply #16 on: 16 / May / 2014, 06:05:25 »
Cool, the ultra hdr script works well, doesn't have the issue of the fasthdr script where the last 2 images always end up having the same exposure info on the SX230 HS.

Only feature I miss from the fast HDR script was when you set an exposure, it always considered that to be the center exposure where the exposure steps will be equally divided on tither side of that center exposure, thus you always get a good balance of over exposed and under exposed images.

the current ultra HDR requires you to more  guess at a starting point to ensure that you get a balance of over and under exposed images.

I set it to take 16 images

(Overall for me, fast hdr= less guesswork, but has the bug where the last image must always be thrown out because it has the same exposure info on another image takes, and thus causes programs like photomatix to freak out)

Ultra HDR: work quickly, no issue with the last image having the same meta data as another image in the set, and offers more control.

Re: Script inside script for HDR
« Reply #17 on: 16 / May / 2014, 08:49:36 »
Only feature I miss from the fast HDR script was when you set an exposure, it always considered that to be the center exposure where the exposure steps will be equally divided on tither side of that center exposure, thus you always get a good balance of over exposed and under exposed images.
I'm not sure I understand what you mean here.  Both script take an automatic exposure reading, start shooting at an exposure set at a lower value, and then increase the exposure in steps to the highest value - all balanced around the initial exposure reading.  What are you seeing?

Quote
Ultra HDR: work quickly, no issue with the last image having the same meta data as another image in the set, and offers more control.
First I've heard of this - I'll take a look.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Script inside script for HDR
« Reply #18 on: 16 / May / 2014, 11:10:43 »
For that issue it is not a big deal, I just skip the last image. Overall, both scripts are awesome. More robust than what comes with any stock camera :)

the fast HDR script is really fast :) (the main delays come from the lower shutter speeds, and saving those 18.2MB files to the SD card in addition to the 2.3 MB jpeg files)

I recorded a video of the issue if needed (currently being processed by youtube)
https://www.youtube.com/watch?v=Ghr30hxWcZY&feature=youtu.be

« Last Edit: 16 / May / 2014, 12:22:25 by Razor512 »

Re: Script inside script for HDR
« Reply #19 on: 16 / May / 2014, 14:48:35 »
I checked in this moment how HDR sh script works, PERFECT! This is it, no external tools, no manual operational, just one command and voila! In my opinion location sh script inside photos directory is better, You will just move all content to PC , and no checking other place.

Once again, good job!

 

Related Topics