Cloud Video Intelligence V1 Client - Class TextDetectionConfig (1.12.16)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

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
NameDescription
var string[]
Returns
TypeDescription
$this

getModel

Model to use for text detection.

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

Returns
TypeDescription
string

setModel

Model to use for text detection.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this