# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::ImageContext (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::ImageContext.

Image context and/or feature-specific parameters.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #crop_hints_params

    def crop_hints_params() -> ::Google::Cloud::Vision::V1::CropHintsParams

**Returns**

- ([::Google::Cloud::Vision::V1::CropHintsParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-CropHintsParams)) --- Parameters for crop hints annotation request.

### #crop_hints_params=

    def crop_hints_params=(value) -> ::Google::Cloud::Vision::V1::CropHintsParams

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::CropHintsParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-CropHintsParams)) --- Parameters for crop hints annotation request.
**Returns**

- ([::Google::Cloud::Vision::V1::CropHintsParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-CropHintsParams)) --- Parameters for crop hints annotation request.

### #language_hints

    def language_hints() -> ::Array<::String>

**Returns**

- (::Array\<::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 `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](https://cloud.google.com/vision/docs/languages).

### #language_hints=

    def language_hints=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::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 `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](https://cloud.google.com/vision/docs/languages).
**Returns**

- (::Array\<::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 `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](https://cloud.google.com/vision/docs/languages).

### #lat_long_rect

    def lat_long_rect() -> ::Google::Cloud::Vision::V1::LatLongRect

**Returns**

- ([::Google::Cloud::Vision::V1::LatLongRect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-LatLongRect)) --- Not used.

### #lat_long_rect=

    def lat_long_rect=(value) -> ::Google::Cloud::Vision::V1::LatLongRect

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::LatLongRect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-LatLongRect)) --- Not used.
**Returns**

- ([::Google::Cloud::Vision::V1::LatLongRect](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-LatLongRect)) --- Not used.

### #product_search_params

    def product_search_params() -> ::Google::Cloud::Vision::V1::ProductSearchParams

**Returns**

- ([::Google::Cloud::Vision::V1::ProductSearchParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSearchParams)) --- Parameters for product search.

### #product_search_params=

    def product_search_params=(value) -> ::Google::Cloud::Vision::V1::ProductSearchParams

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::ProductSearchParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSearchParams)) --- Parameters for product search.
**Returns**

- ([::Google::Cloud::Vision::V1::ProductSearchParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSearchParams)) --- Parameters for product search.

### #text_detection_params

    def text_detection_params() -> ::Google::Cloud::Vision::V1::TextDetectionParams

**Returns**

- ([::Google::Cloud::Vision::V1::TextDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextDetectionParams)) --- Parameters for text detection and document text detection.

### #text_detection_params=

    def text_detection_params=(value) -> ::Google::Cloud::Vision::V1::TextDetectionParams

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::TextDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextDetectionParams)) --- Parameters for text detection and document text detection.
**Returns**

- ([::Google::Cloud::Vision::V1::TextDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextDetectionParams)) --- Parameters for text detection and document text detection.

### #web_detection_params

    def web_detection_params() -> ::Google::Cloud::Vision::V1::WebDetectionParams

**Returns**

- ([::Google::Cloud::Vision::V1::WebDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-WebDetectionParams)) --- Parameters for web detection.

### #web_detection_params=

    def web_detection_params=(value) -> ::Google::Cloud::Vision::V1::WebDetectionParams

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::WebDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-WebDetectionParams)) --- Parameters for web detection.
**Returns**

- ([::Google::Cloud::Vision::V1::WebDetectionParams](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-WebDetectionParams)) --- Parameters for web detection.