Motion Detection & G7 - Script Writing - CHDK Forum

Motion Detection & G7

  • 3 Replies
  • 2477 Views
Motion Detection & G7
« on: 05 / July / 2008, 03:56:19 »
Advertisements
Has anyone found an MD script that works on the G7, or knows what changes need to be made to existing ones?  I've tried a couple and they either repeatedly take shots no matter what delays I try or they don't take shots at all.

I've found for example from Motion detection settings - CHDK Wiki

"rem for get_prop use 205 for DigicII and 206 for DigicIII" if I use 206 the camera just sits there with the focus beam blaring. Only once I've set it to 205 does it actually take shots ... albeit over n over with no motion. Of course the G7 is supposed to be a DigicIII

I've tried disabling the AF beam and even IS as it creates motion between shots.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Motion Detection & G7
« Reply #1 on: 05 / July / 2008, 04:29:22 »
See right here: http://chdk.setepontos.com/index.php/topic,471.msg16739.html#msg16739 and here: http://chdk.setepontos.com/index.php/topic,471.msg11856.html#msg11856.

And if you still get a shooting loop, increase threshold and trigger delay, and/or increase light, and of course place the camera on a tripod if it isn't on one already.

Re: Motion Detection & G7
« Reply #2 on: 05 / July / 2008, 20:36:53 »
fantastic, Fast MD with burst/preview mode worked straight away with no changes. for reference i'll include it here.

Code: [Select]
rem Author: fudgey - based on BarneyFive's MD Lightning6 and MLuna's Motion Detect scripts
rem Tested on A570IS, Allbest build 16
rem For bursts, set the camera in continuous shooting mode and set j>0
rem If j>0 in single shot mode, you will see your shot for j seconds on screen.
@title Fast MD with Burst/Preview 080205
@param a Columns
@default a 6
@param b Rows
@default b 4
@param c Threshold (0-255)
@default c 10
@param d Compare Interval (ms)
@default d 1
@param e Trigger Delay (0.1 sec)
@default e 42
@param f Rows to Exclude
@default f 0
@param g Pix-Step(speed/accuracy adj)
@default g 8
@param h Reg Mode(0-no,1-incl,2-excl)
@default h 0
@param i Measure Mode (1-Y,0-U,2-V)
@default i 1
@param j Burst/Preview (sec,0=off)
@default j 0
if a<1 then a=1
if b<1 then b=1
if c<0 then c=0
if g<1 then g=1
if f<1 then f=1
if j<0 then j=0
e=e*100
j=j*1000
print ">[";a;",";b;"] threshold: ";c
x=30000
if j>0 then goto "md_burst"
:md_singleshot
press "shoot_half"
t=0
do
md_detect_motion a, b, i, x, d, c, 1, t, h, 1, 1, a, f, 0, g, e
until t>0
click "shoot_full"
goto "md_singleshot"
:md_burst
press "shoot_half"
t=0
do
md_detect_motion a, b, i, x, d, c, 1, t, h, 1, 1, a, f, 0, g, e
until t>0
press "shoot_full"
let X=get_tick_count
:contloop
let U=get_tick_count
let V=(U-X)
if V<j then goto "contloop"
release "shoot_full" 
goto "md_burst"

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Motion Detection & G7
« Reply #3 on: 06 / July / 2008, 03:06:38 »
Please note that the version you posted above is ancient. It's Digic version independent, but it is prone to get into a loop if trigger delay is too low (a few seconds may be too low for some situations) and it has few features compared to the version I linked above.


 

Related Topics