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

react-native-accura-kyc

v3.0.0

Published

This package is for digital user verification system powered by Accura Scan.

Downloads

96

Readme

react-native-accura-kyc

This package is for digital user verification system powered by Accura Scan.

Installation using NPM

npm install --save react-native-accura-kyc

Installation using Yarn

yarn add react-native-accura-kyc

Setup Android

Add this permissions into Android AndroidManifest.xml file.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

Add it in your root build.gradle at the end of repositories.

buildscript {
    repositories {
        ...
        jcenter()
    }
}

allprojects {
    repositories {
        ...
        jcenter()
        maven {
            url 'https://jitpack.io'
            credentials { username 'jp_45kf9tvkijvd9c7cf34mehj1b6' }
        }
    }
}

Set Accura SDK as a dependency to our app/build.gradle file.

android {

    defaultConfig {
        ...
        ndk {
            // Specify CPU architecture.
            abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    packagingOptions {
        pickFirst 'lib/arm64-v8a/libcrypto.so'
        pickFirst 'lib/arm64-v8a/libssl.so'

        pickFirst 'lib/armeabi-v7a/libcrypto.so'
        pickFirst 'lib/armeabi-v7a/libssl.so'

        pickFirst 'lib/x86/libcrypto.so'
        pickFirst 'lib/x86/libssl.so'

        pickFirst 'lib/x86_64/libcrypto.so'
        pickFirst 'lib/x86_64/libssl.so'

        pickFirst '**/libjsc.so'
        pickFirst '**/libc++_shared.so'

        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/arm64-v8a/libc++_shared.so'

        pickFirst 'lib/x86/libopencv_java4.so'
        pickFirst 'lib/armeabi-v7a/libopencv_java4.so'
        pickFirst 'lib/arm64-v8a/libopencv_java4.so'
        pickFirst 'lib/x86_64/libopencv_java4.so'
        pickFirst 'lib/armeabi-v7a/libopencv_java4.so'

        pickFirst 'lib/armeabi-v7a/libaccurasdk.so'
        pickFirst 'lib/arm64-v8a/libaccurasdk.so'
        pickFirst 'lib/armeabi-v7a/libaccuraface.so'
        pickFirst 'lib/arm64-v8a/libaccuraface.so'
        pickFirst 'lib/armeabi-v7a/libaccuraliveness.so'
        pickFirst 'lib/arm64-v8a/libaccuraliveness.so'
    }
}

Setup iOS

Please make sure to install git-lfs into your Mac.

Open your mac terminal and fire following command

brew install git-lfs

or

port install git-lfs

Add this permissions into iOS Info.plist file.

<key>NSCameraUsageDescription</key>
<string>App usage camera for scan documents.</string>
<key>NSMicrophoneUsageDescription</key>
<string>App usage microphone for oral verification.</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>App usage speech recognition for oral verification.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>App usage photos for get document picture.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>App usage photos for save document picture.</string>

Setup Accura license into your projects

Accura has three license require for use full functionality of this library. Generate your own Accura license from here

  1. key.license

    • This license is compulsory for this library to work. it will get all setup of accura SDK.
  2. accuraface.license

    • This license is use for get face match percentages between two face pictures.
  3. accuraactiveliveness.license

    • This license is use for check active liveness between face picture and selfi camera.

Note:- You have to create license of your own bundle id for iOS and app id for Android. You can not use any other app license. If you use other app license then it will return error.

1. Setup license into Android

  • Go to android -> app -> src -> main and create folder named 'assets' if not exist and put all three licenses into that folder.

2. Setup license into iOS

  • Open iOS project into Xcode and drag & drop all three license into project root directory. Do not forgot to check "copy if needed" & "project name".

Usage

Import react native library into file.

import AccuraKyc from "react-native-accura-kyc";

➜ Get license configuration from SDK. It returns all active functionalities of your license.

AccuraKyc.getMetaData((error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("Response:- ", success)
        //Here you will get json string from SDK with all available functions activated on your license.
    }
})
  • Error: String

  • Success: JSON String Response = {

    • countries: Array[<CountryModels>],
    • barcodes: Array[],
    • isValid: boolean,
    • isOCREnable: boolean,
    • isBarcode: boolean,
    • isBankCard: boolean,
    • isMRZ: boolean,
    • sdk_version: String

    }

➜ Method for setup custom setup & messages to Accura SDK.

let config = { 
    ACCURA_ERROR_CODE_MOTION: 'Keep Document Steady',
    ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME: 'Keep document in frame',
    ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME:  'Bring card near to frame',
    ACCURA_ERROR_CODE_PROCESSING:  'Processing…',
    ACCURA_ERROR_CODE_BLUR_DOCUMENT:  'Blur detect in document',
    ACCURA_ERROR_CODE_FACE_BLUR:  'Blur detected over face',
    ACCURA_ERROR_CODE_GLARE_DOCUMENT:  'Glare detect in document',
    ACCURA_ERROR_CODE_HOLOGRAM:  'Hologram Detected', 
    ACCURA_ERROR_CODE_DARK_DOCUMENT:  'Low lighting detected',
    ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT:  'Can not accept Photo Copy Document',
    ACCURA_ERROR_CODE_FACE:  'Face not detected',
    ACCURA_ERROR_CODE_MRZ:  'MRZ not detected',
    ACCURA_ERROR_CODE_PASSPORT_MRZ:  'Passport MRZ not detected',
    ACCURA_ERROR_CODE_ID_MRZ:  'ID card MRZ not detected',
    ACCURA_ERROR_CODE_VISA_MRZ:  'Visa MRZ not detected',
    ACCURA_ERROR_CODE_WRONG_SIDE:  'Scanning wrong side of document',
    ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE:  'Document is upside down. Place it properly',
    IS_SHOW_LOGO: true,
    SCAN_TITLE_OCR_FRONT:  'Scan Front Side of OCR Document',
    SCAN_TITLE_OCR_BACK:  'Scan Back Side of OCR Document',
    SCAN_TITLE_OCR:  'Scan',
    SCAN_TITLE_BANKCARD:  'Scan Bank Card',
    SCAN_TITLE_BARCODE:  'Scan Barcode',
    SCAN_TITLE_MRZ_PDF417_FRONT:  'Scan Front Side of Document',
    SCAN_TITLE_MRZ_PDF417_BACK:  'Now Scan Back Side of Document',
    SCAN_TITLE_DLPLATE:  'Scan Number Plate'
}
AccuraKyc.setupAccuraConfig( config, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("Response:- ", success)
    }
})
  • config: JSON Object

    • ACCURA_ERROR_CODE_MOTION: String
    • ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME: String
    • ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME: String
    • ACCURA_ERROR_CODE_PROCESSING: String
    • ACCURA_ERROR_CODE_BLUR_DOCUMENT: String
    • ACCURA_ERROR_CODE_FACE_BLUR: String
    • ACCURA_ERROR_CODE_GLARE_DOCUMENT: String
    • ACCURA_ERROR_CODE_HOLOGRAM: String
    • ACCURA_ERROR_CODE_DARK_DOCUMENT: String
    • ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT: String
    • ACCURA_ERROR_CODE_FACE: String
    • ACCURA_ERROR_CODE_MRZ: String
    • ACCURA_ERROR_CODE_PASSPORT_MRZ: String
    • ACCURA_ERROR_CODE_ID_MRZ: String
    • ACCURA_ERROR_CODE_VISA_MRZ: String
    • ACCURA_ERROR_CODE_WRONG_SIDE: String
    • ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE: String
    • IS_SHOW_LOGO: Boolean
    • SCAN_TITLE_OCR_FRONT: String
    • SCAN_TITLE_OCR_BACK: String
    • SCAN_TITLE_OCR: String
    • SCAN_TITLE_BANKCARD: String
    • SCAN_TITLE_BARCODE: String
    • SCAN_TITLE_MRZ_PDF417_FRONT: String
    • SCAN_TITLE_MRZ_PDF417_BACK: String
    • SCAN_TITLE_DLPLATE: String
  • Success: JSON Response { String }

  • Error: String

➜ Method for scan MRZ documents.

let passArgs = [{ enableLogs: false }, MRZType, CountryList, AppOrientation]
AccuraKyc.startMRZ(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("Response:- ", success)
    }
})
  • MRZType: String

    • value: other_mrz or passport_mrz or id_mrz or visa_mrz
  • CountryList: String

    • value: all or IND,USA
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    • front_data: JSONObjects?,
    • back_data: JSONObjects?,
    • type: Recognition Type,
    • face: URI?
    • front_img: URI?
    • back_img: URI? }
  • Error: String

➜ Method for scan OCR documents.

let passArgs = [{ enableLogs: false }, CountryId, CardId, CardName, CardType, AppOrientation]
AccuraKyc.startOcrWithCard(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("JSON:- ", success)
    }
});
  • CountryId: integer

    • value: Id of selected country.
  • CardId: integer

    • value: Id of selected card.
  • CardName: String

    • value: Name of selected card.
  • CardType: integer

    • value: Type of selected card.
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    }

  • Error: String

➜ Method for scan barcode.

let passArgs = [{ enableLogs: false }, BarcodeType, AppOrientation]
AccuraKyc.startBarcode(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("JSON:- ", success)
    }
});
  • BarcodeType: String

    • value: Type of barcode documents.
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    }

  • Error: String

➜ Method for scan bankcard.

let passArgs = [{ enableLogs: false }, AppOrientation]
AccuraKyc.startBankCard(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("JSON:- ", success)
    }
});
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    }

  • Error: String

➜ Method for get face match percentages between two face.

var accuraConfs = { enableLogs: false, with_face: true, face_uri: 'uri of face'};
var config = {
    feedbackTextSize: 18,
    feedBackframeMessage: 'Frame Your Face',
    feedBackAwayMessage: 'Move Phone Away',
    feedBackOpenEyesMessage: 'Keep Your Eyes Open',
    feedBackCloserMessage: 'Move Phone Closer',
    feedBackCenterMessage: 'Move Phone Center',
    feedBackMultipleFaceMessage: 'Multiple Face Detected',
    feedBackHeadStraightMessage: 'Keep Your Head Straight',
    feedBackBlurFaceMessage: 'Blur Detected Over Face',
    feedBackGlareFaceMessage: 'Glare Detected',
    setBlurPercentage: 80,
    setGlarePercentage_0: -1,
    setGlarePercentage_1: -1,
};
let passArgs = [accuraConfs, config, AppOrientation]
AccuraKyc.startFaceMatch(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("JSON:- ", success)
    }
});
  • accuraConfs: JSON Object

    • enableLogs: Boolean
    • with_face: Boolean
    • face_uri: URI
  • config: JSON Object

    • feedbackTextSize: integer
    • feedBackframeMessage: String
    • feedBackAwayMessage: String
    • feedBackOpenEyesMessage: String
    • feedBackCloserMessage: String
    • feedBackCenterMessage: String
    • feedBackMultipleFaceMessage: String
    • feedBackHeadStraightMessage: String
    • feedBackBlurFaceMessage: String
    • feedBackGlareFaceMessage: String
    • setBlurPercentage: integer
    • setGlarePercentage_0: integer
    • setGlarePercentage_1: integer
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    • with_face: Boolean
    • status: Boolean
    • detect: URI?
    • score: Float

    }

  • Error: String

➜ Method for liveness check.

var accuraConfs = { enableLogs: false, with_face: true, face_uri: 'uri of face' };
var config = {
    feedbackTextSize: 18,
    feedBackframeMessage: 'Frame Your Face',
    feedBackAwayMessage: 'Move Phone Away',
    feedBackOpenEyesMessage: 'Keep Your Eyes Open',
    feedBackCloserMessage: 'Move Phone Closer',
    feedBackCenterMessage: 'Move Phone Center',
    feedBackMultipleFaceMessage: 'Multiple Face Detected',
    feedBackHeadStraightMessage: 'Keep Your Head Straight',
    feedBackBlurFaceMessage: 'Blur Detected Over Face',
    feedBackGlareFaceMessage: 'Glare Detected',
    setBlurPercentage: 80,
    setGlarePercentage_0: -1,
    setGlarePercentage_1: -1,
    isSaveImage: true,
    liveness_url: 'your liveness url',
    contentType: 'form_data',
    feedBackLowLightMessage: 'Low light detected',
    feedbackLowLightTolerence: 39,
    feedBackStartMessage: 'Put your face inside the oval',
    feedBackLookLeftMessage: 'Look over your left shoulder',
    feedBackLookRightMessage: 'Look over your right shoulder',
    feedBackOralInfoMessage: 'Say each digits out loud',
    enableOralVerification: false,
    codeTextColor: 'white'
};
let passArgs = [accuraConfs, config, AppOrientation]
AccuraKyc.startLiveness(passArgs, (error, success) => {
    if (error != null) {
        //if SDK returns error in this method.
    } else {
        console.log("JSON:- ", success)
    }
});
  • accuraConfs: JSON Object

    • enableLogs: Boolean
    • with_face: Boolean
    • face_uri: 'uri of face'
  • config: JSON Object

    • feedbackTextSize: integer
    • feedBackframeMessage: String
    • feedBackAwayMessage: String
    • feedBackOpenEyesMessage: String
    • feedBackCloserMessage: String
    • feedBackCenterMessage: String
    • feedBackMultipleFaceMessage: String
    • feedBackHeadStraightMessage: String
    • feedBackBlurFaceMessage: String
    • feedBackGlareFaceMessage: String
    • setBlurPercentage: integer
    • setGlarePercentage_0: integer
    • setGlarePercentage_1: integer
    • isSaveImage: Boolean
    • liveness_url: URL (Require)
    • contentType: String
    • feedBackLowLightMessage: String
    • feedbackLowLightTolerence: integer,
    • feedBackStartMessage: String
    • feedBackLookLeftMessage: String
    • feedBackLookRightMessage: String
    • feedBackOralInfoMessage: String
    • enableOralVerification: Boolean,
    • codeTextColor: String
  • Oriantation: String (Optional) (Default portrait)

    • value: portrait or landscape
  • Success: JSON Response {

    • with_face: Boolean,
    • status: Boolean,
    • detect: URI?,
    • image_uri: URI?,
    • video_uri: URI?,
    • fm_score: Float? (when with_face = true),
    • score: Float,

    }

  • Error: String

SDK Configurations

AccuraConfigrations: JSON Object

|Option|Type|Default|Description| | :- | :- | :- | :- | |enableLogs|boolean|false|if true logs will be enabled for the app.make sure to disable logs in release mode| |with_face|boolean|false|need when using liveness or face match after ocr| |face_uri|URI Sting|undefined|Required when with_face = true| |face_base64|Image base64 Sting|undefined|Required when with_face = true. You have to pass "face_uri" or "face_base64"| |face1|boolean|false|need when using facematch with “with_face = false”For Face1 set it to TRUE| |face2|boolean|false|need when using facematch with “with_face = false”For Face2 set it to TRUE| |rg_setBlurPercentage|integer|62|0 for clean document and 100 for Blurry document| |rg_setFaceBlurPercentage|integer|70|0 for clean face and 100 for Blurry face| |rg_setGlarePercentage_0|integer|6|Set min percentage for glare| |rg_setGlarePercentage_1|integer|98|Set max percentage for glare| |rg_isCheckPhotoCopy|boolean|false|Set Photo Copy to allow photocopy document or not| |rg_SetHologramDetection|boolean|true|Set Hologram detection to verify the hologram on the facetrue to check hologram on face| |rg_setLowLightTolerance|integer|39|Set light tolerance to detect light on document| |rg_setMotionThreshold|integer|18|Set motion threshold to detect motion on camera document1 - allows 1% motion on document and100 - it can not detect motion and allow documents to scan.| |rg_setMinFrameForValidate|integer|3|Set min frame for qatar ID card for Most validated data. minFrame supports only odd numbers like 3,5...| |rg_setCameraFacing|integer|0|To set the front or back camera. allows 0,1| |rg_setBackSide|boolean|false|set true to use backside| |rg_setEnableMediaPlayer|boolean|true|false to disable default sound and default it is true| |rg_customMediaURL|string|null|if given a valid URL it will download the file and use it as an alert sound.| |SCAN_TITLE_OCR_FRONT|string|Scan Front Side of %s|| |SCAN_TITLE_OCR_BACK|string|Scan Back Side of %s|| |SCAN_TITLE_OCR|string|Scan %s|| |SCAN_TITLE_BANKCARD|string|Scan Bank Card|| |SCAN_TITLE_BARCODE|string|Scan Barcode|| |SCAN_TITLE_MRZ_PDF417_FRONT|string|Scan Front Side of Document|| |SCAN_TITLE_MRZ_PDF417_BACK|string|Now Scan Back Side of Document|| |SCAN_TITLE_DLPLATE|string|Scan Number Plate|| |ACCURA_ERROR_CODE_MOTION|string|Keep Document Steady|| |ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME|string|Keep document in frame|| |ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME|string|Bring card near to frame.|| |ACCURA_ERROR_CODE_PROCESSING|string|Processing…|| |ACCURA_ERROR_CODE_BLUR_DOCUMENT|string|Blur detect in document|| |ACCURA_ERROR_CODE_FACE_BLUR|string|Blur detected over face|| |ACCURA_ERROR_CODE_GLARE_DOCUMENT|string|Glare detect in document|| |ACCURA_ERROR_CODE_HOLOGRAM|string|Hologram Detected|| |ACCURA_ERROR_CODE_DARK_DOCUMENT|string|Low lighting detected|| |ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT|string|Can not accept Photo Copy Document|| |ACCURA_ERROR_CODE_FACE|string|Face not detected|| |ACCURA_ERROR_CODE_MRZ|string|MRZ not detected|| |ACCURA_ERROR_CODE_PASSPORT_MRZ|string|Passport MRZ not detected|| |ACCURA_ERROR_CODE_ID_MRZ|string|ID card MRZ not detected|| |ACCURA_ERROR_CODE_VISA_MRZ|string|Visa MRZ not detected|| |ACCURA_ERROR_CODE_WRONG_SIDE|string|Scanning wrong side of document|| |ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE|string|Document is upside down. Place it properly||

Liveness Configurations: JSON Object

Contact AccuraScan at [email protected] for Liveness SDK or API

|Option|Type|Default|Description| | :- | :- | :- | :- | |feedbackTextSize|integer|18|| |feedBackframeMessage|string|Frame Your Face|| |feedBackAwayMessage|string|Move Phone Away|| |feedBackOpenEyesMessage|string|Keep Your Eyes Open|| |feedBackCloserMessage|string|Move Phone Closer|| |feedBackCenterMessage|string|Move Phone Center|| |feedBackMultipleFaceMessage|string|Multiple Face Detected|| |feedBackHeadStraightMessage|string|Keep Your Head Straight|| |feedBackBlurFaceMessage|string|Blur Detected Over Face|| |feedBackGlareFaceMessage|string|Glare Detected|| |setBlurPercentage|integer|80|0 for clean face and 100 for Blurry face or set it -1 to remove blur filter| |setGlarePercentage_0|integer|-1|Set min percentage for glare or set it -1 to remove glare filter| |setGlarePercentage_1|integer|-1|Set max percentage for glare or set it -1 to remove glare filter| |isSaveImage|boolean|true|| |liveness_url|URL string|Your liveness url|Required| |contentType|string|form_data|param type of your liveness API| |livenessBackground|color string|#FFC4C4C5|| |livenessCloseIcon|color string|#FF000000|| |livenessfeedbackBg|color string|#00000000|| |livenessfeedbackText|color string|#FF000000|| |feedBackLowLightMessage|string|Low light detected|| |feedbackLowLightTolerence|integer|39|| |feedBackStartMessage|string|Put your face inside the oval|| |feedBackLookLeftMessage|string|Look over your left shoulder|| |feedBackLookRightMessage|string|Look over your right shoulder|| |feedBackOralInfoMessage|string|Say each digits out loud|| |feedBackProcessingMessage|string|"Processing..."|| |isShowLogo|boolean|true|For display watermark logo images| |enableOralVerification|boolean|true|| |codeTextColor|color string|#FF000000||

Face Match Configurations: JSON Object

|Option|Type|Default|Description| | :- | :- | :- | :- | |feedbackTextSize|integer|18|| |feedBackframeMessage|string|Frame Your Face|| |feedBackAwayMessage|string|Move Phone Away|| |feedBackOpenEyesMessage|string|Keep Your Eyes Open|| |feedBackCloserMessage|string|Move Phone Closer|| |feedBackCenterMessage|string|Move Phone Center|| |feedBackMultipleFaceMessage|string|Multiple Face Detected|| |feedBackHeadStraightMessage|string|Keep Your Head Straight|| |feedBackBlurFaceMessage|string|Blur Detected Over Face|| |feedBackGlareFaceMessage|string|Glare Detected|| |feedBackProcessingMessage|string|"Processing..."|| |isShowLogo|boolean|true|For display watermark logo images| |setBlurPercentage|integer|80|0 for clean face and 100 for Blurry face or set it -1 to remove blur filter| |setGlarePercentage_0|integer|-1|Set min percentage for glare or set it -1 to remove glare filter| |setGlarePercentage_1|integer|-1|Set max percentage for glare or set it -1 to remove glare filter| |backGroundColor|color string|#FFC4C4C5|| |closeIconColor|color string|#FF000000|| |feedbackBackGroundColor|color string|#00000000|| |feedbackTextColor|color string|#FF000000||

CountryModels:

  • type: JSON Array
  • contents: CardItems
  • properties:
    • id: integer
    • name: string
    • Cards: JSON Array

CardItems:

  • type: JSON Array
  • contents: JSON Objects
  • properties:
    • id: integer
    • name: string
    • type: integer

BarcodeItems:

  • type: JSON Array
  • contents: JSON Objects
  • properties:
    • name: string
    • type: integer

Recognition Types:

  • MRZ
  • OCR
  • PDF417
  • BARCODE
  • DL_PLATE

Mrz Types:

  • passport_mrz
  • id_mrz
  • visa_mrz
  • other_mrz

Mrz Country List:

  • all
  • IND,USA etc...

Details for Library Modifications Android

Configurations

Structure Modification :-

  • Accura Error Messages

File: /react-native-accura-kyc/android/src/main/res/values/accura_error_titles_configs.xml

You can change default settings here.

  • Accura Scan Messages

File: /react-native-accura-kyc/android/src/main/res/values/accura_scan_titles_configs.xml

You can change default settings here.

  • Accura Common Strings

File: /react-native-accura-kyc/android/src/main/res/values/accura_strings.xml

You can change default settings here.

  • Face Match

File: /react-native-accura-kyc/android/src/main/res/values/face_match_config.xml

You can change default settings here.

  • Liveness

File: /react-native-accura-kyc/android/src/main/res/values/liveness_config.xml

You can change default settings here.

  • Recog Engine Initial Settings

File: /react-native-accura-kyc/android/src/main/res/values/recog_engine_config.xml

  • Accura AAR framework

    Accura framework file is located at:

File: /react-native-accura-kyc/android/libs/accura_kyc.aar

NOTE: the filename should be the same.

For updating your new AAR file replace the above file.

Activities Modification :-

File: /react-native-accura-kyc/android/src/main/java/com/reactnativeaccurakyc

  1. FaceMatchActivity.java
  2. OcrActivity.java

NOTE: do not replace the file. Only edit the code.

All the activities are modifiable. And any android developer can modify these activities.

Layouts Modification portrait:-

File: /react-native-accura-kyc/android/src/main/res/layout

  1. custom_frame_layout.xml
  2. ocr_activity.xml

NOTE: do not replace the file. Only edit the code.

All the layouts are modifiable. And any android developer can modify these activities.

Layouts Modification landscap:-

File: /react-native-accura-kyc/android/src/main/res/layout-land

  1. custom_frame_layout.xml
  2. ocr_activity.xml

NOTE: do not replace the file. Only edit the code.

All the layouts are modifiable. And any android developer can modify these activities.

Details for Library Modifications iOS

Configurations

Structure Modification :-

  • Accura Error Messages

File: /react-native-accura-kyc/ios/configs/accura_error_configs.swift

You can change default settings here.

  • Accura Scan Messages

File: /react-native-accura-kyc/ios/configs/accura_scan_configs.swift

You can change default settings here.

  • Accura Common Strings

File: /react-native-accura-kyc/ios/configs/accura_titles.swift

You can change default settings here.

  • Face Match

File: /react-native-accura-kyc/ios/configs/face_match_config.swift

You can change default settings here.

  • Liveness

File: /react-native-accura-kyc/ios/liveness_config.swift

You can change default settings here.

  • Recog Engine Initial Settings

File: /react-native-accura-kyc/ios/recog_engine_config.swift

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT