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 | |
static Detection | |
static Detection |
createFromProto(com.google.mediapipe.formats.proto.DetectionProto.Detection detectionProto)
Creates a
Detection instance from a ERROR(/com.google.mediapipe.formats.proto.DetectionProto.Detection) protobuf message. |
abstract Optional<List<NormalizedKeypoint>> |
keypoints()
An optional list of
NormalizedKeypoint associated with the detection. |