CHDK Forum

Using CHDK => Script Writing => Completed and Working Scripts => Topic started by: Barney Fife on 10 / February / 2008, 17:10:56

Title: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 10 / February / 2008, 17:10:56
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: PhyrePhoX on 10 / February / 2008, 17:35:56
funny, just yesterday i thought of a feature like that. nice script.
Quote
Now I need to add a simple method without slowing down the shoot routine, to take images only when there's NO activity, so everyone can wave at the camera and have it take a shot only when everyone stands still and smiles. Then it will be "all-purpose"
good idea!

and i bet we're coming closer to realize a small video game you can play using the MD, like i suggested jokingly a few months back :D
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 10 / February / 2008, 17:45:01
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: PhyrePhoX on 10 / February / 2008, 18:20:26
Laser Tag with cameras? :)

no actually i meant POLL: Most useful features (http://chdk.setepontos.com/index.php/topic,56.msg1190.html#msg1190) but laser tag also is a great idea, and should be implemented very easily, without even the use of modifying CHDK.
here's the setup:
two players, having a canon hacked camera nailed (not actually nailed, u know) to their chest, armed with.... tadaa - REMOTE CONTROLS! the cameras should have Infrared Filters on them (so the visible light is blocked) and motion detection running. Also the flash setting should be set to "always flash". this way you will see when you have "shot" an opponent.
come to think of it, this works in theory and also should work practically (IF you have strong IR-diodes in your remotecontrols.and maybe teamed with a laserbeam so u actually see where u are aiming).
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 10 / February / 2008, 18:41:34
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 11 / February / 2008, 20:23:12
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Arib on 19 / February / 2008, 07:32:59
I have a question about md scripts. I'm new to the CHDK, and I'm not good at scripting ect. The problem is that all scripts that I used seem to work odd: I have a620 with special build recommended in this thread and when I'm using MD lightningB3 my camera shoots sth like 3-4 pics without any motion in front of it and turns off; same happend with MD lightning9 + allbest #33 build.

What can I do to make it work properly?

Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Coutts on 19 / February / 2008, 19:36:43
anybody thought about using flash? wouldnt a flash picture be quicker? just pondering that...
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 19 / February / 2008, 23:08:50
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 19 / February / 2008, 23:10:05
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: ^tyrant^ on 08 / April / 2008, 12:12:53
Could this script be adapted to work for video instead of taking a picture?
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 09 / April / 2008, 00:55:50
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: tgran on 10 / April / 2008, 07:34:46
Is there any progress on the "no motion" option?  . . .  and any advice for someone wanting to start the trial and error process with an A570IS. 
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 10 / April / 2008, 08:31:55
Deleted
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: mx3 on 10 / April / 2008, 09:18:58
Is there any progress on the "no motion" option? 
I'm not sure if anybody asked this.
can you exactly specify what do you wish?

I would suggest you to post it here - MX3's (motion detection) Builds (http://chdk.setepontos.com/index.php/board,25.0.html)
or there - Feature Requests (http://chdk.setepontos.com/index.php/board,9.0.html)

. . .  and any advice for someone wanting to start the trial and error process with an A570IS. 

it is camera independent feature. once made it will work on all cameras.

you can use dirty workaround
set triggerdelay, timeout, threshold
and check if t<1
thats will be no motion during specified timeout

of course there will be dead time periods ( due to trigger delay )
ie if you chose timeout 2 seconds and 1 second trigger delay and something constantrly moves on the scene you will lost 50% of time on preparation



I'm not sure....

Waiting for your comments

Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: mx3 on 10 / April / 2008, 09:22:52
Nope. I could never get it to work and I got fed-up with asking the "developer" for any further information on the issue. Trying to get any clues at all is like pulling teeth. I don't bother to deal with people who think their arcane and obscure hints qualify as any form of "help". I have more important things to do than pumping-sunshine up their @ss just to get them to reveal how to use their routines.
:)

If you want any assistance on any of the uBASIC commands from now on, I suggest you direct your questions directly to the developer who created them. I'm not going to be their translator anymore.

I can try to explain all parameters again if you wish.
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: shobhitk on 11 / April / 2008, 11:42:58
Hi,
i installed ur motion detection script on my canon a540 and i must say that its working like a charm. u mentioned in ur post about a script thru which the camera would take a snap as soon as it detects ZERO ACTIVITY. this is a great idea when photographing a big crowd of 10-15 people. i just wanted to know if this script already exists or if u r working on it.
if it doesn't then it would be nice if u could kindly come up with this innovative script.

Thanks
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: fudgey on 13 / April / 2008, 07:22:56
you can use dirty workaround
set triggerdelay, timeout, threshold
and check if t<1
thats will be no motion during specified timeout

of course there will be dead time periods ( due to trigger delay )
ie if you chose timeout 2 seconds and 1 second trigger delay and something constantrly moves on the scene you will lost 50% of time on preparation

Yesterday I posted a script which does this... it's not the simplest thing to use and not tested well but I does work. Trigger delay isn't really a problem (a value of 0 works for me, I put 100 ms as a default to be safer) because the script doesn't shoot between MD restarts (and shooting is what starts most of those things that require waiting). I didn't include any of those get_prop loops, but if it turns out the script sometimes does go into a MD loop (ie it will never detect stillness) it'll have to be thought over more carefully.

It's in that other thread over there:
http://chdk.setepontos.com/index.php/topic,1046.msg9260.html#msg9260 (http://chdk.setepontos.com/index.php/topic,1046.msg9260.html#msg9260)
Title: Re: Motion Detection w/ Customizable Detection Regions
Post by: Barney Fife on 13 / April / 2008, 09:32:31
Deleted