FaceDetectorResult

public abstract class FaceDetectorResult implements TaskResult


Represents the detection results generated by FaceDetector.

Summary

Public constructors

Public methods

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

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

abstract List<Detection>
abstract long

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

Public constructors

FaceDetectorResult

public FaceDetectorResult()

Public methods

create

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

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