Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jaakrecog-liveness-lib

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jaakrecog-liveness-lib

This is a JAAKRECOG LIVENESS© Angular Component

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Jaakrecog Liveness©

Component developed to capture the liveness service

jaak-it

Features

  • Get permission to access the camera
  • Video Capture modal
  • Liveness Bestframe Service

Jaakrecog Liveness© Component is an isolated component of Angular that is easy to integrate that allows you to capture the video process in order to make a liveness, which was developed by JAAK-IT.

Tech

Technologies used for the development of this library:

  • Angular
  • Scss
  • Typescript
  • Rxjs
  • Angular Material

Installation

Jaakrecog Liveness requires Node.js v10+ to run.

Install the package:

npm install jaakrecog-liveness-lib

Setup

Declare on import of JaakrecogLivenessLibModule module

    JaakrecogLivenessLibModule.forRoot({
      apiUrl: 'https://dev.api.jaakrecog.com',
    }),

Usage

Uses the asynchronous function openVideoCapture found in the JaakrecogLivenessLibService service

    import { JaakrecogLivenessLibService } from 'jaakrecog-liveness-lib';
      initCaptureVideo(): void {
         this.jaakrecogLivenessSrv.openVideoCapture('your_token_here')
           .then((data) => {
                   console.log(data);
               })
           .catch((error) => {
                   console.log(error);
             });
  }

The response of this promise would be a class named BestFrame

  class BestFrame {
    bestFrame!: string;
    evaluation!: number;
    facesFound!: Array<string>;
    id!: string;
    message!: string;
    processTime!: number;
    status!: boolean;
  }

We can get an error and it will return an error of type ErrorResponse

 class ErrorResponse {
 type!: string;
 message!: string;
 }

Another alternative of use, that we can implement is through the selectors, for this it uses in an HTML file

<ngx-capture-video [token]="your_TOKEN" [stream]="MediaStream" (getBestFrame)="yourFunction($event)"></ngx-capture-video>

This method of use requires obtaining the userMedia previously or leaving it null for the component to raise the request for camera permissions.

Functions

Access to the library functions from the JaakrecogLivenessService

NameREADME
getPermissionsget access camera permissions
openVideoCaptureopen video capture modal component
verifyBestFramerequest to the server

Support

Contact support@jaak-it.com for any kind of assistance.

License

MIT

** All rights reserved JAAK-IT 2021 ©**

Keywords

FAQs

Package last updated on 14 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc