FaceDetectorResult
class FaceDetectorResult: TaskResult, NSCopyingRepresents the detection results generated by FaceDetector.
-
Initializes a new
FaceDetectorResultwith the given array of detections and timestamp (in milliseconds).Declaration
Swift
init(detections: [Detection], timestampInMilliseconds: Int)Parameters
detectionsAn array of
Detectionobjects each of which has a bounding box that is expressed in the unrotated input frame of reference coordinates system, i.e. in[0,image_width) x [0,image_height), which are the dimensions of the underlying image data.timestampInMillisecondsThe timestamp (in milliseconds) for this result.
Return Value
An instance of
FaceDetectorResultinitialized with the given array of detections and timestamp (in milliseconds). -
The array of
Detectionobjects each of which has a bounding box that is expressed in the unrotated input frame of reference coordinates system, i.e. in[0,image_width) x [0,image_height), which are the dimensions of the underlying image data.Declaration
Swift
var detections: [Detection] { get }