6.1.1 • Published 28 days ago

@regulaforensics/facesdk-webclient v6.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
28 days ago

Regula FaceSDK js client for the browser and node.js based on axios

npm version npm type definitions documentation OpenAPI

Face recognition as easy as reading two bytes.

  • Face Matching - Compare the person holding the ID to the person pictured in the ID document (1:1)
  • Face Recognition - Find the person by his or her photo in databases / lists (1:N)
  • Liveness Detection - Perform liveness check using a selfie taken with the user’s smartphone.

If you have any problems with or questions about this client, please contact us through a GitHub issue. You are invited to contribute new features, fixes, or updates, large or small; We are always thrilled to receive pull requests, and do our best to process them as fast as we can. See dev guide.

Install package

npm install @regulaforensics/facesdk-webclient

Example of Face Matching

Performing request:

const face1 = fs.readFileSync('face1.jpg').buffer;
const face2 = fs.readFileSync('face2.jpg').buffer;

const sdk = new FaceSdk({ basePath: 'http://localhost:41101' });

const response = await sdk.matchingApi.match({
    images: [
        { type: ImageSource.LIVE, data: face1, index: 1 },
        { type: ImageSource.DOCUMENT_RFID, data: face2, index: 2 }
    ]
  });

Parsing results:

for (const result of response.results) {
    console.log(`pair(${result.firstIndex},${result.secondIndex})   similarity: ${result.similarity}`)
}

You can find more detailed guide and run this sample in example folder.

Compatibility

Language level

  • ES5, ES6.Promises - depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.

Module system

  • CommonJS
  • ES6 module system

Definitions

  • TypeScript's definitions should be automatically resolved via package.json. (Reference)
6.1.1-beta.5

28 days ago

6.1.1-beta.4

1 month ago

6.1.1-beta.3

2 months ago

6.1.1-beta.2

2 months ago

6.1.1

2 months ago

6.1.1-beta.0

2 months ago

6.1.1-beta.1

2 months ago

6.1.0

3 months ago

5.2.4

6 months ago

5.2.3

7 months ago

5.2.2

8 months ago

5.2.1

9 months ago

5.2.0

10 months ago

5.2.8

6 months ago

5.2.7

6 months ago

5.2.6

6 months ago

5.2.5

6 months ago

5.1.1

1 year ago

5.1.0

1 year ago

4.1.4

2 years ago

4.1.6

1 year ago

4.1.5

1 year ago

4.1.3

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

3 years ago

3.0.0

3 years ago

3.0.0-beta.2

3 years ago

3.0.0-beta.0

3 years ago