This Angular SDK provides a component for performing live face recognition and liveness checks using Dikript's API.
- Live camera feed
- Face detection
- Liveness check
- Easy integration with Angular applications
To install the Dikript Angular Live Face SDK, run the following command in your Angular project:
npm install dikript-angular-live-face-sdk
- Import the
LivenessPopupComponent
in your Angular module:
import { LivenessPopupComponent } from 'dikript-angular-live-face-sdk';
@NgModule({
// ...
imports: [LivenessPopupComponent],
// ...
})
export class YourModule { }
- Use the component in your template:
<app-liveness-popup
[apiKey]="yourApiKey"
[name]="yourAppName"
[apiUrl]="dikriptApiUrl"
(closePopup)="handleClosePopup()"
(livenessResult)="handleLivenessResult($event)"
></app-liveness-popup>
- Implement the necessary methods in your component:
export class YourComponent {
apiKey = 'your_api_key_here';
name = 'Your App Name';
apiUrl = 'https://api.dikript.com/dikript/api/v1/biometrics/livelinesscheck';
handleClosePopup() {
// Handle popup close
}
handleLivenessResult(result: any) {
// Handle liveness check result
console.log('Liveness result:', result);
}
}
-
apiKey
: Your Dikript API key -
name
: Your application name -
apiUrl
: The Dikript API endpoint for liveness checks
-
closePopup
: Emitted when the popup is closed -
livenessResult
: Emitted with the result of the liveness check
To set up the project for development:
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
ng serve
To build the project for production:
ng build --prod
This will create a production-ready build in the dist/
folder.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
For support, please contact Dikript Solutions at tech@dikript.com.