Class: Google::Cloud::Vision::V1p4beta1::ImageContext

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb

Overview

Image context and/or feature-specific parameters.

Instance Attribute Summary collapse

Instance Attribute Details

#crop_hints_params::Google::Cloud::Vision::V1p4beta1::CropHintsParams

Returns Parameters for crop hints annotation request.

Returns:



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#face_recognition_params::Google::Cloud::Vision::V1p4beta1::FaceRecognitionParams

Returns Parameters for face recognition.

Returns:



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_hints::Array<::String>

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

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.



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#lat_long_rect::Google::Cloud::Vision::V1p4beta1::LatLongRect

Returns Not used.



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#product_search_params::Google::Cloud::Vision::V1p4beta1::ProductSearchParams

Returns Parameters for product search.

Returns:



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text_detection_params::Google::Cloud::Vision::V1p4beta1::TextDetectionParams

Returns Parameters for text detection and document text detection.

Returns:



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#web_detection_params::Google::Cloud::Vision::V1p4beta1::WebDetectionParams

Returns Parameters for web detection.

Returns:



606
607
608
609
# File 'proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb', line 606

class ImageContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end