Reference documentation and code samples for the Cloud Vision V1 Client class ImageContext.
Image context and/or feature-specific parameters.
Generated from protobuf message google.cloud.vision.v1.ImageContext
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ lat_long_rect
↳ language_hints
array
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting language_hints
is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the supported languages
.
↳ crop_hints_params
↳ product_search_params
↳ web_detection_params
↳ text_detection_params
getLatLongRect
Not used.
hasLatLongRect
clearLatLongRect
setLatLongRect
Not used.
$this
getLanguageHints
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the supported languages
.
setLanguageHints
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the supported languages
.
var
string[]
$this
getCropHintsParams
Parameters for crop hints annotation request.
hasCropHintsParams
clearCropHintsParams
setCropHintsParams
Parameters for crop hints annotation request.
$this
getProductSearchParams
Parameters for product search.
hasProductSearchParams
clearProductSearchParams
setProductSearchParams
Parameters for product search.
$this
getWebDetectionParams
Parameters for web detection.
hasWebDetectionParams
clearWebDetectionParams
setWebDetectionParams
Parameters for web detection.
$this
getTextDetectionParams
Parameters for text detection and document text detection.
hasTextDetectionParams
clearTextDetectionParams
setTextDetectionParams
Parameters for text detection and document text detection.
$this

