# clone method

DetectedFace clone()

Creates a copy of the DetectedFace object.

return The newly created DetectedFace object. throws FaceException An error has occurred during Face Library execution.

## Implementation

    DetectedFace clone() {
      DetectedFace clone = DetectedFace();
      var err = faceSDK.id3DetectedFace_CopyTo(_pHandle.value, clone.handle);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
      return clone;
    }