public static final class DetectedObjects.DetectedObject extends Classifications.Classification
DetectedObject
represents a single potential detected Object for an image.Constructor and Description |
---|
DetectedObject(java.lang.String className,
double probability,
BoundingBox boundingBox)
Constructs a bounding box with the given data.
|
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBoundingBox()
Returns the
BoundingBox of the detected object. |
java.lang.String |
toString() |
getClassName, getProbability
public DetectedObject(java.lang.String className, double probability, BoundingBox boundingBox)
className
- name of the type of objectprobability
- probability that the object is correctboundingBox
- the location of the objectpublic BoundingBox getBoundingBox()
BoundingBox
of the detected object.BoundingBox
of the detected objectpublic java.lang.String toString()
toString
in class Classifications.Classification