Class: Google::Cloud::VisionAI::V1::ImageObjectDetectionPredictionResult

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 Image Object Detection.

Instance Attribute Summary collapse

Instance Attribute Details

#bboxes::Array<::Google::Protobuf::ListValue>

Returns Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

Returns:

  • (::Array<::Google::Protobuf::ListValue>)

    Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers xMin, xMax, yMin, and yMax, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.



236
237
238
239
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 236

class ImageObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#confidences::Array<::Float>

Returns The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

Returns:

  • (::Array<::Float>)

    The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.



236
237
238
239
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 236

class ImageObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#display_names::Array<::String>

Returns The display names of the AnnotationSpecs that had been identified, order matches the IDs.

Returns:

  • (::Array<::String>)

    The display names of the AnnotationSpecs that had been identified, order matches the IDs.



236
237
238
239
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 236

class ImageObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#ids::Array<::Integer>

Returns The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name.

Returns:

  • (::Array<::Integer>)

    The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name.



236
237
238
239
# File 'proto_docs/google/cloud/visionai/v1/annotations.rb', line 236

class ImageObjectDetectionPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end