class Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse

Response to an image annotation request.

Attributes

context[RW]

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::VisionV1::GoogleCloudVisionV1p4beta1ImageAnnotationContext]

crop_hints_annotation[RW]

Set of crop hints that are used to generate new crops when serving images. Corresponds to the JSON property `cropHintsAnnotation` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1CropHintsAnnotation]

error[RW]

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::VisionV1::Status]

face_annotations[RW]

If present, face detection has completed successfully. Corresponds to the JSON property `faceAnnotations` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotation>]

full_text_annotation[RW]

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::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotation]

image_properties_annotation[RW]

Stores image properties, such as dominant colors. Corresponds to the JSON property `imagePropertiesAnnotation` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties]

label_annotations[RW]

If present, label detection has completed successfully. Corresponds to the JSON property `labelAnnotations` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]

landmark_annotations[RW]

If present, landmark detection has completed successfully. Corresponds to the JSON property `landmarkAnnotations` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]

localized_object_annotations[RW]

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::VisionV1::GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>]

logo_annotations[RW]

If present, logo detection has completed successfully. Corresponds to the JSON property `logoAnnotations` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]

product_search_results[RW]

Results for a product search request. Corresponds to the JSON property `productSearchResults` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults]

safe_search_annotation[RW]

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::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation]

text_annotations[RW]

If present, text (OCR) detection has completed successfully. Corresponds to the JSON property `textAnnotations` @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]

web_detection[RW]

Relevant information for the image from the Internet. Corresponds to the JSON property `webDetection` @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetection]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 6643
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 6648
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