liveness_web_sdk
v1.1.5
Published
This project developed by Dinesh Kumar
Maintainers
Readme
Getting Started with Liveness Web Sdk
This project developed by Dinesh Kumar
Available Scripts
In the project directory, you can run:
npm i liveness_web_sdk
How to use import
import {LivenessWebSdk} from 'liveness_web_sdk'Basic Overview
Liveness web sdk lets you capture the user's live picture by accessing the mobile/web camera, it uses our internal AI/ML liveness detection tool.
Table of Contents
Installation
You can easily setup the SDK in your application using either of the following ways.
- Install the Liveness Web SDK as npm package.
$ npm i liveness_web_sdk --save
getting-started
Using npm package in React js
import React from "react";
import "./styles.css";
import {LivenessWebSdk} from 'liveness_web_sdk'
function onCaptureImage(imgUrl) {
console.log("ImgUrl response:", imgUrl);
}
// function onError(response) {
// console.log("Error", response);
// }
export default function App() {
return (
<div className="App">
<LivenessWebSdk
onCaptureImage={onCaptureImage}
/>
</div>
);
}