antispoof
Enables anti-fraud detection (anti-spoofing).
Last updated
function handleExtractionFinish(event: CustomEvent) {
const result = event.detail.detail;
const blob = result.encryptedLivenessRaw;
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = 'archivo.bin';
link.click();
}function handleExtractionFinish(event: CustomEvent) {
const result = event.detail.detail;
fetch('...', {
method: 'POST',
headers: {
'Content-Type': 'application/octet-stream',
'x-api-key': '...',
},
body: result.encryptedLivenessRaw,
});
}<facephi-selphi-widget
antispoof={true}
onExtractionFinish={(event) => {
const livenessRaw = event.detail.detail.encryptedLivenessRaw;
testLiveness(livenessRaw);
}}
/>