VideoCapture.Regions.Exclude Method
Definition
Hides the specified region on the video captured while the script execution on video playback.
Overloads
VideoCapture.Regions.Exclude (Region r, RegionBehaviour bind)
To hide the rectangle linked to the screen coordinates specify the rectangle coordinates as the Region parameter.
To hide the region linked to an HTML element specify the HTML element as the Region parameter.
public void Exclude(Region r, RegionBehaviour bind)
Parameters
r Region bind RegionBehaviourExamples
//hides the rectangle linked to the specified screen coordinates tab0.VideoCapture.Regions.Exclude (Region (638, 387, 263, 77), RegionBehaviour.BindToScreen); //hides the rectangle linked to the specified <div> element tab0.VideoCapture.Regions.Exclude (Region (tab0.Div (“//H2[normalize-space()=\”EXCLUSIVE BLACK FRIDAY ACCESS\”]/../..”, “/HTML/BODY/…/SECTION/DIV[2]”)), RegionBehaviour.BindToScreen);
VideoCapture.Regions.Exclude (Region r, RegionBehaviour bind, Bitmap anchor, double threshold)
Hides the video region by the rectangle linked to the specified RIA picture.
The threshold parameter reflects a degree of matching that is sufficient for the unique identification of a required image fragment on the visible part of the page. The default value is 0.95. When the algorithm detects more than one match with the default threshold value, either a new fragment must be selected or the threshold level needs to be increased.
public void Exclude (Region r, RegionBehaviour bind, Bitmap anchor, double threshold)
Parameters
r Region bind RegionBehaviour anchor Bitmap threshold doubleExamples
tab0.VideoCapture.Regions.Exclude (Region (-53, -31, 95, 62), RegionBehaviour.BindToScreen, PictureList [0], 0.99);
Region Class Definition
public static VideoCapturing.Region Region(IHtmlElement element) { ... } public static VideoCapturing.Region Region( int x, int y, int width, int height) { ... }