get method

DetectedFace get(
  1. int index
)

Gets an item of the DetectedFaceList object.

param index Index of the DetectedFace item to get. return DetectedFace item to get. throws FaceException An error has occurred during Face Library execution.

Implementation

DetectedFace get(int index) {
  DetectedFace detectedFaceItem = DetectedFace();
  var err = faceSDK.id3DetectedFaceList_Get(_pHandle.value, index, detectedFaceItem.handle);
  if (err != FaceError.success.value) {
    detectedFaceItem.dispose();
    throw FaceException(err);
  }
  return detectedFaceItem;
}