Face Registration and 1:1 Validation
Registration
To register a user's face linked to their CPF, it is necessary that the documentNumber parameter of the .setDocumentNumber() function be filled with that user's CPF and that the shouldValidate parameter of the .setValidation() function be set to false in the SDK constructor or that the .setValidation() function not be called. See the registration example below:
<script>
var hostComponent = document.getElementById('webfacerecon')
var webFaceRecon = new ZaigWebFaceRecon.WebFaceRecon(hostComponent)
... Other configurations
.setDocumentNumber('000.000.000-00')
//.setValidation(false) the setValidation function should not be used or used with the false parameter
.build()
<script/>
1:1 Validation - Face Match
To use the 1:1 Validation (Face Match) functionality, it is necessary that the shouldValidate parameter be set to true in the SDK constructor. This must be done by calling the .setValidation() method. In addition, it is necessary that the documentNumber parameter of the .setDocumentNumber() function be filled with the CPF of the user who has already had their face previously registered. See the validation example below:
<script>
var hostComponent = document.getElementById('webfacerecon')
var webFaceRecon = new ZaigWebFaceRecon.WebFaceRecon(hostComponent)
... Other configurations
.setDocumentNumber('000.000.000-00')
.setValidation(true)
.build()
<script/>
ATTENTION: 1:1 validation can only be used from the user's second session onwards, that is, after the first session, when the documentNumber parameter is filled with the user's CPF and the validation parameter with
false, having a registration to be validated.
Previous Versions
Versions prior to 3.0.0 need to pass the mobileToken in the WebFaceRecon constructor.
Usage example
<script>
var hostComponent = document.getElementById('webfacerecon')
var webFaceRecon = new ZaigWebFaceRecon.WebFaceRecon(
hostComponent,
'YOUR_TOKEN_SENT_BY_QITECH'
)
... Other configurations
<script/>