Wikia

CHDK Wiki

Changes: Motion Detection

Edit

Back to page

m (Function : md_af_on_time)
(md parameter c)
Line 17: Line 17:
 
: Exclusion Zone : The motion detection zones defined above can get setup so that part of the field of view is ignored. This is useful when there may be motion in parts of your field of view that you do not want to cause a photograph to be taken. There is a good description of how to use exclusion zones posted on this [http://chdk.setepontos.com/index.php?topic=7746.msg82003#msg82003 Forum thread.] Parameters i,j,k,l & m define the exclusion zone.
 
: Exclusion Zone : The motion detection zones defined above can get setup so that part of the field of view is ignored. This is useful when there may be motion in parts of your field of view that you do not want to cause a photograph to be taken. There is a good description of how to use exclusion zones posted on this [http://chdk.setepontos.com/index.php?topic=7746.msg82003#msg82003 Forum thread.] Parameters i,j,k,l & m define the exclusion zone.
   
: Detection Modes : CHDK can be configured to trigger on different parts of the image. Motion can be detected based on changes of luminance (Y), blue chrominance (U), red chrominance (V) or individual R, G or B values. Parameter c determines which parts will be used to decide that motion has been detected.
+
: Detection Modes : CHDK can be configured to trigger on different parts of the image. Motion can be detected based on changes of luminance (Y), blue/green chrominance (U), yellow/red chrominance (V) or individual R, G or B values. Parameter c determines which parts will be used to decide that motion has been detected.
   
 
: Sensitivity : Sensitivity settings determine how much of a change in the cameras image will be detected as motion. There is a threshold adjustment (parameter f) and a pixel step adjustmen (parameter o).
 
: Sensitivity : Sensitivity settings determine how much of a change in the cameras image will be detected as motion. There is a threshold adjustment (parameter f) and a pixel step adjustmen (parameter o).
Line 44: Line 44:
 
: ''Note : if a or b are less than zero or if total number of cells is greater than 1024, the default grid is 3 x 3.''
 
: ''Note : if a or b are less than zero or if total number of cells is greater than 1024, the default grid is 3 x 3.''
   
'''c''' : pixel_measure_mode = 1 for Y, 2 for U, 3 for V, 4 for gray, 5 for - R, 6 for G, 7 for B. You may detect motion based on changes of luminance (Y), blue – luminance (U), red – luminance (V) or individual R, G or B values. For non-specialized use, luminance (c = 1) can be used.
+
'''c''' : pixel_measure_mode - YUV model: 0 for U, 1 for Y, 2 for V; RGB model: 3 for R, 4 for G, 5 for B. You may detect motion based on changes of luminance (Y), green/blue chrominance (U), yellow/red chrominance (V) or individual R, G or B chrominance values. For non-specialized use, luminance (c = 1) can be used.
   
 
'''d''' : the time in milliseconds for which md_detect_motion will wait for motion to occur. This parameter is useful if you want to execute periodically some other ubasic commands together with MD If no motion detected, the script can continue to execute some other code and then if required can resume motion detection by calling again md_detect_motion. Practically, this timeout value (parameter d) has to be greater than the trigger delay (parameter p), or else the return variable (parameter h) will always equal 0.
 
'''d''' : the time in milliseconds for which md_detect_motion will wait for motion to occur. This parameter is useful if you want to execute periodically some other ubasic commands together with MD If no motion detected, the script can continue to execute some other code and then if required can resume motion detection by calling again md_detect_motion. Practically, this timeout value (parameter d) has to be greater than the trigger delay (parameter p), or else the return variable (parameter h) will always equal 0.

Revision as of 10:44, February 21, 2013

Around Wikia's network

Random Wiki