Detection

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
create(List<Category> categories, RectF boundingBox, Optional<List<NormalizedKeypoint>> keypoints)
Creates a Detection instance from a list of Category and a bounding box.
static Detection
create(List<Category> categories, RectF boundingBox)
Creates a Detection instance from a list of Category and a bounding box.
static Detection
createFromProto(com.google.mediapipe.formats.proto.DetectionProto.Detection detectionProto)
abstract Optional<List<NormalizedKeypoint>>
keypoints()
An optional list of NormalizedKeypoint associated with the detection.

Inherited Methods