public static interface Detector.ImageListener
Modifier and Type | Method and Description |
---|---|
void |
onImageResults(List<Face> faces,
Frame image,
float timeStamp)
Delivers information about an image which has been handled by the Detector
|
void onImageResults(List<Face> faces, Frame image, float timeStamp)
faces
- a list of Face
objects containing metrics about each face found in the image. If the image was
not processed by the Detector (e.g. if using CameraDetector and the image was not processed due to max
FPS settings), faces
will be null. If the image was processed but no face was found
faces
will be a zero length list, and if there were one or more faces found in the image,
there will be one element in the list. Returning data for multiple faces in an image is not yet
supported.image
- the image
that was processed.timeStamp
- For FrameDetector, CameraDetector, and VideoFileDetector, this is the time into the frame sequence for
the current frame, relative to the starting frame of the sequence. For PhotoDetector, this value
will always be 0.Copyright © 2015. All rights reserved.