0.1.12 • Published 1 year ago

mosip-inji-face-sdk v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Mosip inji face sdk

  • This is a react native component library created to perform face match in inji app.
  • The library takes 2 images as base64 encoded string and returns boolean match or no match
  • This library supports only ANDROID currently. IOS is not supported.

INstallation

  • Using npm -
npm install mosip-inji-face-sdk
  • Using yarn -
yarn add mosip-inji-face-sdk

Usage

import { faceAuth } from "mosip-inji-face-sdk";

## refer to /example/src/Auth.tsx for usage.

Latest stable version

"0.1.1"

API SPEC

The sdk will be used by INJI app for biometric authentication. An SDK system that integrates with MOSIP should support the following operations.

1. Init

Init function is used for loading the model. It accepts the secure url of the model, download it and saves it locally.

Signature

export async function init(url: string, overrideCache: boolean) {
  // logic here
}

Parameters

NameDescriptionType
urlSecure url of the modelSecure url
overrideCacheboolean indicator to override existing modelboolean

Standard Return Codes(match or no match)

responseStatus
throws errorError

2. Face Matching

The face matching is used to match 2 faces. It returns boolean true or false in case of match or no match.

Signature

export function faceAuth(
      capturedImage: string,
      vcImage: string
    ): Promise<boolean> {
  // logic here
}

Parameters

NameDescriptionType
capturedImageThe image that is captured by the camerabase64 encoded string
vcImageThe face image received in VCbase64 encoded string

Standard Return Codes(match or no match)

responseStatus
trueMatched
falseNot Matched
error messageError
0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago

0.1.1

2 years ago

0.1.0-test

2 years ago

0.1.0

2 years ago