Skip to main content

Usage

Usage

Follow the following steps to add components to your page

Add needed tag to your page

<idt-face-camera-web id="face" options="off" capture="manual" ></idt-face-camera-web>

Tag Options/Attributes

AttributeDescriptionOptions
idThis id a common attribute to identify the element in your pageOptional
optionsThis attribute is to allow for camera options to appear. You use options to decide which camera you want to show
Default: on
on | off
modeThis specifies whether the camera should show when the page loads or should first show the placeholder with a button to start capturing.
normal - shows the placeholder and a button
live - shows the camera on page load
Default: normal
live | normal
captureThis option allows for automatic capture.
Default: manual
manual | auto
scanThis tag only works for idt-card-camera-web component. This tag specifies which type of card scanning do you want to do. If not set, it will try to scan for all; ocr, mrz, bardcode, qrcode
Default: all
orc | mrz | all
typeThis tag only works for idt-card-camera-web component. It specifies which side of the card do you want to display
Default: card
card | card-back
readThis tag only works for idt-card-camera-web component. If it is set to auto, the component will scan the card automatically after capturing. If it is set to manual, a button will show which will need to be clicked to read the card
Default: manual
auto | manual
deviceCameraThis specifies the page to be used to capture image from external device.Optional
example. camere_page.html
livelinessThis option enables liveliness detectiontrue | false
cardtypeThis attribute defines the id type country.If set to mz the card detection feature will detect mozambique id cards. If it set to tz the card detectin feature will detect tanzanian id cardsmz | tz