Class: Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/visionai/v1/annotations.rb

Overview

Prediction output format for Generic Object Detection.

Defined Under Namespace

Classes: Entity, IdentifiedBox

Instance Attribute Summary collapse

Instance Attribute Details

#current_time::Google::Protobuf::Timestamp

Returns Current timestamp.

Returns:



161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 161

class ObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The entity info for annotations from object detection prediction result.
  # @!attribute [rw] label_id
  #   @return [::Integer]
  #     Label id.
  # @!attribute [rw] label_string
  #   @return [::String]
  #     Human readable string of the label.
  class Entity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Identified box contains location and the entity of the object.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult::IdentifiedBox::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] entity
  #   @return [::Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult::Entity]
  #     Entity of this box.
  class IdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Bounding Box in the normalized coordinates.
    # @!attribute [rw] xmin
    #   @return [::Float]
    #     Min in x coordinate.
    # @!attribute [rw] ymin
    #   @return [::Float]
    #     Min in y coordinate.
    # @!attribute [rw] width
    #   @return [::Float]
    #     Width of the bounding box.
    # @!attribute [rw] height
    #   @return [::Float]
    #     Height of the bounding box.
    class NormalizedBoundingBox
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end

#identified_boxes::Array<::Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult::IdentifiedBox>

Returns A list of identified boxes.

Returns:



161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 161

class ObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The entity info for annotations from object detection prediction result.
  # @!attribute [rw] label_id
  #   @return [::Integer]
  #     Label id.
  # @!attribute [rw] label_string
  #   @return [::String]
  #     Human readable string of the label.
  class Entity
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Identified box contains location and the entity of the object.
  # @!attribute [rw] box_id
  #   @return [::Integer]
  #     An unique id for this box.
  # @!attribute [rw] normalized_bounding_box
  #   @return [::Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult::IdentifiedBox::NormalizedBoundingBox]
  #     Bounding Box in the normalized coordinates.
  # @!attribute [rw] confidence_score
  #   @return [::Float]
  #     Confidence score associated with this box.
  # @!attribute [rw] entity
  #   @return [::Google::Cloud::VisionAI::V1::ObjectDetectionPredictionResult::Entity]
  #     Entity of this box.
  class IdentifiedBox
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Bounding Box in the normalized coordinates.
    # @!attribute [rw] xmin
    #   @return [::Float]
    #     Min in x coordinate.
    # @!attribute [rw] ymin
    #   @return [::Float]
    #     Min in y coordinate.
    # @!attribute [rw] width
    #   @return [::Float]
    #     Width of the bounding box.
    # @!attribute [rw] height
    #   @return [::Float]
    #     Height of the bounding box.
    class NormalizedBoundingBox
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end