IVDPhotoSelfieCapture¶
Interface that allows communication with the exposed class of this SDK.
Public Methods¶
void VDPhotoSelfieAndFaceCaptured(ByteArrayInputStream selfieImage, ByteArrayInputStream faceImage)
DEPRECATED Method that sends selfie image taken and face region trimmed from selfie image. This method is deprecated.
-
Parameteres:
- selfieImage: Byte array with the selfie image.
- faceImage: Byte array with the face located (if any) in the selfie image. If no face is located, the same selfie image is used.
void VDPhotoSelfieAndFaceCaptured(byte[] selfieImage, byte[] faceImage)
Method that sends selfie image taken and face region trimmed from selfie image.
-
Parameteres:
- selfieImage: Byte array with the selfie image.
- faceImage: Byte array with the face located (if any) in the selfie image. If no face is located, the same selfie image is used.
void VDPhotoSelfieAndFaceCapturedWithLiveDetection(ByteArrayInputStream selfieByteArray, ByteArrayInputStream faceByteArray)
DEPRECATED Method that sends selfie frame taken and face region trimmed from selfie frame.
-
Parameters:
- selfieByteArray: Byte array with the selfie image.
- faceByteArray: Byte array with face located (if any) in the selfie image. If no face is located, the same selfie image is used.
void VDPhotoSelfieAndFaceCapturedWithLiveDetection(byte[] selfieByteArray, byte[] faceByteArray)
Method that sends selfie frame taken and face region trimmed from selfie frame.
-
Parameters:
- selfieByteArray: Byte array with the selfie image.
- faceByteArray: Byte array with face located (if any) in the selfie image. If no face is located, the same selfie image is used.
void VDPhotoSelfieAndChallengeVideoCaptured(ByteArrayInputStream challengeVideo, String challengeWebVTT)
DEPRECATED Method that sends selfie frame taken, face region trimmed from selfie frame, the challenge video and the WebVTT info.
-
Parameters:
- challengeVideo: Byte array with the challenge video.
- challengeWebVTT: String with the challenge WebVTT.
void VDPhotoSelfieAndChallengeVideoCaptured(byte[] challengeVideo, String challengeWebVTT)
Method that sends selfie frame taken, face region trimmed from selfie frame, the callenge video and the WebVTT info.
-
Parameters:
- challengeVideo: Byte array with the challenge video.
- challengeWebVTT: String with the challenge WebVTT.
void VDPhotoSelfieFinished(boolean successfully)
Method that indicates that everything has finished.
-
Parameters:
- successfully: True if successfully finished, false otherwise.
void VDPhotoSelfieChallengeFinishedWithError()
Method that indicates that user is going to repeat the challenge.