Cloud Vision V1 API - Class Google::Cloud::Vision::V1::AnnotateImageResponse (v0.12.0)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::AnnotateImageResponse.

Response to an image annotation request.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#context

def context() -> ::Google::Cloud::Vision::V1::ImageAnnotationContext
Returns

#context=

def context=(value) -> ::Google::Cloud::Vision::V1::ImageAnnotationContext
Parameter
Returns

#crop_hints_annotation

def crop_hints_annotation() -> ::Google::Cloud::Vision::V1::CropHintsAnnotation
Returns

#crop_hints_annotation=

def crop_hints_annotation=(value) -> ::Google::Cloud::Vision::V1::CropHintsAnnotation
Parameter
Returns

#error

def error() -> ::Google::Rpc::Status
Returns
  • (::Google::Rpc::Status) — If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

#error=

def error=(value) -> ::Google::Rpc::Status
Parameter
  • value (::Google::Rpc::Status) — If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.
Returns
  • (::Google::Rpc::Status) — If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

#face_annotations

def face_annotations() -> ::Array<::Google::Cloud::Vision::V1::FaceAnnotation>
Returns

#face_annotations=

def face_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::FaceAnnotation>
Parameter
Returns

#full_text_annotation

def full_text_annotation() -> ::Google::Cloud::Vision::V1::TextAnnotation
Returns
  • (::Google::Cloud::Vision::V1::TextAnnotation) — If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

#full_text_annotation=

def full_text_annotation=(value) -> ::Google::Cloud::Vision::V1::TextAnnotation
Parameter
  • value (::Google::Cloud::Vision::V1::TextAnnotation) — If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
Returns
  • (::Google::Cloud::Vision::V1::TextAnnotation) — If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

#image_properties_annotation

def image_properties_annotation() -> ::Google::Cloud::Vision::V1::ImageProperties
Returns

#image_properties_annotation=

def image_properties_annotation=(value) -> ::Google::Cloud::Vision::V1::ImageProperties
Parameter
Returns

#label_annotations

def label_annotations() -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Returns

#label_annotations=

def label_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Parameter
Returns

#landmark_annotations

def landmark_annotations() -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Returns

#landmark_annotations=

def landmark_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Parameter
Returns

#localized_object_annotations

def localized_object_annotations() -> ::Array<::Google::Cloud::Vision::V1::LocalizedObjectAnnotation>
Returns

#localized_object_annotations=

def localized_object_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::LocalizedObjectAnnotation>
Parameter
Returns

#logo_annotations

def logo_annotations() -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Returns

#logo_annotations=

def logo_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Parameter
Returns

#product_search_results

def product_search_results() -> ::Google::Cloud::Vision::V1::ProductSearchResults
Returns

#product_search_results=

def product_search_results=(value) -> ::Google::Cloud::Vision::V1::ProductSearchResults
Parameter
Returns

#safe_search_annotation

def safe_search_annotation() -> ::Google::Cloud::Vision::V1::SafeSearchAnnotation
Returns

#safe_search_annotation=

def safe_search_annotation=(value) -> ::Google::Cloud::Vision::V1::SafeSearchAnnotation
Parameter
Returns

#text_annotations

def text_annotations() -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Returns

#text_annotations=

def text_annotations=(value) -> ::Array<::Google::Cloud::Vision::V1::EntityAnnotation>
Parameter
Returns

#web_detection

def web_detection() -> ::Google::Cloud::Vision::V1::WebDetection
Returns

#web_detection=

def web_detection=(value) -> ::Google::Cloud::Vision::V1::WebDetection
Parameter
Returns