Lightning with Fudgeys Motion Detect on an S5IS - Creative Uses of CHDK - CHDK Forum

Lightning with Fudgeys Motion Detect on an S5IS

  • 2 Replies
  • 5980 Views
*

Offline vk2him

  • *
  • 22
  • Canon S5IS
Lightning with Fudgeys Motion Detect on an S5IS
« on: 27 / July / 2008, 06:48:01 »
Advertisements
I have to thank the author of MD script, it makes photography of lightning very easy ... Here is a photo from my first use a slightly modified version of Fudgey's script .. S5IS





Code: [Select]
rem Fudgey's Fast/Slow/Video Motion Detector with masks.
rem Developed on A570IS by fudgey, but this version is not for A570IS.
rem This version is for Digic III cameras with a separate video button (e.g. S5IS)
rem Allbest build 34 or higher (or compatible md_detect_motion) is required for
rem fast/slow MD modes.
rem Digic II needs a small modification: "get_prop 206 P" -> "get_prop 205 P"
@title Fast MD 080419
@param a Columns
@default a 6
@param b Rows
@default b 4
@param c Sensitivity (0-255)>= less
@default c 10
@param g Burst/Review/Video time (s)
@default g 0
@param d Compare Interval (ms)
@default d 7
@param h Pixels <= small objects
@default h 8
@param f Channel (0U,1Y,2V,3R,4G,5B)
@default f 1
@param n Timeout (10s of seconds)
@default n 30
@param e Trigger Delay (0.1 sec)
@default e 12
@param i Masking (0=No 1=Mask 2=Use)
@default i 0
@param j -      Mask Columns Left
@default j 0
@param k -      Mask Columns Right
@default k 0
@param l -      Mask Rows    Top
@default l 0
@param m -      Mask Rows    Bottom
@default m 0
@param o Shoot fast=0, slow=1, video
@default o 0
@param p Still photo=0, Video=1
@default p 0
if a<1 then a=1
if b<1 then b=1
if i<0 then i=0
if i>2 then i=2
if j<0 then j=0
if k<0 then k=0
if l<0 then l=0
if m<0 then m=0
if j>a then j=a
if k>a then k=a
if l>b then l=b
if m>b then m=b
if g<0 then g=0
if f<0 then f=1
if f>5 then f=1
if f=0 then print "Channel: U chroma"
if f=1 then print "Channel: Luminance"
if f=2 then print "Channel: V chroma"
if f=3 then print "Channel: Red"
if f=4 then print "Channel: Green"
if f=5 then print "Channel: Blue"
if n<1 then n=1
e=e*100
g=g*1000
n=n*10000

if o=0 and p=1 then goto "fast_video_md"
if o=1 and p=1 then goto "slow_video_md"
if o=1 and p=0 then goto "slow_md"

print "Fast react photo MD"
:fast_md_loop
  press "shoot_half"
  t=0
  do
    do
      get_prop 206 P
    until P=1
    md_detect_motion a, b, f, n, d, c, 1, t, i, j+1, l+1, a-k, b-m, 9, h, e
  until t>0
  let X=get_tick_count
  :contloop1
    let U=get_tick_count
    let V=(U-X)
    if V<g then goto "contloop1"
  release "shoot_full" 
  do
    get_prop 206 P
  until P<>1
goto "fast_md_loop"

:slow_md
print "Slow react photo MD"
:slow_md_loop
  t=0
  do
    md_detect_motion a, b, f, n, d, c, 1, t, i, j+1, l+1, a-k, b-m, 0, h, e
  until t>0
  if g>0 then goto "contshoot2" else shoot
  goto "slow_md_loop"
  :contshoot2
« Last Edit: 27 / July / 2008, 06:55:39 by vk2him »

*

Offline lukg

  • ***
  • 162
  • Eos 450D+18-55is+55-250is & Powershot S5is - 1.01a
Re: Lightning with Fudgeys Motion Detect on an S5IS
« Reply #1 on: 27 / July / 2008, 12:52:08 »
Very nice pics! Can I ask you what are the differences between yours and fudgey script and the parameters you used for taking those pictures (camera & script parameters)?
Thank you!

*

Offline vk2him

  • *
  • 22
  • Canon S5IS
Re: Lightning with Fudgeys Motion Detect on an S5IS
« Reply #2 on: 05 / August / 2008, 05:52:37 »
For the fun of it, I did a Pseudo HDR on one of the pictures, looks a bit surreal compared to the original above  :)

 

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal