Reference documentation and code samples for the Cloud Video Intelligence V1 Client class TextDetectionConfig.
Config for TEXT_DETECTION.
Generated from protobuf messagegoogle.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.
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Video Intelligence V1 Client - Class TextDetectionConfig (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-videointelligence/latest/V1.TextDetectionConfig)\n- [2.0.4](/php/docs/reference/cloud-videointelligence/2.0.4/V1.TextDetectionConfig)\n- [1.15.5](/php/docs/reference/cloud-videointelligence/1.15.5/V1.TextDetectionConfig)\n- [1.14.2](/php/docs/reference/cloud-videointelligence/1.14.2/V1.TextDetectionConfig)\n- [1.13.1](/php/docs/reference/cloud-videointelligence/1.13.1/V1.TextDetectionConfig)\n- [1.12.16](/php/docs/reference/cloud-videointelligence/1.12.16/V1.TextDetectionConfig) \nReference documentation and code samples for the Cloud Video Intelligence V1 Client class TextDetectionConfig.\n\nConfig for TEXT_DETECTION.\n\nGenerated from protobuf message `google.cloud.videointelligence.v1.TextDetectionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VideoIntelligence \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLanguageHints\n\nLanguage hint can be specified if the language to be detected is known a\npriori. It can increase the accuracy of the detection. Language hint must\nbe language code in BCP-47 format.\n\nAutomatic language detection is performed if no hint is provided.\n\n### setLanguageHints\n\nLanguage hint can be specified if the language to be detected is known a\npriori. It can increase the accuracy of the detection. Language hint must\nbe language code in BCP-47 format.\n\nAutomatic language detection is performed if no hint is provided.\n\n### getModel\n\nModel to use for text detection.\n\nSupported values: \"builtin/stable\" (the default if unset) and\n\"builtin/latest\".\n\n### setModel\n\nModel to use for text detection.\n\nSupported values: \"builtin/stable\" (the default if unset) and\n\"builtin/latest\"."]]