@regulaforensics/face-sdk 6.3.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/RNFaceSDK.podspec +21 -0
- package/android/CVDFaceSDK.kt +34 -0
- package/android/build.gradle +48 -0
- package/android/cordova.gradle +18 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +165 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +904 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +370 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +54 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiPackage.kt +11 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +287 -0
- package/examples/capacitor/.browserslistrc +6 -0
- package/examples/capacitor/.eslintrc.js +17 -0
- package/examples/capacitor/README.md +27 -0
- package/examples/capacitor/android/app/build.gradle +54 -0
- package/examples/capacitor/android/app/capacitor.build.gradle +22 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +43 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/faceapi/MainActivity.java +5 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/examples/capacitor/android/app/src/main/res/values/strings.xml +7 -0
- package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/examples/capacitor/android/build.gradle +30 -0
- package/examples/capacitor/android/capacitor.settings.gradle +15 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/examples/capacitor/android/gradle.properties +22 -0
- package/examples/capacitor/android/gradlew +244 -0
- package/examples/capacitor/android/gradlew.bat +92 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +16 -0
- package/examples/capacitor/capacitor.config.ts +12 -0
- package/examples/capacitor/cypress/e2e/test.cy.ts +6 -0
- package/examples/capacitor/cypress/fixtures/example.json +5 -0
- package/examples/capacitor/cypress/support/commands.ts +37 -0
- package/examples/capacitor/cypress/support/e2e.ts +20 -0
- package/examples/capacitor/cypress.config.ts +10 -0
- package/examples/capacitor/index.html +106 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +5 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +49 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/examples/capacitor/ios/App/App/Info.plist +53 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +410 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/capacitor/ios/App/Podfile +27 -0
- package/examples/capacitor/package.json +64 -0
- package/examples/capacitor/public/assets/.gitkeep +0 -0
- package/examples/capacitor/public/assets/img/id.png +0 -0
- package/examples/capacitor/public/assets/img/portrait.png +0 -0
- package/examples/capacitor/public/favicon.png +0 -0
- package/examples/capacitor/public/manifest.json +21 -0
- package/examples/capacitor/src/App.test.tsx +8 -0
- package/examples/capacitor/src/App.tsx +42 -0
- package/examples/capacitor/src/components/ExploreContainer.css +24 -0
- package/examples/capacitor/src/components/ExploreContainer.tsx +14 -0
- package/examples/capacitor/src/main.tsx +11 -0
- package/examples/capacitor/src/pages/Home.tsx +159 -0
- package/examples/capacitor/src/setupTests.ts +14 -0
- package/examples/capacitor/src/theme/variables.css +242 -0
- package/examples/capacitor/src/vite-env.d.ts +1 -0
- package/examples/capacitor/tsconfig.json +21 -0
- package/examples/capacitor/tsconfig.node.json +9 -0
- package/examples/capacitor/vite.config.ts +16 -0
- package/examples/cordova/.vscode/launch.json +28 -0
- package/examples/cordova/config.xml +37 -0
- package/examples/cordova/jsconfig.json +1 -0
- package/examples/cordova/package.json +40 -0
- package/examples/cordova/www/css/index.css +107 -0
- package/examples/cordova/www/img/id.png +0 -0
- package/examples/cordova/www/img/logo.png +0 -0
- package/examples/cordova/www/img/portrait.png +0 -0
- package/examples/cordova/www/index.html +94 -0
- package/examples/cordova/www/js/index.js +154 -0
- package/examples/ionic/angular.json +187 -0
- package/examples/ionic/browserslist +12 -0
- package/examples/ionic/config.xml +114 -0
- package/examples/ionic/e2e/protractor.conf.js +28 -0
- package/examples/ionic/e2e/src/app.e2e-spec.ts +14 -0
- package/examples/ionic/e2e/src/app.po.ts +11 -0
- package/examples/ionic/e2e/tsconfig.json +13 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/karma.conf.js +31 -0
- package/examples/ionic/package.json +97 -0
- package/examples/ionic/resources/README.md +8 -0
- package/examples/ionic/resources/android/icon/drawable-hdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-ldpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-mdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/xml/network_security_config.xml +6 -0
- package/examples/ionic/resources/icon.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-1024.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-24@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-27.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-44@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-83.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-86@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-98@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon.png +0 -0
- package/examples/ionic/resources/ios/icon/icon@2x.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-667h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
- package/examples/ionic/resources/ios/splash/Default~iphone.png +0 -0
- package/examples/ionic/resources/splash.png +0 -0
- package/examples/ionic/src/app/app-routing.module.ts +15 -0
- package/examples/ionic/src/app/app.component.html +3 -0
- package/examples/ionic/src/app/app.component.scss +0 -0
- package/examples/ionic/src/app/app.component.spec.ts +47 -0
- package/examples/ionic/src/app/app.component.ts +27 -0
- package/examples/ionic/src/app/app.module.ts +23 -0
- package/examples/ionic/src/app/home/home.module.ts +29 -0
- package/examples/ionic/src/app/home/home.page.html +75 -0
- package/examples/ionic/src/app/home/home.page.scss +1 -0
- package/examples/ionic/src/app/home/home.page.spec.ts +24 -0
- package/examples/ionic/src/app/home/home.page.ts +166 -0
- package/examples/ionic/src/assets/icon/favicon.png +0 -0
- package/examples/ionic/src/assets/img/portrait.png +0 -0
- package/examples/ionic/src/assets/shapes.svg +1 -0
- package/examples/ionic/src/environments/environment.prod.ts +3 -0
- package/examples/ionic/src/environments/environment.ts +16 -0
- package/examples/ionic/src/global.scss +31 -0
- package/examples/ionic/src/index.html +25 -0
- package/examples/ionic/src/main.ts +12 -0
- package/examples/ionic/src/polyfills.ts +66 -0
- package/examples/ionic/src/test.ts +20 -0
- package/examples/ionic/src/theme/variables.scss +77 -0
- package/examples/ionic/src/zone-flags.ts +5 -0
- package/examples/ionic/tsconfig.app.json +14 -0
- package/examples/ionic/tsconfig.json +26 -0
- package/examples/ionic/tsconfig.spec.json +19 -0
- package/examples/ionic/tslint.json +88 -0
- package/examples/react-native/.vscode/launch.json +26 -0
- package/examples/react-native/.watchmanconfig +1 -0
- package/examples/react-native/App.tsx +206 -0
- package/examples/react-native/Gemfile +8 -0
- package/examples/react-native/Gemfile.lock +134 -0
- package/examples/react-native/android/app/build.gradle +123 -0
- package/examples/react-native/android/app/debug.keystore +0 -0
- package/examples/react-native/android/app/proguard-rules.pro +10 -0
- package/examples/react-native/android/app/src/debug/AndroidManifest.xml +9 -0
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/react-native/android/app/src/main/assets/.gitkeep +0 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainActivity.kt +22 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +43 -0
- package/examples/react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/values/strings.xml +3 -0
- package/examples/react-native/android/app/src/main/res/values/styles.xml +9 -0
- package/examples/react-native/android/build.gradle +21 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/react-native/android/gradle.properties +39 -0
- package/examples/react-native/android/gradlew +249 -0
- package/examples/react-native/android/gradlew.bat +92 -0
- package/examples/react-native/android/settings.gradle +6 -0
- package/examples/react-native/images/portrait.png +0 -0
- package/examples/react-native/index.js +4 -0
- package/examples/react-native/ios/.xcode.env +11 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.h +6 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.mm +31 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/Contents.json +6 -0
- package/examples/react-native/ios/FaceSDK/Info.plist +51 -0
- package/examples/react-native/ios/FaceSDK/LaunchScreen.storyboard +47 -0
- package/examples/react-native/ios/FaceSDK/PrivacyInfo.xcprivacy +38 -0
- package/examples/react-native/ios/FaceSDK/main.m +10 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/project.pbxproj +719 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/xcshareddata/xcschemes/FaceSDK.xcscheme +88 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/react-native/ios/FaceSDKTests/FaceSDKTests.m +66 -0
- package/examples/react-native/ios/FaceSDKTests/Info.plist +24 -0
- package/examples/react-native/ios/Podfile +40 -0
- package/examples/react-native/ios/Podfile.lock +1822 -0
- package/examples/react-native/ios/license/.gitkeep +0 -0
- package/examples/react-native/metro.config.js +15 -0
- package/examples/react-native/package-lock.json +13098 -0
- package/examples/react-native/package.json +42 -0
- package/ios/CVDFaceSDK.h +7 -0
- package/ios/CVDFaceSDK.m +34 -0
- package/ios/RFSWConfig.h +27 -0
- package/ios/RFSWConfig.m +189 -0
- package/ios/RFSWJSONConstructor.h +134 -0
- package/ios/RFSWJSONConstructor.m +977 -0
- package/ios/RFSWMain.h +23 -0
- package/ios/RFSWMain.m +352 -0
- package/ios/RNFaceSDK.h +8 -0
- package/ios/RNFaceSDK.m +42 -0
- package/ios-ci/.gitlab-ci.yml +41 -0
- package/ios-ci/.sample-env +22 -0
- package/ios-ci/README.md +97 -0
- package/ios-ci/RegulaDanger/Package.swift +34 -0
- package/ios-ci/RegulaDanger/Sources/RegulaDanger/RegulaDanger.swift +44 -0
- package/ios-ci/RegulaDanger/Tests/LinuxMain.swift +7 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/RegulaDangerTests.swift +15 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/XCTestManifests.swift +9 -0
- package/ios-ci/install.sh +9 -0
- package/ios-ci/ios_ci/__init__.py +8 -0
- package/ios-ci/ios_ci/cli.py +408 -0
- package/ios-ci/ios_ci/common/__init__.py +0 -0
- package/ios-ci/ios_ci/common/build_index.py +70 -0
- package/ios-ci/ios_ci/common/clean_cocoapod.sh +13 -0
- package/ios-ci/ios_ci/common/dependency.py +466 -0
- package/ios-ci/ios_ci/common/ftp.py +314 -0
- package/ios-ci/ios_ci/common/searchpod.sh +6 -0
- package/ios-ci/ios_ci/common/wait_for_cocopod.sh +21 -0
- package/ios-ci/ios_ci/inject.py +145 -0
- package/ios-ci/ios_ci/podspec/__init__.py +0 -0
- package/ios-ci/ios_ci/podspec/podspec.py +88 -0
- package/ios-ci/ios_ci/podspec/templates/BTDevice.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/Core.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/DocumentReader.podspec +19 -0
- package/ios-ci/ios_ci/podspec/templates/FaceCore.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/FaceSDK.podspec +18 -0
- package/ios-ci/ios_ci/podspec/templates/IRS.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/RegulaCommon.podspec +17 -0
- package/ios-ci/ios_ci/resolve_podfile_common.py +76 -0
- package/ios-ci/ios_ci/spm/AppleRootCA-G3.cer +0 -0
- package/ios-ci/ios_ci/spm/AppleWWDRCAG3.cer +0 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator+Common.sh +48 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator.sh +33 -0
- package/ios-ci/ios_ci/spm/XcodeSPMCollection.json +29 -0
- package/ios-ci/ios_ci/spm/__init__.py +0 -0
- package/ios-ci/ios_ci/spm/askpass.py +19 -0
- package/ios-ci/ios_ci/spm/spm.py +227 -0
- package/ios-ci/ios_ci/upload_build.py +158 -0
- package/ios-ci/ios_ci/version.py +14 -0
- package/ios-ci/poetry.lock +342 -0
- package/ios-ci/pyproject.toml +26 -0
- package/ios-ci/scripts.py +9 -0
- package/ios-ci/tests/__init__.py +0 -0
- package/ios-ci/tests/podspec/fixtures/BTDevice.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/BTDeviceBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFID.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFIDBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDK.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDKBeta.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/IRS.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/IRSBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommon.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommonBeta.podspec +17 -0
- package/ios-ci/tests/podspec/test_podspec.py +188 -0
- package/ios-ci/tests/test_build_index.py +117 -0
- package/ios-ci/tests/test_dependency.py +139 -0
- package/ios-ci/tests/test_ios_ci.py +5 -0
- package/package.json +36 -0
- package/plugin.xml +48 -0
- package/www/capacitor/customization/camera_position.js +4 -0
- package/www/capacitor/customization/customization.js +66 -0
- package/www/capacitor/customization/customization_colors.js +233 -0
- package/www/capacitor/customization/customization_fonts.js +106 -0
- package/www/capacitor/customization/customization_images.js +129 -0
- package/www/capacitor/customization/font.js +23 -0
- package/www/capacitor/customization/screen_orientation.js +4 -0
- package/www/capacitor/detect_faces/detect_face_result.js +38 -0
- package/www/capacitor/detect_faces/detect_faces_attribute.js +15 -0
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/capacitor/detect_faces/detect_faces_config.js +14 -0
- package/www/capacitor/detect_faces/detect_faces_exception.js +30 -0
- package/www/capacitor/detect_faces/detect_faces_request.js +67 -0
- package/www/capacitor/detect_faces/detect_faces_response.js +24 -0
- package/www/capacitor/detect_faces/detect_faces_scenario.js +10 -0
- package/www/capacitor/face_capture/face_capture_config.js +28 -0
- package/www/capacitor/face_capture/face_capture_exception.js +25 -0
- package/www/capacitor/face_capture/face_capture_image.js +26 -0
- package/www/capacitor/face_capture/face_capture_response.js +17 -0
- package/www/capacitor/image_params/output_image_crop.js +21 -0
- package/www/capacitor/image_params/output_image_params.js +9 -0
- package/www/capacitor/image_params/point.js +14 -0
- package/www/capacitor/image_params/rect.js +18 -0
- package/www/capacitor/image_params/size.js +9 -0
- package/www/capacitor/image_quality/image_quality_characteristic.js +24 -0
- package/www/capacitor/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/capacitor/image_quality/image_quality_group.js +332 -0
- package/www/capacitor/image_quality/image_quality_range.js +26 -0
- package/www/capacitor/image_quality/image_quality_result.js +40 -0
- package/www/capacitor/index.js +219 -0
- package/www/capacitor/init/face_sdk_version.js +16 -0
- package/www/capacitor/init/init_config.js +9 -0
- package/www/capacitor/init/init_exception.js +29 -0
- package/www/capacitor/init/license_exception.js +29 -0
- package/www/capacitor/internal/bridge.js +39 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/internal/webpack.config.js +11 -0
- package/www/capacitor/liveness/liveness_backend_exception.js +38 -0
- package/www/capacitor/liveness/liveness_config.js +54 -0
- package/www/capacitor/liveness/liveness_exception.js +35 -0
- package/www/capacitor/liveness/liveness_notification.js +34 -0
- package/www/capacitor/liveness/liveness_response.js +30 -0
- package/www/capacitor/match_faces/compared_face.js +21 -0
- package/www/capacitor/match_faces/compared_faces_pair.js +23 -0
- package/www/capacitor/match_faces/compared_faces_split.js +22 -0
- package/www/capacitor/match_faces/match_faces_backend_exception.js +14 -0
- package/www/capacitor/match_faces/match_faces_config.js +12 -0
- package/www/capacitor/match_faces/match_faces_detection.js +25 -0
- package/www/capacitor/match_faces/match_faces_detection_face.js +28 -0
- package/www/capacitor/match_faces/match_faces_exception.js +30 -0
- package/www/capacitor/match_faces/match_faces_image.js +25 -0
- package/www/capacitor/match_faces/match_faces_request.js +13 -0
- package/www/capacitor/match_faces/match_faces_response.js +28 -0
- package/www/capacitor/person_database/edit_group_persons_request.js +9 -0
- package/www/capacitor/person_database/image_upload.js +16 -0
- package/www/capacitor/person_database/pageable_item_list.js +22 -0
- package/www/capacitor/person_database/person.js +22 -0
- package/www/capacitor/person_database/person_database.js +145 -0
- package/www/capacitor/person_database/person_group.js +18 -0
- package/www/capacitor/person_database/person_image.js +22 -0
- package/www/capacitor/person_database/search_person.js +31 -0
- package/www/capacitor/person_database/search_person_detection.js +22 -0
- package/www/capacitor/person_database/search_person_image.js +26 -0
- package/www/capacitor/person_database/search_person_request.js +17 -0
- package/www/cordova.js +3738 -0
- package/www/react-native/customization/camera_position.js +4 -0
- package/www/react-native/customization/customization.js +66 -0
- package/www/react-native/customization/customization_colors.js +233 -0
- package/www/react-native/customization/customization_fonts.js +106 -0
- package/www/react-native/customization/customization_images.js +129 -0
- package/www/react-native/customization/font.js +23 -0
- package/www/react-native/customization/screen_orientation.js +4 -0
- package/www/react-native/detect_faces/detect_face_result.js +38 -0
- package/www/react-native/detect_faces/detect_faces_attribute.js +15 -0
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/react-native/detect_faces/detect_faces_config.js +14 -0
- package/www/react-native/detect_faces/detect_faces_exception.js +30 -0
- package/www/react-native/detect_faces/detect_faces_request.js +67 -0
- package/www/react-native/detect_faces/detect_faces_response.js +24 -0
- package/www/react-native/detect_faces/detect_faces_scenario.js +10 -0
- package/www/react-native/face_capture/face_capture_config.js +28 -0
- package/www/react-native/face_capture/face_capture_exception.js +25 -0
- package/www/react-native/face_capture/face_capture_image.js +26 -0
- package/www/react-native/face_capture/face_capture_response.js +17 -0
- package/www/react-native/image_params/output_image_crop.js +21 -0
- package/www/react-native/image_params/output_image_params.js +9 -0
- package/www/react-native/image_params/point.js +14 -0
- package/www/react-native/image_params/rect.js +18 -0
- package/www/react-native/image_params/size.js +9 -0
- package/www/react-native/image_quality/image_quality_characteristic.js +24 -0
- package/www/react-native/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/react-native/image_quality/image_quality_group.js +332 -0
- package/www/react-native/image_quality/image_quality_range.js +26 -0
- package/www/react-native/image_quality/image_quality_result.js +40 -0
- package/www/react-native/index.js +219 -0
- package/www/react-native/init/face_sdk_version.js +16 -0
- package/www/react-native/init/init_config.js +9 -0
- package/www/react-native/init/init_exception.js +29 -0
- package/www/react-native/init/license_exception.js +29 -0
- package/www/react-native/internal/bridge.js +39 -0
- package/www/react-native/liveness/liveness_backend_exception.js +38 -0
- package/www/react-native/liveness/liveness_config.js +54 -0
- package/www/react-native/liveness/liveness_exception.js +35 -0
- package/www/react-native/liveness/liveness_notification.js +34 -0
- package/www/react-native/liveness/liveness_response.js +30 -0
- package/www/react-native/match_faces/compared_face.js +21 -0
- package/www/react-native/match_faces/compared_faces_pair.js +23 -0
- package/www/react-native/match_faces/compared_faces_split.js +22 -0
- package/www/react-native/match_faces/match_faces_backend_exception.js +14 -0
- package/www/react-native/match_faces/match_faces_config.js +12 -0
- package/www/react-native/match_faces/match_faces_detection.js +25 -0
- package/www/react-native/match_faces/match_faces_detection_face.js +28 -0
- package/www/react-native/match_faces/match_faces_exception.js +30 -0
- package/www/react-native/match_faces/match_faces_image.js +25 -0
- package/www/react-native/match_faces/match_faces_request.js +13 -0
- package/www/react-native/match_faces/match_faces_response.js +28 -0
- package/www/react-native/person_database/edit_group_persons_request.js +9 -0
- package/www/react-native/person_database/image_upload.js +16 -0
- package/www/react-native/person_database/pageable_item_list.js +22 -0
- package/www/react-native/person_database/person.js +22 -0
- package/www/react-native/person_database/person_database.js +145 -0
- package/www/react-native/person_database/person_group.js +18 -0
- package/www/react-native/person_database/person_image.js +22 -0
- package/www/react-native/person_database/search_person.js +31 -0
- package/www/react-native/person_database/search_person_detection.js +22 -0
- package/www/react-native/person_database/search_person_image.js +26 -0
- package/www/react-native/person_database/search_person_request.js +17 -0
- package/www/types/customization/camera_position.d.ts +4 -0
- package/www/types/customization/customization.d.ts +24 -0
- package/www/types/customization/customization_colors.d.ts +31 -0
- package/www/types/customization/customization_fonts.d.ts +17 -0
- package/www/types/customization/customization_images.d.ts +18 -0
- package/www/types/customization/font.d.ts +14 -0
- package/www/types/customization/screen_orientation.d.ts +4 -0
- package/www/types/detect_faces/detect_face_result.d.ts +16 -0
- package/www/types/detect_faces/detect_faces_attribute.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_attribute_result.d.ts +11 -0
- package/www/types/detect_faces/detect_faces_backend_exception.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_config.d.ts +19 -0
- package/www/types/detect_faces/detect_faces_exception.d.ts +21 -0
- package/www/types/detect_faces/detect_faces_request.d.ts +27 -0
- package/www/types/detect_faces/detect_faces_response.d.ts +12 -0
- package/www/types/detect_faces/detect_faces_scenario.d.ts +10 -0
- package/www/types/face_capture/face_capture_config.d.ts +30 -0
- package/www/types/face_capture/face_capture_exception.d.ts +17 -0
- package/www/types/face_capture/face_capture_image.d.ts +15 -0
- package/www/types/face_capture/face_capture_response.d.ts +9 -0
- package/www/types/image_params/output_image_crop.d.ts +25 -0
- package/www/types/image_params/output_image_params.d.ts +13 -0
- package/www/types/image_params/point.d.ts +6 -0
- package/www/types/image_params/rect.d.ts +8 -0
- package/www/types/image_params/size.d.ts +6 -0
- package/www/types/image_quality/image_quality_characteristic.d.ts +4 -0
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +58 -0
- package/www/types/image_quality/image_quality_group.d.ts +155 -0
- package/www/types/image_quality/image_quality_range.d.ts +8 -0
- package/www/types/image_quality/image_quality_result.d.ts +30 -0
- package/www/types/index.d.ts +159 -0
- package/www/types/init/face_sdk_version.d.ts +7 -0
- package/www/types/init/init_config.d.ts +7 -0
- package/www/types/init/init_exception.d.ts +20 -0
- package/www/types/init/license_exception.d.ts +21 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +30 -0
- package/www/types/liveness/liveness_config.d.ts +56 -0
- package/www/types/liveness/liveness_exception.d.ts +26 -0
- package/www/types/liveness/liveness_notification.d.ts +28 -0
- package/www/types/liveness/liveness_response.d.ts +18 -0
- package/www/types/match_faces/compared_face.d.ts +11 -0
- package/www/types/match_faces/compared_faces_pair.d.ts +12 -0
- package/www/types/match_faces/compared_faces_split.d.ts +8 -0
- package/www/types/match_faces/match_faces_backend_exception.d.ts +6 -0
- package/www/types/match_faces/match_faces_config.d.ts +14 -0
- package/www/types/match_faces/match_faces_detection.d.ts +12 -0
- package/www/types/match_faces/match_faces_detection_face.d.ts +13 -0
- package/www/types/match_faces/match_faces_exception.d.ts +21 -0
- package/www/types/match_faces/match_faces_image.d.ts +16 -0
- package/www/types/match_faces/match_faces_request.d.ts +18 -0
- package/www/types/match_faces/match_faces_response.d.ts +12 -0
- package/www/types/person_database/edit_group_persons_request.d.ts +8 -0
- package/www/types/person_database/image_upload.d.ts +6 -0
- package/www/types/person_database/pageable_item_list.d.ts +7 -0
- package/www/types/person_database/person.d.ts +10 -0
- package/www/types/person_database/person_database.d.ts +92 -0
- package/www/types/person_database/person_group.d.ts +8 -0
- package/www/types/person_database/person_image.d.ts +10 -0
- package/www/types/person_database/search_person.d.ts +15 -0
- package/www/types/person_database/search_person_detection.d.ts +11 -0
- package/www/types/person_database/search_person_image.d.ts +12 -0
- package/www/types/person_database/search_person_request.d.ts +15 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OutputImageCrop } from './output_image_crop'
|
|
2
|
+
|
|
3
|
+
export class OutputImageParams {
|
|
4
|
+
get crop(): OutputImageCrop | null
|
|
5
|
+
get backgroundColor(): number | null
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
params?: {
|
|
9
|
+
crop?: OutputImageCrop,
|
|
10
|
+
backgroundColor?: number,
|
|
11
|
+
}
|
|
12
|
+
)
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export enum ImageQualityCharacteristicName {
|
|
2
|
+
IMAGE_WIDTH,
|
|
3
|
+
IMAGE_HEIGHT,
|
|
4
|
+
IMAGE_WIDTH_TO_HEIGHT,
|
|
5
|
+
IMAGE_CHANNELS_NUMBER,
|
|
6
|
+
ART_FACE,
|
|
7
|
+
PADDING_RATIO,
|
|
8
|
+
FACE_MID_POINT_HORIZONTAL_POSITION,
|
|
9
|
+
FACE_MID_POINT_VERTICAL_POSITION,
|
|
10
|
+
HEAD_WIDTH_RATIO,
|
|
11
|
+
HEAD_HEIGHT_RATIO,
|
|
12
|
+
EYES_DISTANCE,
|
|
13
|
+
YAW,
|
|
14
|
+
PITCH,
|
|
15
|
+
ROLL,
|
|
16
|
+
BLUR_LEVEL,
|
|
17
|
+
NOISE_LEVEL,
|
|
18
|
+
UNNATURAL_SKIN_TONE,
|
|
19
|
+
FACE_DYNAMIC_RANGE,
|
|
20
|
+
EYE_RIGHT_CLOSED,
|
|
21
|
+
EYE_LEFT_CLOSED,
|
|
22
|
+
EYE_RIGHT_OCCLUDED,
|
|
23
|
+
EYE_LEFT_OCCLUDED,
|
|
24
|
+
EYES_RED,
|
|
25
|
+
EYE_RIGHT_COVERED_WITH_HAIR,
|
|
26
|
+
EYE_LEFT_COVERED_WITH_HAIR,
|
|
27
|
+
OFF_GAZE,
|
|
28
|
+
TOO_DARK,
|
|
29
|
+
TOO_LIGHT,
|
|
30
|
+
FACE_GLARE,
|
|
31
|
+
SHADOWS_ON_FACE,
|
|
32
|
+
SHOULDERS_POSE,
|
|
33
|
+
EXPRESSION_LEVEL,
|
|
34
|
+
MOUTH_OPEN,
|
|
35
|
+
SMILE,
|
|
36
|
+
DARK_GLASSES,
|
|
37
|
+
REFLECTION_ON_GLASSES,
|
|
38
|
+
FRAMES_TOO_HEAVY,
|
|
39
|
+
FACE_OCCLUDED,
|
|
40
|
+
HEAD_COVERING,
|
|
41
|
+
FOREHEAD_COVERING,
|
|
42
|
+
STRONG_MAKEUP,
|
|
43
|
+
HEAD_PHONES,
|
|
44
|
+
MEDICAL_MASK,
|
|
45
|
+
BACKGROUND_UNIFORMITY,
|
|
46
|
+
SHADOWS_ON_BACKGROUND,
|
|
47
|
+
OTHER_FACES,
|
|
48
|
+
BACKGROUND_COLOR_MATCH,
|
|
49
|
+
UNKNOWN,
|
|
50
|
+
IMAGE_CHARACTERISTIC_ALL_RECOMMENDED,
|
|
51
|
+
HEAD_SIZE_AND_POSITION_ALL_RECOMMENDED,
|
|
52
|
+
FACE_IMAGE_QUALITY_ALL_RECOMMENDED,
|
|
53
|
+
EYES_CHARACTERISTICS_ALL_RECOMMENDED,
|
|
54
|
+
SHADOW_AND_LIGHTING_ALL_RECOMMENDED,
|
|
55
|
+
POSE_AND_EXPRESSION_ALL_RECOMMENDED,
|
|
56
|
+
HEAD_OCCLUSION_ALL_RECOMMENDED,
|
|
57
|
+
QUALITY_BACKGROUND_ALL_RECOMMENDED
|
|
58
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ImageQualityCharacteristic } from './image_quality_characteristic'
|
|
2
|
+
import { ImageQualityRange } from './image_quality_range'
|
|
3
|
+
|
|
4
|
+
export class ImageQualityGroup {
|
|
5
|
+
static get image(): _Image
|
|
6
|
+
static get headSizeAndPosition(): _HeadSizeAndPosition
|
|
7
|
+
static get faceImage(): _FaceImage
|
|
8
|
+
static get eyes(): _Eyes
|
|
9
|
+
static get shadowsAndLightning(): _ShadowsAndLightning
|
|
10
|
+
static get poseAndExpression(): _PoseAndExpression
|
|
11
|
+
static get headOcclusion(): _HeadOcclusion
|
|
12
|
+
static get background(): _Background
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class _Image {
|
|
16
|
+
imageWidth(range: ImageQualityRange): ImageQualityCharacteristic
|
|
17
|
+
|
|
18
|
+
imageHeight(range: ImageQualityRange): ImageQualityCharacteristic
|
|
19
|
+
|
|
20
|
+
imageWidthToHeight(range: ImageQualityRange): ImageQualityCharacteristic
|
|
21
|
+
|
|
22
|
+
imageChannelsNumber(channelsNumber: number): ImageQualityCharacteristic
|
|
23
|
+
|
|
24
|
+
paddingRatio(range: ImageQualityRange): ImageQualityCharacteristic
|
|
25
|
+
|
|
26
|
+
artFace(): ImageQualityCharacteristic
|
|
27
|
+
|
|
28
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
29
|
+
|
|
30
|
+
private constructor()
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class _HeadSizeAndPosition {
|
|
34
|
+
faceMidPointHorizontalPosition(): ImageQualityCharacteristic
|
|
35
|
+
|
|
36
|
+
faceMidPointVerticalPosition(): ImageQualityCharacteristic
|
|
37
|
+
|
|
38
|
+
headWidthRatio(): ImageQualityCharacteristic
|
|
39
|
+
|
|
40
|
+
headHeightRatio(): ImageQualityCharacteristic
|
|
41
|
+
|
|
42
|
+
eyesDistance(): ImageQualityCharacteristic
|
|
43
|
+
|
|
44
|
+
yaw(): ImageQualityCharacteristic
|
|
45
|
+
|
|
46
|
+
pitch(): ImageQualityCharacteristic
|
|
47
|
+
|
|
48
|
+
roll(): ImageQualityCharacteristic
|
|
49
|
+
|
|
50
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
51
|
+
|
|
52
|
+
private constructor()
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class _FaceImage {
|
|
56
|
+
blurLevel(): ImageQualityCharacteristic
|
|
57
|
+
|
|
58
|
+
noiseLevel(): ImageQualityCharacteristic
|
|
59
|
+
|
|
60
|
+
unnaturalSkinTone(): ImageQualityCharacteristic
|
|
61
|
+
|
|
62
|
+
faceDynamicRange(): ImageQualityCharacteristic
|
|
63
|
+
|
|
64
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
65
|
+
|
|
66
|
+
private constructor()
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export class _Eyes {
|
|
70
|
+
eyeRightClosed(): ImageQualityCharacteristic
|
|
71
|
+
|
|
72
|
+
eyeLeftClosed(): ImageQualityCharacteristic
|
|
73
|
+
|
|
74
|
+
eyeRightOccluded(): ImageQualityCharacteristic
|
|
75
|
+
|
|
76
|
+
eyeLeftOccluded(): ImageQualityCharacteristic
|
|
77
|
+
|
|
78
|
+
eyesRed(): ImageQualityCharacteristic
|
|
79
|
+
|
|
80
|
+
eyeRightCoveredWithHair(): ImageQualityCharacteristic
|
|
81
|
+
|
|
82
|
+
eyeLeftCoveredWithHair(): ImageQualityCharacteristic
|
|
83
|
+
|
|
84
|
+
offGaze(): ImageQualityCharacteristic
|
|
85
|
+
|
|
86
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
87
|
+
|
|
88
|
+
private constructor()
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export class _ShadowsAndLightning {
|
|
92
|
+
tooDark(): ImageQualityCharacteristic
|
|
93
|
+
|
|
94
|
+
tooLight(): ImageQualityCharacteristic
|
|
95
|
+
|
|
96
|
+
faceGlare(): ImageQualityCharacteristic
|
|
97
|
+
|
|
98
|
+
shadowsOnFace(): ImageQualityCharacteristic
|
|
99
|
+
|
|
100
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
101
|
+
|
|
102
|
+
private constructor()
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export class _PoseAndExpression {
|
|
106
|
+
shouldersPose(): ImageQualityCharacteristic
|
|
107
|
+
|
|
108
|
+
expressionLevel(): ImageQualityCharacteristic
|
|
109
|
+
|
|
110
|
+
mouthOpen(): ImageQualityCharacteristic
|
|
111
|
+
|
|
112
|
+
smile(): ImageQualityCharacteristic
|
|
113
|
+
|
|
114
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
115
|
+
|
|
116
|
+
private constructor()
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class _HeadOcclusion {
|
|
120
|
+
darkGlasses(): ImageQualityCharacteristic
|
|
121
|
+
|
|
122
|
+
reflectionOnGlasses(): ImageQualityCharacteristic
|
|
123
|
+
|
|
124
|
+
framesTooHeavy(): ImageQualityCharacteristic
|
|
125
|
+
|
|
126
|
+
faceOccluded(): ImageQualityCharacteristic
|
|
127
|
+
|
|
128
|
+
headCovering(): ImageQualityCharacteristic
|
|
129
|
+
|
|
130
|
+
foreheadCovering(): ImageQualityCharacteristic
|
|
131
|
+
|
|
132
|
+
strongMakeup(): ImageQualityCharacteristic
|
|
133
|
+
|
|
134
|
+
headphones(): ImageQualityCharacteristic
|
|
135
|
+
|
|
136
|
+
medicalMask(): ImageQualityCharacteristic
|
|
137
|
+
|
|
138
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
139
|
+
|
|
140
|
+
private constructor()
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export class _Background {
|
|
144
|
+
backgroundUniformity(): ImageQualityCharacteristic
|
|
145
|
+
|
|
146
|
+
shadowsOnBackground(): ImageQualityCharacteristic
|
|
147
|
+
|
|
148
|
+
otherFaces(): ImageQualityCharacteristic
|
|
149
|
+
|
|
150
|
+
backgroundColorMatch(params?: { color?: number }): ImageQualityCharacteristic
|
|
151
|
+
|
|
152
|
+
allRecommended(): Array<ImageQualityCharacteristic>
|
|
153
|
+
|
|
154
|
+
private constructor()
|
|
155
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ImageQualityRange } from './image_quality_range'
|
|
2
|
+
import { ImageQualityCharacteristicName } from './image_quality_characteristic_name'
|
|
3
|
+
|
|
4
|
+
export class ImageQualityResult {
|
|
5
|
+
get group(): ImageQualityGroupName
|
|
6
|
+
get name(): ImageQualityCharacteristicName
|
|
7
|
+
get status(): ImageQualityResultStatus
|
|
8
|
+
get value(): number
|
|
9
|
+
get range(): ImageQualityRange
|
|
10
|
+
|
|
11
|
+
private constructor()
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum ImageQualityGroupName {
|
|
15
|
+
IMAGE_CHARACTERISTICS,
|
|
16
|
+
HEAD_SIZE_AND_POSITION,
|
|
17
|
+
FACE_QUALITY,
|
|
18
|
+
EYES_CHARACTERISTICS,
|
|
19
|
+
SHADOWS_AND_LIGHTNING,
|
|
20
|
+
POSE_AND_EXPRESSION,
|
|
21
|
+
HEAD_OCCLUSION,
|
|
22
|
+
BACKGROUND,
|
|
23
|
+
UNKNOWN,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum ImageQualityResultStatus {
|
|
27
|
+
FALSE,
|
|
28
|
+
TRUE,
|
|
29
|
+
UNDETERMINED,
|
|
30
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { CameraPosition } from './customization/camera_position'
|
|
2
|
+
import { CustomizationColors } from './customization/customization_colors'
|
|
3
|
+
import { CustomizationFonts } from './customization/customization_fonts'
|
|
4
|
+
import { CustomizationImages } from './customization/customization_images'
|
|
5
|
+
import { Customization, CustomButtonTappedCompletion } from './customization/customization'
|
|
6
|
+
import { Font } from './customization/font'
|
|
7
|
+
import { ScreenOrientation } from './customization/screen_orientation'
|
|
8
|
+
|
|
9
|
+
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, CustomButtonTappedCompletion, Font, ScreenOrientation }
|
|
10
|
+
|
|
11
|
+
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
12
|
+
import { InitConfig } from './init/init_config'
|
|
13
|
+
import { InitException } from './init/init_exception'
|
|
14
|
+
import { InitErrorCode } from './init/init_exception'
|
|
15
|
+
import { LicenseException } from './init/license_exception'
|
|
16
|
+
import { LicensingResultCode } from './init/license_exception'
|
|
17
|
+
|
|
18
|
+
export { FaceSDKVersion, InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
19
|
+
|
|
20
|
+
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
21
|
+
import { DetectFacesAttributeResult } from './detect_faces/detect_faces_attribute_result'
|
|
22
|
+
import { DetectFacesAttribute } from './detect_faces/detect_faces_attribute'
|
|
23
|
+
import { DetectFacesBackendException, DetectFacesBackendErrorCode } from './detect_faces/detect_faces_backend_exception'
|
|
24
|
+
import { DetectFacesConfig } from './detect_faces/detect_faces_config'
|
|
25
|
+
import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detect_faces_exception'
|
|
26
|
+
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
27
|
+
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
28
|
+
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
29
|
+
|
|
30
|
+
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
31
|
+
|
|
32
|
+
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
33
|
+
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
34
|
+
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
35
|
+
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
36
|
+
|
|
37
|
+
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
38
|
+
|
|
39
|
+
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
40
|
+
import { OutputImageParams } from './image_params/output_image_params'
|
|
41
|
+
import { Point } from './image_params/point'
|
|
42
|
+
import { Rect } from './image_params/rect'
|
|
43
|
+
import { Size } from './image_params/size'
|
|
44
|
+
|
|
45
|
+
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
46
|
+
|
|
47
|
+
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
48
|
+
import { ImageQualityCharacteristic } from './image_quality/image_quality_characteristic'
|
|
49
|
+
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
50
|
+
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
51
|
+
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
52
|
+
|
|
53
|
+
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
54
|
+
|
|
55
|
+
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
56
|
+
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
57
|
+
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
58
|
+
import { LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion } from './liveness/liveness_notification'
|
|
59
|
+
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
60
|
+
|
|
61
|
+
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessNotificationCompletion, LivenessResponse, LivenessStatus }
|
|
62
|
+
|
|
63
|
+
import { ComparedFace } from './match_faces/compared_face'
|
|
64
|
+
import { ComparedFacesPair } from './match_faces/compared_faces_pair'
|
|
65
|
+
import { ComparedFacesSplit } from './match_faces/compared_faces_split'
|
|
66
|
+
import { MatchFacesBackendException } from './match_faces/match_faces_backend_exception'
|
|
67
|
+
import { MatchFacesConfig, ProcessingMode } from './match_faces/match_faces_config'
|
|
68
|
+
import { MatchFacesDetectionFace } from './match_faces/match_faces_detection_face'
|
|
69
|
+
import { MatchFacesDetection } from './match_faces/match_faces_detection'
|
|
70
|
+
import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_faces_exception'
|
|
71
|
+
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
72
|
+
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
73
|
+
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
74
|
+
|
|
75
|
+
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
76
|
+
|
|
77
|
+
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
78
|
+
import { ImageUpload } from './person_database/image_upload'
|
|
79
|
+
import { PageableItemList } from './person_database/pageable_item_list'
|
|
80
|
+
import { PersonDatabase } from './person_database/person_database'
|
|
81
|
+
import { PersonGroup } from './person_database/person_group'
|
|
82
|
+
import { PersonImage } from './person_database/person_image'
|
|
83
|
+
import { Person } from './person_database/person'
|
|
84
|
+
import { SearchPersonDetection } from './person_database/search_person_detection'
|
|
85
|
+
import { SearchPersonImage } from './person_database/search_person_image'
|
|
86
|
+
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
87
|
+
import { SearchPerson } from './person_database/search_person'
|
|
88
|
+
|
|
89
|
+
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
export class FaceSDK {
|
|
93
|
+
static get instance(): FaceSDK
|
|
94
|
+
|
|
95
|
+
get version(): FaceSDKVersion | null
|
|
96
|
+
|
|
97
|
+
get serviceUrl(): string | null
|
|
98
|
+
set serviceUrl(val: string | null)
|
|
99
|
+
|
|
100
|
+
get localizationDictionary(): Record<string, string> | null
|
|
101
|
+
set localizationDictionary(val: Record<string, string> | null)
|
|
102
|
+
|
|
103
|
+
get requestHeaders(): Record<string, string> | null
|
|
104
|
+
set requestHeaders(val: Record<string, string> | null)
|
|
105
|
+
|
|
106
|
+
get customization(): Customization
|
|
107
|
+
set customization(val: Customization)
|
|
108
|
+
|
|
109
|
+
set videoEncoderCompletion(completion: VideoEncoderCompletion)
|
|
110
|
+
|
|
111
|
+
get personDatabase(): PersonDatabase
|
|
112
|
+
|
|
113
|
+
isInitialized(): Promise<boolean>
|
|
114
|
+
|
|
115
|
+
initialize(
|
|
116
|
+
params?: {
|
|
117
|
+
config?: InitConfig
|
|
118
|
+
}
|
|
119
|
+
): Promise<[boolean, InitException | null]>
|
|
120
|
+
|
|
121
|
+
deinitialize(): void
|
|
122
|
+
|
|
123
|
+
startFaceCapture(
|
|
124
|
+
params?: {
|
|
125
|
+
config?: FaceCaptureConfig,
|
|
126
|
+
cameraSwitchCallback?: CameraSwitchCallback,
|
|
127
|
+
}
|
|
128
|
+
): Promise<FaceCaptureResponse>
|
|
129
|
+
|
|
130
|
+
stopFaceCapture(): void
|
|
131
|
+
|
|
132
|
+
startLiveness(
|
|
133
|
+
params?: {
|
|
134
|
+
config?: LivenessConfig,
|
|
135
|
+
notificationCompletion?: LivenessNotificationCompletion,
|
|
136
|
+
cameraSwitchCallback?: CameraSwitchCallback,
|
|
137
|
+
}
|
|
138
|
+
): Promise<LivenessResponse>
|
|
139
|
+
|
|
140
|
+
stopLiveness(): void
|
|
141
|
+
|
|
142
|
+
matchFaces(
|
|
143
|
+
request: MatchFacesRequest,
|
|
144
|
+
params?: {
|
|
145
|
+
config?: MatchFacesConfig
|
|
146
|
+
}
|
|
147
|
+
): Promise<MatchFacesResponse>
|
|
148
|
+
|
|
149
|
+
splitComparedFaces(
|
|
150
|
+
facesPairs: Array<ComparedFacesPair>,
|
|
151
|
+
similarityThreshold: number
|
|
152
|
+
): Promise<ComparedFacesSplit>
|
|
153
|
+
|
|
154
|
+
detectFaces(request: DetectFacesRequest): Promise<DetectFacesResponse>
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type VideoEncoderCompletion = (transactionId: string, success: boolean) => void
|
|
158
|
+
|
|
159
|
+
export type CameraSwitchCallback = (cameraId: number) => void
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LicenseException } from "./license_exception"
|
|
2
|
+
|
|
3
|
+
export class InitException {
|
|
4
|
+
get code(): InitErrorCode
|
|
5
|
+
get message(): string
|
|
6
|
+
get underlyingError(): LicenseException | null
|
|
7
|
+
|
|
8
|
+
private constructor()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum InitErrorCode {
|
|
12
|
+
IN_PROGRESS_ALREADY,
|
|
13
|
+
MISSING_CORE,
|
|
14
|
+
INTERNAL_CORE_ERROR,
|
|
15
|
+
BAD_LICENSE,
|
|
16
|
+
UNAVAILABLE,
|
|
17
|
+
CONTEXT_IS_NULL,
|
|
18
|
+
RESOURCE_DAT_ABSENT,
|
|
19
|
+
LICENSE_IS_NULL,
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class LicenseException {
|
|
2
|
+
get code(): LicensingResultCode
|
|
3
|
+
get message(): string
|
|
4
|
+
|
|
5
|
+
private constructor()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum LicensingResultCode {
|
|
9
|
+
OK,
|
|
10
|
+
LICENSE_CORRUPTED,
|
|
11
|
+
INVALID_DATE,
|
|
12
|
+
INVALID_VERSION,
|
|
13
|
+
INVALID_DEVICE_ID,
|
|
14
|
+
INVALID_SYSTEM_OR_APP_ID,
|
|
15
|
+
NO_CAPABILITIES,
|
|
16
|
+
NO_AUTHENTICITY,
|
|
17
|
+
LICENSE_ABSENT,
|
|
18
|
+
NO_INTERNET,
|
|
19
|
+
NO_DATABASE,
|
|
20
|
+
DATABASE_INCORRECT,
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class LivenessBackendException {
|
|
2
|
+
get code(): LivenessBackendErrorCode
|
|
3
|
+
get message(): string
|
|
4
|
+
|
|
5
|
+
private constructor()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum LivenessBackendErrorCode {
|
|
9
|
+
UNDEFINED,
|
|
10
|
+
NO_LICENSE,
|
|
11
|
+
LOW_QUALITY,
|
|
12
|
+
TRACK_BREAK,
|
|
13
|
+
CLOSED_EYES_DETECTED,
|
|
14
|
+
HIGH_ASYMMETRY,
|
|
15
|
+
FACE_OVER_EMOTIONAL,
|
|
16
|
+
SUNGLASSES_DETECTED,
|
|
17
|
+
SMALL_AGE,
|
|
18
|
+
HEADDRESS_DETECTED,
|
|
19
|
+
MEDICINE_MASK_DETECTED,
|
|
20
|
+
OCCLUSION_DETECTED,
|
|
21
|
+
FOREHEAD_GLASSES_DETECTED,
|
|
22
|
+
MOUTH_OPENED,
|
|
23
|
+
ART_MASK_DETECTED,
|
|
24
|
+
NOT_MATCHED,
|
|
25
|
+
IMAGES_COUNT_LIMIT_EXCEEDED,
|
|
26
|
+
ELECTRONIC_DEVICE_DETECTED,
|
|
27
|
+
WRONG_GEO,
|
|
28
|
+
WRONG_OF,
|
|
29
|
+
WRONG_VIEW,
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
|
|
4
|
+
export class LivenessConfig {
|
|
5
|
+
copyright: boolean
|
|
6
|
+
cameraSwitchEnabled: boolean
|
|
7
|
+
closeButtonEnabled: boolean
|
|
8
|
+
torchButtonEnabled: boolean
|
|
9
|
+
vibrateOnSteps: boolean
|
|
10
|
+
cameraPositionAndroid?: number
|
|
11
|
+
cameraPositionIOS: CameraPosition
|
|
12
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
13
|
+
locationTrackingEnabled: boolean
|
|
14
|
+
attemptsCount: number
|
|
15
|
+
recordingProcess: RecordingProcess
|
|
16
|
+
livenessType: LivenessType
|
|
17
|
+
tag?: string
|
|
18
|
+
skipStep: Array<LivenessSkipStep>
|
|
19
|
+
metadata?: Record<string, any>
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
params?: {
|
|
23
|
+
copyright?: boolean
|
|
24
|
+
cameraSwitchEnabled?: boolean
|
|
25
|
+
closeButtonEnabled?: boolean
|
|
26
|
+
torchButtonEnabled?: boolean
|
|
27
|
+
vibrateOnSteps?: boolean
|
|
28
|
+
cameraPositionAndroid?: number
|
|
29
|
+
cameraPositionIOS?: CameraPosition
|
|
30
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
31
|
+
locationTrackingEnabled?: boolean
|
|
32
|
+
attemptsCount?: number
|
|
33
|
+
recordingProcess?: RecordingProcess
|
|
34
|
+
livenessType?: LivenessType
|
|
35
|
+
tag?: string
|
|
36
|
+
skipStep?: Array<LivenessSkipStep>
|
|
37
|
+
metadata?: Record<string, any>
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export enum RecordingProcess {
|
|
43
|
+
ASYNCHRONOUS_UPLOAD,
|
|
44
|
+
SYNCHRONOUS_UPLOAD,
|
|
45
|
+
NOT_UPLOAD,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export enum LivenessType {
|
|
49
|
+
ACTIVE,
|
|
50
|
+
PASSIVE,
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export enum LivenessSkipStep {
|
|
54
|
+
ONBOARDING_STEP,
|
|
55
|
+
SUCCESS_STEP,
|
|
56
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LivenessBackendException } from "./liveness_backend_exception"
|
|
2
|
+
|
|
3
|
+
export class LivenessException {
|
|
4
|
+
get code(): LivenessErrorCode
|
|
5
|
+
get message(): string
|
|
6
|
+
get underlyingError(): LivenessBackendException | null
|
|
7
|
+
|
|
8
|
+
private constructor()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum LivenessErrorCode {
|
|
12
|
+
NOT_INITIALIZED,
|
|
13
|
+
NO_LICENSE,
|
|
14
|
+
API_CALL_FAILED,
|
|
15
|
+
SESSION_START_FAILED,
|
|
16
|
+
CANCELLED,
|
|
17
|
+
PROCESSING_TIMEOUT,
|
|
18
|
+
PROCESSING_FAILED,
|
|
19
|
+
PROCESSING_FRAME_FAILED,
|
|
20
|
+
APPLICATION_INACTIVE,
|
|
21
|
+
CONTEXT_IS_NULL,
|
|
22
|
+
IN_PROGRESS_ALREADY,
|
|
23
|
+
ZOOM_NOT_SUPPORTED,
|
|
24
|
+
CAMERA_NO_PERMISSION,
|
|
25
|
+
CAMERA_NOT_AVAILABLE,
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LivenessResponse } from './liveness_response'
|
|
2
|
+
|
|
3
|
+
export class LivenessNotification {
|
|
4
|
+
get status(): LivenessProcessStatus
|
|
5
|
+
get response(): LivenessResponse | null
|
|
6
|
+
|
|
7
|
+
private constructor()
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export enum LivenessProcessStatus {
|
|
11
|
+
START,
|
|
12
|
+
PREPARING,
|
|
13
|
+
NEW_SESSION,
|
|
14
|
+
NEXT_STAGE,
|
|
15
|
+
SECTOR_CHANGED,
|
|
16
|
+
PROGRESS,
|
|
17
|
+
LOW_BRIGHTNESS,
|
|
18
|
+
FIT_FACE,
|
|
19
|
+
MOVE_AWAY,
|
|
20
|
+
MOVE_CLOSER,
|
|
21
|
+
TURN_HEAD,
|
|
22
|
+
PROCESSING,
|
|
23
|
+
FAILED,
|
|
24
|
+
RETRY,
|
|
25
|
+
SUCCESS,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type LivenessNotificationCompletion = (notification: LivenessNotification) => void
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { LivenessException } from './liveness_exception'
|
|
3
|
+
|
|
4
|
+
export class LivenessResponse {
|
|
5
|
+
get image(): string | null
|
|
6
|
+
get liveness(): LivenessStatus
|
|
7
|
+
get tag(): string | null
|
|
8
|
+
get transactionId(): string | null
|
|
9
|
+
get estimatedAge(): number | null
|
|
10
|
+
get error(): LivenessException | null
|
|
11
|
+
|
|
12
|
+
private constructor()
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum LivenessStatus {
|
|
16
|
+
PASSED,
|
|
17
|
+
UNKNOWN,
|
|
18
|
+
}
|