ObjectDetectionResult

public abstract class ObjectDetectionResult implements TaskResult

Known direct subclasses
ObjectDetectorResult

Represents the detection results generated by ObjectDetector.


Represents the detection results generated by ObjectDetector.

Summary

Public constructors

Public methods

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

ObjectDetectionResult

public ObjectDetectionResult()

Public methods

create

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

Creates an ObjectDetectionResult 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.

detections

public abstract List<Detection> detections()

timestampMs

public abstract long timestampMs()

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