Cloud Video Intelligence V1 Client - Class TextDetectionConfig (1.13.1)

Reference documentation and code samples for the Cloud Video Intelligence V1 Client class TextDetectionConfig.

Config for TEXT_DETECTION.

Generated from protobuf message google.cloud.videointelligence.v1.TextDetectionConfig

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ language_hints
array

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format. Automatic language detection is performed if no hint is provided.

↳ model
string

Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

getLanguageHints

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

Returns
Type
Description

setLanguageHints

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getModel

Model to use for text detection.

Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Returns
Type
Description
string

setModel

Model to use for text detection.

Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: