Baidu Cloud OCR Properties

Supported in UFT One versions 15.0.1 and later.

This topic describes the properties to use if you set the TextRecognitionOcrMechanism to Baidu.

BaiduOcrKey Property

Description

An encoded string representing the access token to use when connecting to the Baidu OCR engine.

Use the Password Encoder utility installed with UFT One to encode the access token that you use to access your Baidu OCR account.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrKey As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrLanguages Property

Description

The languages to use for text recognition when using the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrLanguages As String

Return Type

Possible values:

Chinese and English

Korean

English

Portuguese

French

Russian

German

Spanish

Japanese

 

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrProxyAddress Property

Description

The address of the proxy server to use when connecting to the Baidu OCR engine.

Syntax

Visual Basic
Public Property BaiduOcrProxyAddress As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrProxyPort Property

Description

The proxy port to use when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrProxyPort As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrProxyPassword Property

Description

The proxy password to use when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrProxyPassword As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrProxyType Property

Description

The proxy type to use when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrProxyType As String

Return Type

Possible values:

System Proxy. Uses the system-defined proxy, you do not need to enter any other proxy details.

HTTP Proxy. Use this type to provide the proxy server address, port, and authentication details.

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrUseAuthentication Property

Description

Indicates whether to use proxy authentication when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrUseAuthentication As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrUseProxy Property

Description

Indicates whether to use proxy when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrUseProxy As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

BaiduOcrProxyUserName Property

Description

The proxy username to use when connecting to the Baidu OCR engine.

Property type

Read-write property.

Syntax

Visual Basic
Public Property BaiduOcrProxyUserName As String

Remarks

For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.

Back to top

Baidu Cloud OCR connection example

Connect to Baidu OCR Cloud

The following code shows an example of the Application object, when connecting to Baidu OCR cloud:

Dim App 'As Application

Set App = CreateObject("QuickTest.Application")

App.Options.TextRecognitionOcrMechanism = "Baidu"

App.Options.BaiduOcrLanguages = "English"

App.Options.BaiduOcrKey = "<encrypted>"

App.Options.BaiduOcrUseProxy = True

App.Options.BaiduOcrProxyType = "HTTP"

App.Options.BaiduOcrProxyAddress = "14.52.345.1"

App.Options.BaiduOcrProxyPort = 8080

App.Options.BaiduOcrUseAuthentication = False

See also: