5.2.9 • Published 10 months ago

capacitor-luna-id-sdk v5.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

ParamType
optionsLunaOptions

Returns: any

Since: 1.0.8


start(...)

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

Start face recognition

ParamType
optionsStartOptions

Returns: any

Since: 1.0.0


Interfaces

LunaOptions

PropType
livenessEnabledboolean
occludeCheckboolean
trackFaceIdentityboolean
eyesCheckboolean
glassesCheckEnabledboolean
interactionEnabledboolean
interactionTimeoutnumber
plistLicenseFileNamestring
lunaConfigLunaConfig
headersHeaders

LunaConfig

PropTypeDescriptionSince
detectorStepnumber
skipFramesnumber
compressionQualitynumber
minimalTrackLengthnumber
bestShotsCountnumberAndroid only5.0.0
numberOfBestShotsnumberios only5.0.0
borderDistancenumber
detectFrameSizenumber
bestShotIntervalnumber
headPitchnumber
headYawnumber
headRollnumber
agsnumber
eyesCheckboolean
locationEnabledbooleanios only5.0.0
interactionEnabledboolean
interactionTimeoutnumber
uploadImagesForLivenessboolean
livenessErrorTimeoutnumber
livenessQualitynumber
livenessTypeLivenessType

StartOptions

PropTypeDescriptionDefaultSince
disableErrorsbooleanDefine whether to record video or not.: false5.0.1
disableInteractionTipsbooleanDefine whether to disable interaction Tips.: false5.0.1
ignoreVideoWithoutFacebooleanDefine whether to start record video from camera activated or from face is deteced.: false5.0.1
interactionEnabledbooleanDefine whether to enable interaction or not.: true5.0.1
interactionTimeoutMsnumberDefine timeout for interaction.: 300005.0.1
recordVideobooleanDefine whether to record video or not.: false5.0.0

BestShot

PropTypeDescriptionSince
base64StringstringThe base64 encoded string representation of found bestShot.1.0.0
videoPathstringThe 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
5.2.9

10 months ago

5.2.8

10 months ago

5.2.7

10 months ago

5.2.4

1 year ago

5.2.3

1 year ago

5.2.2

1 year ago

5.2.1

1 year ago

5.1.9

1 year ago

5.1.3

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.1.2

2 years ago

5.0.3

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.1

2 years ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.0

2 years ago

5.0.0-beta.2

2 years ago

5.0.0-beta.3

2 years ago

5.0.0-beta.1

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago