ImageContext

Image context and/or feature-specific parameters.

JSON representation
{
  "latLongRect": {
    object(LatLongRect)
  },
  "languageHints": [
    string
  ],
  "cropHintsParams": {
    object(CropHintsParams)
  },
  "webDetectionParams": {
    object(WebDetectionParams)
  }
}
Fields
latLongRect

object(LatLongRect)

Not used.

languageHints[]

string

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 languageHints 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.

cropHintsParams

object(CropHintsParams)

Parameters for crop hints annotation request.

webDetectionParams

object(WebDetectionParams)

Parameters for web detection.

LatLongRect

Rectangle determined by min and max LatLng pairs.

JSON representation
{
  "minLatLng": {
    object(LatLng)
  },
  "maxLatLng": {
    object(LatLng)
  }
}
Fields
minLatLng

object(LatLng)

Min lat/long pair.

maxLatLng

object(LatLng)

Max lat/long pair.

CropHintsParams

Parameters for crop hints annotation request.

JSON representation
{
  "aspectRatios": [
    number
  ]
}
Fields
aspectRatios[]

number

Aspect ratios in floats, representing the ratio of the width to the height of the image. For example, if the desired aspect ratio is 4/3, the corresponding float value should be 1.33333. If not specified, the best possible crop is returned. The number of provided aspect ratios is limited to a maximum of 16; any aspect ratios provided after the 16th are ignored.

WebDetectionParams

Parameters for web detection request.

JSON representation
{
  "includeGeoResults": boolean
}
Fields
includeGeoResults

boolean

Whether to include results derived from the geo information in the image.