liveness_web_sdk

1.1.5 • Public • Published

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>
  );
}

API

Name
Type Required Default Description
onCaptureImage function true none A function that returns base64 image url

Package Sidebar

Install

npm i liveness_web_sdk

Weekly Downloads

3

Version

1.1.5

License

MIT

Unpacked Size

16.5 MB

Total Files

22

Last publish

Collaborators

  • dineshkumar01