Background supergraphic

GLAIR Web Components

GLAIR Web Components is a set of web components that will help you to develop web UIs related to OCR and Face Biometric.

GLAIR Webcam

Most of GLAIR Vision APIs require images as input. For example: OCR detection (KTP, Passport), liveness detection (passive or active liveness). One convenient way to retrieve image from your users is to use webcam.

Our glair-webcam helps you with the boilerplate code to handle webcam. Thus, makes it easier for you to retrieve image and upload to GLAIR Vision API.

Below is the demo of GLAIR Webcam. The Take Photo button only prints out the image (in base64 string) to console. Open the CodeSandbox link to play around with the code.

Edit GLAIR Web Component Sample – Webcam

Take photo

Make sure your face is clearly visible on the marked area