ImageContext
class ImageContext extends Message
Image context and/or feature-specific parameters.
Protobuf type Google\Cloud\Vision\V1\ImageContext
Methods
No description
lat/long rectangle that specifies the location of the image.
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.
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.
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;
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;
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;
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;
at line 115
CropHintsParams
getCropHintsParams()
Parameters for crop hints annotation request.
Generated from protobuf field .google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
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;