class ImageContext extends Message

Image context and/or feature-specific parameters.

Protobuf type Google\Cloud\Vision\V1\ImageContext

Methods

__construct()

No description

getLatLongRect()

lat/long rectangle that specifies the location of the image.

setLatLongRect(LatLongRect $var)

lat/long rectangle that specifies the location of the image.

RepeatedField
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(array|RepeatedField $var)

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.

getCropHintsParams()

Parameters for crop hints annotation request.

setCropHintsParams(CropHintsParams $var)

Parameters for crop hints annotation request.

Details

at line 44
__construct()

at line 55
LatLongRect getLatLongRect()

lat/long rectangle that specifies the location of the image.

Generated from protobuf field .google.cloud.vision.v1.LatLongRect lat_long_rect = 1;

Return Value

LatLongRect

at line 66
setLatLongRect(LatLongRect $var)

lat/long rectangle that specifies the location of the image.

Generated from protobuf field .google.cloud.vision.v1.LatLongRect lat_long_rect = 1;

Parameters

LatLongRect $var

at line 85
RepeatedField 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.

Generated from protobuf field repeated string language_hints = 2;

Return Value

RepeatedField

at line 103
setLanguageHints(array|RepeatedField $var)

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.

Generated from protobuf field repeated string language_hints = 2;

Parameters

array|RepeatedField $var

at line 115
CropHintsParams getCropHintsParams()

Parameters for crop hints annotation request.

Generated from protobuf field .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;

Return Value

CropHintsParams

at line 126
setCropHintsParams(CropHintsParams $var)

Parameters for crop hints annotation request.

Generated from protobuf field .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;

Parameters

CropHintsParams $var