VideoCapture.Regions.Exclude 方法
定义
在视频播放时,隐藏脚本执行时捕获的视频上的指定区域。
重载
VideoCapture.Regions.Exclude(Region r,RegionBehaviour bind)
要隐藏链接到 屏幕坐标 的矩形,请将矩形坐标指定为 Region 参数。
若要隐藏链接到 HTML 元素 的区域,请将 HTML 元素指定为 Region 参数。
public void Exclude(Region r, RegionBehaviour bind)
参数
r 地区 绑定 区域行为例子
//hides the rectangle linked to the specified screen coordinates tab0.VideoCapture.Regions.Exclude (Region (677, 136, 444, 126), 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(区域 r、区域行为绑定、位图锚点、双阈值)
通过链接到指定 RIA 图片的矩形隐藏视频区域。
阈值参数反映的匹配程度足以在页面的可见部分唯一标识所需的图像片段。 默认值为 0.95。 当算法检测到多个与默认阈值匹配项时,必须选择新片段或需要增加阈值级别。
public void Exclude (Region r, RegionBehaviour bind, Bitmap anchor, double threshold)
参数
r 地区 绑定 区域行为 锚 位图 阈值 双倍例子
tab0.VideoCapture.Regions.Exclude (Region (-53, -31, 95, 62), RegionBehaviour.BindToScreen, PictureList [0], 0.99);
区域类定义
public static VideoCapturing.Region Region(IHtmlElement element) { ... } public static VideoCapturing.Region Region( int x, int y, int width, int height) { ... }