npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@seontechnologies/seon-id-verification

v0.1.2

Published

An advanced SDK featuring web components for natural person identification through document scanning, facial recognition, hand gesture, and face turning detection, designed for secure and efficient user verification.

Downloads

87

Readme

seon-id-verification documentation

Features

Our SDK offers a comprehensive suite of features designed to cater to a wide range of document validation and recognition needs. Below is a breakdown of the key features available:

Document Validation and Content Verification

  • Document Type Recognition: Automatically identifies the type of document presented, whether it's an ID card, passport, driver's license, or any other official document.
  • Content Validation: Extracts and validates the textual information from documents, ensuring the data's integrity and accuracy. This includes checking the validity of names, dates, document numbers, and other critical information.
  • Forgery Detection: Utilizes advanced algorithms to detect and alert on any signs of tampering or forgery within the document, ensuring the authenticity of the presented documents.

Facial Recognition

  • Identity Verification: Compares the facial image on the document with the person presenting it to ensure they are the same individual, enhancing security and preventing identity fraud.
  • Liveness Detection: Detects real-time presence and distinguishes between a live person and a spoofing attempt, such as using photographs or videos, to ensure that the verification process is secure.
  • Emotion Analysis: While primarily focused on identity verification, our facial recognition technology can also analyze facial expressions to deduce emotions, offering potential applications in user experience studies and security.

Hand Gesture Recognition

  • Gesture Control: Enables interaction with devices or applications through simple hand gestures, making the user interface more intuitive and accessible.
  • Complex Gesture Recognition: Our SDK can recognize complex hand gestures, offering sophisticated controls for applications requiring nuanced interactions.
  • Real-time Processing: Processes and recognizes hand gestures in real-time, ensuring a seamless and responsive user experience.

Quick Installation Guide

Install the Package Open a terminal in the project directory and run:

npm i @seontechnologies/seon-id-verification

Get started

TypeScript

When you using typescript in youre application, to avoid errors from custom elements, extend your application's types by declaring custom elements as part of your global type definitions. This lets TypeScript recognize these elements as valid, preventing any complaints about unknown tags when you use them in your application. Essentially, it's about teaching TypeScript about your custom elements to ensure type safety and avoid errors during compilation or development.

React.js example

seon-id-verification.tsx

import { SeonIdVerificationService } from 'seon-id-verification';
import 'seon-id-verification/styles';

export default function SeonIdVerification() {
  const seonIdVerificationService = new SeonIdVerificationService();
  seonIdVerificationService.initialize({
    baseUrl: 'YOURE_BASE_URL',
    language: 'en',
    SEONCustomerData: {
      licenseKey: 'YOURE_LICENSE_KEY',
      referenceId: 'YOUR_REFERENCE_ID',
      email: '[email protected]',
      name: 'John Doe',
      phoneNumber: '+00000000000',
      type: 'id-verification',
      userId: 'john-doe',
      additionalProperties: {
        additionalProp1: 'value1',
        additionalProp2: 'value2',
        additionalProp3: 'value3'
      }
    }
  });

  //You can listen to the events like 'completed', 'sessionExpired', 'interruptedByUser'
  seonIdVerificationService.on('completed', () => {
    console.log('Verification completed');
  });

  const handleVerificationStart = () => {
    seonIdVerificationService.start();
  };

  return (
    <div>
      <button onClick={handleVerificationStart}>Start verification</button>
    </div>
  );
}

Angular.js example:

init-seon-idverif-wc.component.ts

import { Component } from '@angular/core';
import { SeonIdVerificationService } from 'seon-id-verification';
import 'seon-id-verification/styles';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@Component({
  selector: 'init-seon-idverif-wc',
  standalone: true,
  templateUrl: './init-seon-idverif-wc.component.html',
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppComponent {
  constructor() {
    this.initSeonIdverifWC();
  }

  initSeonIdverifWC() {
    const seonIdVerificationService = new SeonIdVerificationService();

    seonIdVerificationService.initialize({
      baseUrl: 'YOURE_BASE_URL',
      language: 'en',
      SEONCustomerData: {
        licenseKey: 'YOURE_LICENSE_KEY',
        referenceId: 'YOUR_REFERENCE_ID',
        email: '[email protected]',
        name: 'John Doe',
        phoneNumber: '+00000000000',
        type: 'id-verification',
        userId: 'john-doe',
        additionalProperties: {
          additionalProp1: 'value1',
          additionalProp2: 'value2',
          additionalProp3: 'value3'
        }
      }
    });

    //You can listen to the events like 'completed', 'sessionExpired', 'interruptedByUser'
    seonIdVerificationService.on('completed', () => {
      console.log('Verification completed');
    });

    seonIdVerificationService.start();
  }
}

init-seon-idverif-wc.component.html

no need

Next.js example:

When using SSR in any framework or library you need to import the package on the client. You can't run it on the server.

seon-id-verification.tsx

'use client';
import { useEffect } from 'react';
import 'seon-id-verification/styles';

export default function IdverifWrapper() {
  useEffect(() => {
    import('seon-id-verification').then(module => {
      const seonIdVerificationService = new module.SeonIdVerificationService();

      seonIdVerificationService.initialize({
        baseUrl: 'YOURE_BASE_URL',
        language: 'en',
        SEONCustomerData: {
          licenseKey: 'YOURE_LICENSE_KEY',
          referenceId: 'YOUR_REFERENCE_ID',
          email: '[email protected]',
          name: 'John Doe',
          phoneNumber: '+00000000000',
          type: 'id-verification',
          userId: 'john-doe',
          additionalProperties: {
            additionalProp1: 'value1',
            additionalProp2: 'value2',
            additionalProp3: 'value3'
          }
        }
      });

      seonIdVerificationService.start();
    });
  }, []);
  return <div></div>;
}

Vanilla JavaScript

main.js

import { SeonIdVerificationService } from 'seon-id-verification';
//importing the css file is can be different depending on the bundler you are using
import 'seon-id-verification/style.css';

const seonIdVerificationService = new SeonIdVerificationService();

seonIdVerificationService.initialize({
  baseUrl: 'YOURE_BASE_URL',
  language: 'en',
  SEONCustomerData: {
    licenseKey: 'YOURE_LICENSE_KEY',
    referenceId: 'YOUR_REFERENCE_ID',
    email: '[email protected]',
    name: 'John Doe',
    phoneNumber: '+00000000000',
    type: 'id-verification',
    userId: 'john-doe',
    additionalProperties: {
      additionalProp1: 'value1',
      additionalProp2: 'value2',
      additionalProp3: 'value3'
    }
  }
});

seonIdVerificationService.start();

index.html

<!doctype html>
<html lang="en">
  <head>
    <title>VanillaJS</title>
    <script type="module" src="main.js"></script>
  </head>
  <body>
    <main></main>
  </body>
</html>

Initializer options

  • baseUrl | Provided base url by the SEON for youre license key | string |
  • language | Language of the SDK | string (lowercase ISO code)
  • SEONCustomerData | Config object | object |
    • licenseKey | License key for the SDK | string
    • referenceId | Reference id for the license | string
    • type | Type | string
    • email | Email address | string
    • phoneNumber | Phone number | string
    • name | Name of the license key holder | string
    • userId | User id | string
    • additionalProperties | Additional properties for the initialization | object
      • additionalProp1 | Could be anything | string
      • additionalProp1 | Could be anything | string
      • additionalProp1 | Could be anything | string

Event listeners

Example of on events. The referenc function will fired when the event is occured.

seonIdVerificationService.on('eventName', () => {
  console.log('Event fired');
});

Example of on error event. The referenc function will fired when the event is occured.

seonIdVerificationService.on('error', err => {
  console.log('Error:', err);
});

List of events

| eventName | description | return value | | ------------- | ------------------------------------------ | ---------------------------------------------------------------------------------------------- | | completed | When the sdk flow is finished successfully | none | | start | When the flow is started | none | | error | When some error occurred in the sdk | "error_code_1", "error_code_2", "error_code_3", "error_code_4", "error_code_5", "error_code_6" |

Complatibility

| Browser | Version | | ------------------- | ------- | | Chrome | 96 | | Safari | 15 | | Firefox | 79 | | Opera | 82 | | iOS Safari | 15 | | Android Browser | 81 | | Chrome for android | 96 | | Firefox for android | 79 |

Licenc feltételek

A részletes licenc feltételek megtekinthetők az alábbi linken: SEON licenc feltételek.