Quote from: reyalp on 17 / November / 2011, 16:23:19The a550 does have vid_get_viewport_live_fb.EXACTLY how is this location found on various cameras ?
The a550 does have vid_get_viewport_live_fb.
Brute force mostly for the ones I've done.
In that case, as you need to have the camera available, I will politely decline any testers who ask if it could be 'implemented' to speed-up motion detection.
Only one problem now... When i load the script, i press the button to start, the script does start. And it keeps loaded until there is motion. But when there is motion, a photo is taken and the script finishes. Is it possible to the script to keep on going and take as much as photos as possible?
I load a motion.lva, from the directory: A/CHDK7SCRIPTS/4PACK/LUACan you indicate me a script that loop continuously?
--[[@title Motion Detect]]a=6 -- columns to split picture into b=6 -- rows to split picture into c=1 -- measure mode (Y,U,V R,G,B) – U=0, Y=1, V=2, R=3, G=4, B=5d=300000 -- timeout (mSec) e=200 -- comparison interval (msec) - less than 100 will slow down other CHDK functionsf=5 -- threshold (difference in cell to trigger detection)g=1 -- draw grid (0=no, 1=yes) h=0 -- not used in LUA - in uBasic is the variable that gets loaded with the number of cells with motion detectedi=0 -- region masking mode: 0=no regions, 1=include, 2=excludej=0 -- first columnk=0 -- first rowl=0 -- last columnm=0 -- last rown=0 -- optional parameters (1=shoot immediate)o=2 -- pixel stepp=0 -- triggering delay (msec) repeatzones = md_detect_motion( a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)if( zones > 0 ) then shoot() enduntil ( false )
I just loaded that script, and after taking one pic, it ends the script not repeating...
Started by Barney Fife « 1 2 » Completed and Working Scripts
Started by diegorodriguez Script Writing
Started by kconway General Help and Assistance on using CHDK stable releases
Started by gordonmcdowell Script Writing
Started by Pasco « 1 2 » General Help and Assistance on using CHDK stable releases