Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::ImageObjectDetectionAnnotation.
Annotation details for image object detection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bounding_box
def bounding_box() -> ::Google::Cloud::AutoML::V1::BoundingPoly
Returns
- (::Google::Cloud::AutoML::V1::BoundingPoly) — Output only. The rectangle representing the object location.
#bounding_box=
def bounding_box=(value) -> ::Google::Cloud::AutoML::V1::BoundingPoly
Parameter
- value (::Google::Cloud::AutoML::V1::BoundingPoly) — Output only. The rectangle representing the object location.
Returns
- (::Google::Cloud::AutoML::V1::BoundingPoly) — Output only. The rectangle representing the object location.
#score
def score() -> ::Float
Returns
- (::Float) — Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.
#score=
def score=(value) -> ::Float
Parameter
- value (::Float) — Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.
Returns
- (::Float) — Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.