VideoCTRL ActiveX Help |
MotionDetectSet Method
Syntax
object.MotionDetectSet(
iTolerance, bPreview, [optional lFrequency], [optional
lTriggerFrames],[optional iSpacing], [optional lDetectFromX], [optional lDetectFromY],
[optional lDetectToX], [optional lDetectToY]
)
Parameters
Additional
Notes
Motion detection requires RGB format,
usually default but can be set with captureDlgFormat if
required.
Pictorial
view of detection pixel groups, 1
=
detection pixel.
| 0 | 1 | 0 |
| 1 | 1 | 1 |
| 0 | 1 | 0 |
iTolerance can be changed manually at anytime using the MotionDetectTolerance() or MotionDetectLevel() methods.
The pixel groups are spaced a part horizontally and vertically using iSpacing this is to reduce CPU usage.
Frames are checked every iFrequency, this can be set higher to reduce CPU usage.
Partial area or full area detection of source can be set with lDetectFromX, lDetectToX, lDetectFromY, lDetectToY.
Result
Sets motion detection parameters, before
MotionDetectStart().
See Also
CaptureDriverName to enquire on specfic
driver details.
CaptureDriverVersion to
enquire on specfic driver details
.
CaptureDriverConnect to
connect to specfic driver.
CaptureDriverDisconnect
to disconnect currently connected driver.
MotionDetectSet - Set parameters
for detection
MotionDetectStart - Start motion
detection
MotionDetectStop
- Stop motion
detection
MotionDetectShow - Show
detected motion.
MotionDetectBMP -
Save motion capture as BMP
MotionDetectJPG -
Save motion capture as JPG
MotionDetectPicture - Capture as picture
object.
MotionDetectLevel - Auto set
detection tolerance level
MotionDetectTolerance - Get
and set tolerance level
HELP! If you have any further questions please visit the VideoCtrl Forum - http://www.datadevelopment.co.uk/forum