Hologram
On the Turkish ID card and driving licence, the hologram is checked with a short video in which the user tilts the document slightly.
HologramBaseFragment.setControlFaceCapture(false);HologramBaseFragment.setStopVideoWhileRecording(false);
HologramBaseFragment hologramFragment = HologramBaseFragment.create(this);hologramFragment.setCardType(CardType.NEW_ID);hologramFragment.setFragmentListener(new HologramBaseFragment.FragmentListener() { @Override public void onVideoCaptured(String videoPath) { // Send the video (below), then delete the file }
@Override public void onVideoStarted() { } @Override public void onVideoProcessing() { } @Override public void onVideoCanceled() { } @Override public void onFaceDetectionSuccess() { } @Override public void onFaceDetectionIdle() { }});Convert the video to Base64 and send it:
ServerCall.detectHologram( new HologramDetectionInputModel(base64Video, hologramFragment.rotate, "NEW-ID", transactionId), new TechsignServiceListener<HologramDetectionReturnModel>() { @Override public void onSuccess(HologramDetectionReturnModel result) { }
@Override public void onFailure(Exception e) { } });Document type values: NEW-ID (Turkish ID card), NEW-DRIVER (driving licence), PASSPORT.