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) — 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) — Parameters for crop hints annotation request.
    Returns
    
  - (::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_hintsis 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.
#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_hintsis 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.
    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_hintsis 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.
#lat_long_rect
def lat_long_rect() -> ::Google::Cloud::Vision::V1::LatLongRect
    Returns
    
  - (::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) — Not used.
    Returns
    
  - (::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) — Parameters for product search.
#product_search_params=
def product_search_params=(value) -> ::Google::Cloud::Vision::V1::ProductSearchParams
    Parameter
    
  - value (::Google::Cloud::Vision::V1::ProductSearchParams) — Parameters for product search.
    Returns
    
  - (::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) — 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) — Parameters for text detection and document text detection.
    Returns
    
  - (::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) — Parameters for web detection.
#web_detection_params=
def web_detection_params=(value) -> ::Google::Cloud::Vision::V1::WebDetectionParams
    Parameter
    
  - value (::Google::Cloud::Vision::V1::WebDetectionParams) — Parameters for web detection.
    Returns
    
- (::Google::Cloud::Vision::V1::WebDetectionParams) — Parameters for web detection.