ObjectDetectorResult

public abstract class ObjectDetectorResult extends ObjectDetectionResult


Represents the detection results generated by ObjectDetector.

Summary

Public constructors

Public methods

static ObjectDetectorResult
create(List<DetectionProto.Detection> detectionList, long timestampMs)

Creates an ObjectDetectorResult instance from a list of Detection protobuf messages.

Inherited methods

From com.google.mediapipe.tasks.vision.objectdetector.ObjectDetectionResult
static ObjectDetectionResult
create(List<DetectionProto.Detection> detectionList, long timestampMs)

This method is deprecated.

Use create instead.

abstract List<Detection>
abstract long

Returns the timestamp that is associated with the task result object.

Public constructors

ObjectDetectorResult

public ObjectDetectorResult()

Public methods

create

public static ObjectDetectorResult create(List<DetectionProto.Detection> detectionList, long timestampMs)

Creates an ObjectDetectorResult instance from a list of Detection protobuf messages.

Parameters
List<DetectionProto.Detection> detectionList

a list of DetectionProto.Detection protobuf messages.

long timestampMs

a timestamp for this result.