generated/google/apis/vision_v1/classes.rb in google-api-client-0.23.9 vs generated/google/apis/vision_v1/classes.rb in google-api-client-0.24.0
- old
+ new
@@ -167,10 +167,16 @@
# If present, landmark detection has completed successfully.
# Corresponds to the JSON property `landmarkAnnotations`
# @return [Array<Google::Apis::VisionV1::EntityAnnotation>]
attr_accessor :landmark_annotations
+ # 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::LocalizedObjectAnnotation>]
+ attr_accessor :localized_object_annotations
+
# If present, logo detection has completed successfully.
# Corresponds to the JSON property `logoAnnotations`
# @return [Array<Google::Apis::VisionV1::EntityAnnotation>]
attr_accessor :logo_annotations
@@ -203,10 +209,11 @@
@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)
@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
@@ -1257,10 +1264,16 @@
# If present, landmark detection has completed successfully.
# Corresponds to the JSON property `landmarkAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
attr_accessor :landmark_annotations
+ # 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::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>]
+ attr_accessor :localized_object_annotations
+
# If present, logo detection has completed successfully.
# Corresponds to the JSON property `logoAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
attr_accessor :logo_annotations
@@ -1293,10 +1306,11 @@
@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)
@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
@@ -1942,10 +1956,55 @@
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
+ # Set of detected objects with bounding boxes.
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
+ attr_accessor :bounding_poly
+
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ # information, see
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ # Corresponds to the JSON property `languageCode`
+ # @return [String]
+ attr_accessor :language_code
+
+ # Object ID that should align with EntityAnnotation mid.
+ # Corresponds to the JSON property `mid`
+ # @return [String]
+ attr_accessor :mid
+
+ # Object name, expressed in its `language_code` language.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # Score of the result. Range [0, 1].
+ # Corresponds to the JSON property `score`
+ # @return [Float]
+ attr_accessor :score
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
+ @language_code = args[:language_code] if args.key?(:language_code)
+ @mid = args[:mid] if args.key?(:mid)
+ @name = args[:name] if args.key?(:name)
+ @score = args[:score] if args.key?(:score)
+ end
+ end
+
# Detected entity location information.
class GoogleCloudVisionV1p1beta1LocationInfo
include Google::Apis::Core::Hashable
# An object representing a latitude/longitude pair. This is expressed as a pair
@@ -2736,10 +2795,16 @@
# If present, landmark detection has completed successfully.
# Corresponds to the JSON property `landmarkAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
attr_accessor :landmark_annotations
+ # 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::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>]
+ attr_accessor :localized_object_annotations
+
# If present, logo detection has completed successfully.
# Corresponds to the JSON property `logoAnnotations`
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
attr_accessor :logo_annotations
@@ -2772,10 +2837,11 @@
@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)
@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
@@ -3427,10 +3493,55 @@
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
@mime_type = args[:mime_type] if args.key?(:mime_type)
end
end
+ # Set of detected objects with bounding boxes.
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
+ attr_accessor :bounding_poly
+
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ # information, see
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ # Corresponds to the JSON property `languageCode`
+ # @return [String]
+ attr_accessor :language_code
+
+ # Object ID that should align with EntityAnnotation mid.
+ # Corresponds to the JSON property `mid`
+ # @return [String]
+ attr_accessor :mid
+
+ # Object name, expressed in its `language_code` language.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # Score of the result. Range [0, 1].
+ # Corresponds to the JSON property `score`
+ # @return [Float]
+ attr_accessor :score
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
+ @language_code = args[:language_code] if args.key?(:language_code)
+ @mid = args[:mid] if args.key?(:mid)
+ @name = args[:name] if args.key?(:name)
+ @score = args[:score] if args.key?(:score)
+ end
+ end
+
# Detected entity location information.
class GoogleCloudVisionV1p2beta1LocationInfo
include Google::Apis::Core::Hashable
# An object representing a latitude/longitude pair. This is expressed as a pair
@@ -5418,12 +5529,10 @@
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Product]
attr_accessor :product
# A confidence level on the match, ranging from 0 (no confidence) to
# 1 (full confidence).
- # This field is returned only if `view` is set to `FULL` in
- # the request.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
@@ -6254,9 +6363,54 @@
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@operations = args[:operations] if args.key?(:operations)
+ end
+ end
+
+ # Set of detected objects with bounding boxes.
+ class LocalizedObjectAnnotation
+ include Google::Apis::Core::Hashable
+
+ # A bounding polygon for the detected image annotation.
+ # Corresponds to the JSON property `boundingPoly`
+ # @return [Google::Apis::VisionV1::BoundingPoly]
+ attr_accessor :bounding_poly
+
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
+ # information, see
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+ # Corresponds to the JSON property `languageCode`
+ # @return [String]
+ attr_accessor :language_code
+
+ # Object ID that should align with EntityAnnotation mid.
+ # Corresponds to the JSON property `mid`
+ # @return [String]
+ attr_accessor :mid
+
+ # Object name, expressed in its `language_code` language.
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # Score of the result. Range [0, 1].
+ # Corresponds to the JSON property `score`
+ # @return [Float]
+ attr_accessor :score
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
+ @language_code = args[:language_code] if args.key?(:language_code)
+ @mid = args[:mid] if args.key?(:mid)
+ @name = args[:name] if args.key?(:name)
+ @score = args[:score] if args.key?(:score)
end
end
# Detected entity location information.
class LocationInfo