Motion Detection too slow? - page 7 - Script Writing - CHDK Forum

Motion Detection too slow?

  • 253 Replies
  • 207838 Views
Re: Motion Detection too slow?
« Reply #60 on: 03 / February / 2008, 18:46:22 »
Advertisements
Barney, I tried your MD Lightning5 on my g7.

It seemed like having the trigger delay set at 60 kept the non stop pics at bay.

Having Compare Interval @ 10 and Pix Step @ 10 seemed to give me a couple shots at 80ms and a couple at 100ms.

Before your script I couldn't get better then a half second response time.

Thanks




Re: Motion Detection too slow?
« Reply #61 on: 03 / February / 2008, 22:57:24 »
Deleted
« Last Edit: 22 / April / 2008, 10:23:16 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Re: Motion Detection too slow?
« Reply #62 on: 03 / February / 2008, 23:50:24 »
Deleted
« Last Edit: 22 / April / 2008, 10:23:37 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Re: Motion Detection too slow?
« Reply #63 on: 04 / February / 2008, 00:21:19 »
Yeah but remember lightning strikes are usually made up of several strokes or discharges.  They can last up to a second I think. But 100-200ms is an often quoted average time.

*

Offline BP

  • *
  • 1
Re: Motion Detection too slow?
« Reply #64 on: 04 / February / 2008, 04:20:30 »
In my testing of MoDet I found that having the screen properly in focus is important to getting the 120ms times in Jonnythe's program. I had my camera about 12 inches from the screen which needed the macro mode on my s3. But in setting manual-focus, the camera automatically takes you out of macro-mode making things out of focus.

So I set macro-mode and not MF and all was well. The "barely see white oval on LCD before shot" effect was there along with ~120ms shot times.  :D

THANKS ALL! EXCELLENT WORK

~~~~For those catching up to Motion Detection~~~~
Current best scripts are MD Lightning6 and 7 by Barney Fife (http://chdk.setepontos.com/index.php/topic,405.msg3275.html#msg3275
---with optional modifier by A570is (http://chdk.setepontos.com/index.php/topic,405.msg3291.html#msg3291)

Get jonnythe's testing program here (http://chdk.setepontos.com/index.php/topic,405.msg3174.html#msg3174)

Script settings mostly work as default (settings also seen in the first 19 rows of the script) only need to adjust 'Trigger Delay' in 0.1ms increments to prevent continuous shooting. (Though you may need other adjustments for best response time.)

Works in all P, Tv, Av, M modes. MF and/or Macro only needed to ensure the subject (and not the background) is in focus.

Once you get it set properly, your camera will likely take two images per test cycle in jonnythe's program. The appropriate flash-then-shoot image and a the-line-is-still-moving-across-the-right-side-of-the-screen image. An example of a proper ~120ms image is shown in the first picture attached (6 black lines from the left edge of the screen = 120ms @20ms/line). When running properly, an image similar to the black one below shall be taken every other shot for the duration the script runs.

The second image is a test of throwing a water bottle across the field of view a la mx3's toy test: http://chdk.setepontos.com/index.php/topic,405.msg3019.html#msg3019

See! It works! Good luck!  :xmas

Hope this clarifies things for people new to the thread.
« Last Edit: 04 / February / 2008, 05:07:53 by BP »

Re: Motion Detection too slow?
« Reply #65 on: 04 / February / 2008, 05:51:29 »
:)
So it seems mx3's toy throwing is now the test of all tests :)

Cool stuff. I don't have any kids so I can't use it unfortunately :).

*

Offline mx3

  • ****
  • 372
Re: Motion Detection too slow?
« Reply #66 on: 04 / February / 2008, 06:07:58 »
:)
So it seems mx3's toy throwing is now the test of all tests :)

Cool stuff. I don't have any kids so I can't use it unfortunately :).

did you apply my sugested patch and compile sources or have i do it myself for you?
skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

Re: Motion Detection too slow?
« Reply #67 on: 04 / February / 2008, 06:14:33 »
I can't even get it to call a duplicated function. Have no idea what I'm doing wrong. If I copy the function your original routine calls, it compiles fine but when run no shot is taken. I mean I declare a new function which is exactly the same apart from the name and call it from the motion detection source, but no shot is taken. Guess it just doesn't like me.

*

Offline mx3

  • ****
  • 372
Re: Motion Detection too slow?
« Reply #68 on: 04 / February / 2008, 07:10:15 »
I can't even get it to call a duplicated function. Have no idea what I'm doing wrong. If I copy the function your original routine calls, it compiles fine but when run no shot is taken. I mean I declare a new function which is exactly the same apart from the name and call it from the motion detection source, but no shot is taken. Guess it just doesn't like me.

I talked about this http://chdk.setepontos.com/index.php/topic,405.msg3366.html#msg3366
void *vid_get_viewport_live_fb(){
   void **fb=(void **)0x52EC;
return fb[ *((unsigned char*)0x52FC) ];
}

skype: max_dtc. ICQ: 125985663, email: win.drivers(at)gmail, eVB decompiler

Re: Motion Detection too slow?
« Reply #69 on: 04 / February / 2008, 10:22:55 »
Deleted
« Last Edit: 22 / April / 2008, 10:24:05 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

 

Related Topics


SimplePortal © 2008-2014, SimplePortal