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

capacitor-luna-id-sdk

v5.2.9

Published

LUNA SDK is a face recognition and analysis system that provides efficient and accurate processing of faces in images and video streams

Downloads

1,143

Readme

capacitor-luna-id-sdk

LUNA SDK is a face recognition and analysis system that provides efficient and accurate processing of faces in images and video streams, and can run on a wide variety of mobile operating systems.

Install

npm install capacitor-luna-id-sdk
npx cap sync

LICENCING & Configuration

  1. Get licence.conf from VisionLabs
  2. Configure Luna Platform 5 and get LunaAccountID
  3. Configure LunaServerURL

iOS

  1. Add to ./node_modules/capacitor-luna-id-sdk/ios/Frameworks/fsdk.framework/data/license.conf your own licence.conf file;
  2. Add to Info.plist
<key>LunaServerURL</key>
<string>https://[path-to-luna-platform-api]/6/</string>
<key>LunaAccountID</key>
<string><your luna account id></string>

Android

Add to your project android/app/src/main/assets/data/license.conf license file

Add to your root project local.properties

DEFAULT_BASE_URL="https://[path-to-luna-platform-api]/6/"
DEFAULT_LUNA_ACCOUNT_ID="<your luna account id>"
vl.login=YOUR_LOGIN
vl.pass=YOUR_PASSWORD

API

initialize(...)

initialize(options?: LunaOptions | undefined) => any

Initialize plugin with configs

| Param | Type | | ------------- | --------------------------------------------------- | | options | LunaOptions |

Returns: any

Since: 1.0.8


start(...)

start(options?: StartOptions | undefined) => any

Start face recognition

| Param | Type | | ------------- | ----------------------------------------------------- | | options | StartOptions |

Returns: any

Since: 1.0.0


Interfaces

LunaOptions

| Prop | Type | | -------------------------- | ------------------------------------------------- | | livenessEnabled | boolean | | occludeCheck | boolean | | trackFaceIdentity | boolean | | eyesCheck | boolean | | glassesCheckEnabled | boolean | | interactionEnabled | boolean | | interactionTimeout | number | | plistLicenseFileName | string | | lunaConfig | LunaConfig | | headers | Headers |

LunaConfig

| Prop | Type | Description | Since | | ----------------------------- | ----------------------------------------------------- | ------------ | ----- | | detectorStep | number | | | | skipFrames | number | | | | compressionQuality | number | | | | minimalTrackLength | number | | | | bestShotsCount | number | Android only | 5.0.0 | | numberOfBestShots | number | ios only | 5.0.0 | | borderDistance | number | | | | detectFrameSize | number | | | | bestShotInterval | number | | | | headPitch | number | | | | headYaw | number | | | | headRoll | number | | | | ags | number | | | | eyesCheck | boolean | | | | locationEnabled | boolean | ios only | 5.0.0 | | interactionEnabled | boolean | | | | interactionTimeout | number | | | | uploadImagesForLiveness | boolean | | | | livenessErrorTimeout | number | | | | livenessQuality | number | | | | livenessType | LivenessType | | |

StartOptions

| Prop | Type | Description | Default | Since | | ---------------------------- | -------------------- | ----------------------------------------------------------------------------------- | -------------------- | ----- | | disableErrors | boolean | Define whether to record video or not. | : false | 5.0.1 | | disableInteractionTips | boolean | Define whether to disable interaction Tips. | : false | 5.0.1 | | ignoreVideoWithoutFace | boolean | Define whether to start record video from camera activated or from face is deteced. | : false | 5.0.1 | | interactionEnabled | boolean | Define whether to enable interaction or not. | : true | 5.0.1 | | interactionTimeoutMs | number | Define timeout for interaction. | : 30000 | 5.0.1 | | recordVideo | boolean | Define whether to record video or not. | : false | 5.0.0 |

BestShot

| Prop | Type | Description | Since | | ------------------ | ------------------- | ----------------------------------------------------------- | ----- | | base64String | string | The base64 encoded string representation of found bestShot. | 1.0.0 | | videoPath | string | The URI of video recorded from stream. | 5.0.0 |

Type Aliases

Headers

Record<string, string> & Partial<Record<RestrictedHeaders, never>>

RestrictedHeaders

'Authorization' | 'Luna-Account-Id'

Enums

LivenessType

| Members | | ------------------ | | None | | ByDescriptor | | ByPhoto |