Viscom Software VideoCap ActiveX Control

EffectMotionSetDetectedRect Method

Description:   

Set motion detection rectangle when use motion detection feature. After you called this method, you will see the  motion detection rectangle  on video. If you want to use this feature, you need purchased our Motion Detection Plugin.

Usage:   

VideoCap1.EffectMotionSetDetectedRect Parameter1,Parameter2,Parameter3,,Parameter4

Parameter:

Parameter1- Specifies the x-coordinate of the upper-left corner of the rectangle. (Data Type: Integer)

Parameter2- Specifies the y-coordinate of the upper-left corner of the rectangle. (Data Type: Integer)

Parameter3- Specifies the width of the rectangle. (Data Type: Integer)

Parameter4- Specifies the height of the rectangle. (Data Type: Integer)

 

Return Value:

No Return value.

Example:   

The Visual Basic example 

VideoCap1.EffectType = 4
VideoCap1.EffectMotionSensitivity = 50
VideoCap1.EffectMotionSetDetectedRect 0,0,100,100
VideoCap1.Start()