Class ImageObjectDetectionPredictionResult (0.1.2)

ImageObjectDetectionPredictionResult(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Prediction output format for Image Object Detection.

Attributes

Name Description
ids MutableSequence[int]
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.
display_names MutableSequence[str]
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
confidences MutableSequence[float]
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
bboxes MutableSequence[google.protobuf.struct_pb2.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.