class Google::Apis::VisionV1p1beta1::AnnotateImageResponse
Response to an image annotation request.
Attributes
If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image. Corresponds to the JSON property `context` @return [Google::Apis::VisionV1p1beta1::ImageAnnotationContext]
Set of crop hints that are used to generate new crops when serving images. Corresponds to the JSON property `cropHintsAnnotation` @return [Google::Apis::VisionV1p1beta1::CropHintsAnnotation]
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::VisionV1p1beta1::Status]
If present, face detection has completed successfully. Corresponds to the JSON property `faceAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::FaceAnnotation>]
TextAnnotation
contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation
-> Page
-> Block
-> Paragraph
-> Word
-> Symbol
Each structural component, starting from Page
, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation
. TextProperty
message definition below for more detail. Corresponds to the JSON property `fullTextAnnotation` @return [Google::Apis::VisionV1p1beta1::TextAnnotation]
Stores image properties, such as dominant colors. Corresponds to the JSON property `imagePropertiesAnnotation` @return [Google::Apis::VisionV1p1beta1::ImageProperties]
If present, label detection has completed successfully. Corresponds to the JSON property `labelAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
If present, landmark detection has completed successfully. Corresponds to the JSON property `landmarkAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
If present, localized object detection has completed successfully. This will be sorted descending by confidence score. Corresponds to the JSON property `localizedObjectAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::LocalizedObjectAnnotation>]
If present, logo detection has completed successfully. Corresponds to the JSON property `logoAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
Results for a product search request. Corresponds to the JSON property `productSearchResults` @return [Google::Apis::VisionV1p1beta1::ProductSearchResults]
Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence). Corresponds to the JSON property `safeSearchAnnotation` @return [Google::Apis::VisionV1p1beta1::SafeSearchAnnotation]
If present, text (OCR) detection has completed successfully. Corresponds to the JSON property `textAnnotations` @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
Relevant information for the image from the Internet. Corresponds to the JSON property `webDetection` @return [Google::Apis::VisionV1p1beta1::WebDetection]
Public Class Methods
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 156 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1p1beta1/classes.rb, line 161 def update!(**args) @context = args[:context] if args.key?(:context) @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation) @error = args[:error] if args.key?(:error) @face_annotations = args[:face_annotations] if args.key?(:face_annotations) @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) @label_annotations = args[:label_annotations] if args.key?(:label_annotations) @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) @product_search_results = args[:product_search_results] if args.key?(:product_search_results) @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) @text_annotations = args[:text_annotations] if args.key?(:text_annotations) @web_detection = args[:web_detection] if args.key?(:web_detection) end