Motion Detection too slow? - page 22 - Script Writing - CHDK Forum
supplierdeeply

Motion Detection too slow?

  • 242 Replies
  • 129718 Views
*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Motion Detection too slow?
« Reply #210 on: 11 / September / 2008, 16:40:45 »
Advertisements
http://chdk.setepontos.com/index.php/topic,471.msg17797.html#msg17797

*

Offline fe50

  • ******
  • 3105
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Motion Detection too slow?
« Reply #211 on: 11 / September / 2008, 18:03:32 »
... Also--im willing to test out the speeds i get---is it MD_Test that does that? If so where is it---that seems to have disappeared as well....

Hello & welcome oh2ski2002 !

In addition to fudgey's post above:
You'll also find the (download-) links for the MD test apps (to test the speed / reaction time of your camera's motion detection) in the new CHDK wikia - Software Overview / Linklist  :)

Re: Motion Detection too slow?
« Reply #212 on: 11 / September / 2008, 19:05:13 »
thank you both fudgey and fe50!  i also realized i had used the non-vid button script rather than the vid-button script, as the S5 has the button--my bad! noticed a bit of a change just switching.  ill test out the apps and see how i do! thanks for the quick help!
Canon PowerShot S5 IS
chdk-fw:101b build:0.5.1-499
motion detect = MDFB-080419-DigicIII

Re: Motion Detection too slow?
« Reply #213 on: 11 / September / 2008, 19:54:43 »
Canon PowerShot S5 IS
chdk-fw:101b build:0.5.1-499
motion detect = MDFB-080419-DigicIII


G9
« Reply #214 on: 07 / October / 2008, 19:55:37 »
Well now that CHDK is up and running on the G9, has anyone looked into MD speeds on it?  I was just playing around with it the other night (not any serious testing) but it seemed pretty slow.  I understand some of the basics of scripting, but not near enough to really tweak the MD timing down.  If anybody has gotten good results with a certain script,  could you let me know?  Also if anyone wants to attempt some real tweaking for the G9, I'd be happy to help with testing.  Thanks

Re: Motion Detection too slow?
« Reply #215 on: 08 / October / 2008, 03:40:18 »
I just did a little testing with the G9. ISO 1600, F2.8, fastest possible shutter speed (which is apparently only 1/2500), 5M jpg, no flash, shot=0, threshold 2, compare int 10ms, 4x4.  17 shots with a 166ms average, best of 62ms, worst of 534ms.  So it can be pretty dang quick sometimes.... Sometimes being the key word. There were 7 shots under 100ms, 6 under 200ms, 2 under 300ms, 1 at 440ms and the 534ms.  If that max could be brought down to somewhere around 150-200ms it would be awesome.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Motion Detection too slow?
« Reply #216 on: 08 / October / 2008, 15:47:18 »
I just did a little testing with the G9. ISO 1600, F2.8, fastest possible shutter speed (which is apparently only 1/2500), 5M jpg, no flash, shot=0, threshold 2, compare int 10ms, 4x4.  17 shots with a 166ms average, best of 62ms, worst of 534ms.  So it can be pretty dang quick sometimes.... Sometimes being the key word. There were 7 shots under 100ms, 6 under 200ms, 2 under 300ms, 1 at 440ms and the 534ms.  If that max could be brought down to somewhere around 150-200ms it would be awesome.

Run your tests at ISO 100, those high ISOs may make the camera do some more math. Also, read the documentation to http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328 learn more about speed optimization among other things.

Then, if you're up for it, read this entire thread and do what has been done lately for some cameras to achieve a significant MD speedup...

Re: Motion Detection too slow?
« Reply #217 on: 23 / November / 2008, 19:49:33 »
is possible to program the camera to take a picture very X seconds until the card is full to make a  whole day shooting witha tripod and come back later to see. ?????

cheers


*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Motion Detection too slow?
« Reply #218 on: 23 / November / 2008, 21:03:12 »
You just have to try some of the intervalometers scripts already available.

Make a search of "intervalometer".
If you saw me on land, It was just the surface interval
G10 without CHDK

Re: Motion Detection too slow?
« Reply #219 on: 10 / December / 2008, 17:41:44 »
Any reason these changes where not committed to trunk?

My lag is not too bad, 70-120ms right now... I'd post my build number, but the cam is in the car right now... A610 1.01f, most likely AllBest 51.485...
EDIT: It's AllBest 51.500

And, Thanks to all who contribute!

Who knows, maybe we'll get an open-OS camera one day, like WRT54GL is to the WRT54G...  :D

my changes where

kbd.c

void md_kbd_sched_immediate_shoot(){
 kbd_int_stack_ptr-=1;// REMOVE MD ITEM

// reversed
   kbd_sched_release(KEY_SHOOT_FULL);
   kbd_sched_delay(20);
  KBD_STACK_PUSH(SCRIPT_MOTION_DETECTOR); // it will removed right after exit from this function

// not a stack operation... pressing right now
   kbd_key_press(KEY_SHOOT_FULL);

}


motion_detector.c

void md_kbd_sched_immediate_shoot();


         if( ( motion_detector.parameters&MD_DO_IMMEDIATE_SHOOT ) !=0){
            //make shoot
//            kbd_sched_shoot();
            md_kbd_sched_immediate_shoot();
         }

and platform/a610/sub/100e/lib.c

void *vid_get_viewport_live_fb()
{
//    return (void*)0x10670d50;
   void **fb=(void **)0x52EC;
return fb[ *((unsigned char*)0x52FC) ];
}
« Last Edit: 11 / December / 2008, 17:17:35 by ve2mrx »

 

Related Topics