public abstract class
Detection
Represents one detected object in the results of ERROR(/com.google.mediapipe.tasks.version.objectdetector.ObjectDetector)
.
Public Constructors
Public Methods
abstract RectF |
boundingBox()
A
ERROR(/RectF) object to represent the bounding box of the detected object. |
abstract List<Category> |
categories()
A list of
Category objects. |
static Detection |
Inherited Methods
Public Constructors
public Detection ()
Public Methods
public abstract RectF boundingBox ()
A ERROR(/RectF)
object to represent the bounding box of the detected object.
public static Detection create (List<Category> categories, RectF boundingBox)
Parameters
categories | a list of Category objects that contain category name, display name,
score, and the label index. |
---|---|
boundingBox | a ERROR(/RectF) object to represent the bounding box.
|