UiPath.CV.Activities.CVScope
Initializes the UiPath Computer Vision neural network, performing an analysis of the indicated window and provides a scope for all subsequent Computer Vision activities. The activity enables you to select which OCR engine you want to use for scraping the text in the target application. The default OCR engine used for this activity is Microsoft OCR. The engine can be changed by manually replacing the default engine with one of your choice.
📘备注:
If you are using an on-prem Linux CV Server deployment, you can also use the UiPath Screen OCR engine with this activity.
属性
Common
- ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
📘备注:
如果“Try Catch 异常处理”* 中包含该活动且“出错时继续”* 属性的值为“True”,则系统在执行项目时不会捕获任何错误。
- DelayBefore - Delay time (in milliseconds) before the activity begins performing any operations. The default value for this field is 300 milliseconds.
- DisplayName - The display name of the activity.
输入
-
“Target.ClippingRegion”****- 按照左、上、右、下四个方向定义相对于用户界面元素的剪切矩形(以像素为单位)。支持正数和负数。
-
“Target.Element”* - 使用另一个活动返回的“用户界面元素”变量。该属性不能与“选取器”* 属性一起使用。该字段仅支持用户界面元素变量。
-
“Target.Selector”****- 用于在执行活动时查找特定用户界面元素的“文本”属性。它实际上是一个 XML 片段,用于指定要查找的图形用户界面元素及其一些父元素的属性。
-
“Target.Timeout(毫秒)”****- 指定最长等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出“
SelectorNotFoundException”错误。默认值为 30000 毫秒(30 秒)。 -
Target.WaitForReady - Before performing the actions, wait for the target to become ready. By default, this field is set to INTERACTIVE. The following options are available:
- NONE - Does not wait for anything except the target UI element to exist before executing the action. For example, you can use this option if you want to retrieve just text from a web page or click a particular button, without having to wait for all UI elements to load. Note that this may have unwanted consequences if the button relies on elements which are not yet loaded, such as scripts.
- INTERACTIVE - Waits for the UI elements you are working with in the target app to exist before executing the action.
- COMPLETE - Waits for all of the UI elements in the target app to exist before actually executing the action.
为了评估应用程序处于“交互”状态还是“完成”状态,系统将验证以下标签: - “桌面应用程序”****- 系统会发出一条“
wm_null”消息,以检查是否存在“<wnd>”、“<ctrl>”、“<java>”或“<uia>”标签。如存在,则执行活动。 - 网页应用程序:
a. Internet Explorer - The<webctrl>tag is used to check if the Ready state of the HTML document is set to Complete. Additionally, the Busy state has to be set toFalse.
b. 其他 -<webctrl>标签用于检查 HTML 文档的“就绪”* 状态是否为“完成”* 。 - SAP applications - First the presence of the
<wnd>tag is verified, after which an SAP-specific API is used to detect if the session is busy or not.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
服务器(同步)
- “API 密钥”* - 用于对计算机视觉服务器进行身份验证的 API 密钥。该字段仅支持字符串或字符串变量。这是一个全局属性,适用于工作流中的所有“计算机视觉屏幕作用域”* 活动。
📘重要
Please note that the API key is only required when connecting to the UiPath Automation Cloud server. You can find more information on acquiring a key here.
RPA之家(www.rpazj.com/)是中国具有影响力的R…
📘备注:
Editing the ApiKey property for one scope activity changes the value for all the other scopes in the current workflow, so you don't have to do it manually.
- URL - The URL of the server that runs the Computer Vision service. By default, this property is set to
https://cv.uipath.com/. This is a global property, shared between all CV Screen Scope activities in the workflow. - UseLocalServer - If checked the local server will be used for the analysis. Keep in mind that in order to use the local server the UiPath.ComputerVision.LocalServer package needs to be installed.
📘重要
使用神经网络模型的内部服务器部署时,为通过“计算机视觉”活动连接到服务器,您必须将“计算机视觉屏幕作用域”* 活动的“URL”* 属性值更改为您自身服务器的 URL。
有关连接至服务器的更多详情,请单击此处。
In the Body of the Activity
The application you want to automate can be indicated to the CV Screen Scope activity by using the Indicate On Screen button in the body of the activity. After doing this, a capture of the screen you have indicated is displayed in the body of the activity.
If you indicate multiple screens when automating an application, you can cycle between the screens by using the directional buttons ( < , > ) to easily check what screens the activity is using.
Screens can also be renamed by selecting them from the Screen Name drop-down and clicking the button.