# getAsDetectedFace method

DetectedFace getAsDetectedFace()

Gets the tracked face as a detected face.

return The tracked face as a detected face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    DetectedFace getAsDetectedFace() {
      DetectedFace detectedFace = DetectedFace();
      var err = faceSDK.id3TrackedFace_GetAsDetectedFace(_pHandle.value, detectedFace.handle);
      if (err != FaceError.success.value) {
        detectedFace.dispose();
        throw FaceException(err);
      }
      return detectedFace;
    }