Package ai.djl.modality.cv.output
Class DetectedObjects.DetectedObject
java.lang.Object
ai.djl.modality.Classifications.Classification
ai.djl.modality.cv.output.DetectedObjects.DetectedObject
- Enclosing class:
- DetectedObjects
A
DetectedObject represents a single potential detected Object for an image.-
Constructor Summary
ConstructorsConstructorDescriptionDetectedObject(String className, double probability, BoundingBox boundingBox) Constructs a bounding box with the given data. -
Method Summary
Methods inherited from class ai.djl.modality.Classifications.Classification
getClassName, getProbability
-
Constructor Details
-
DetectedObject
Constructs a bounding box with the given data.- Parameters:
className- name of the type of objectprobability- probability that the object is correctboundingBox- the location of the object
-
-
Method Details
-
getBoundingBox
Returns theBoundingBoxof the detected object.- Returns:
- the
BoundingBoxof the detected object
-
toString
- Overrides:
toStringin classClassifications.Classification
-