@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,26 @@
|
|
|
1
|
+
export class ImageQualityRange {
|
|
2
|
+
min
|
|
3
|
+
max
|
|
4
|
+
|
|
5
|
+
constructor(min, max) {
|
|
6
|
+
this.min = min
|
|
7
|
+
this.max = max
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static withValue(value) {
|
|
11
|
+
var result = new ImageQualityRange()
|
|
12
|
+
result.min = value
|
|
13
|
+
result.max = value
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static fromJson(jsonObject) {
|
|
18
|
+
if (jsonObject == null) return null
|
|
19
|
+
const result = new ImageQualityRange()
|
|
20
|
+
|
|
21
|
+
result.min = jsonObject["min"]
|
|
22
|
+
result.max = jsonObject["max"]
|
|
23
|
+
|
|
24
|
+
return result
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ImageQualityRange } from './image_quality_range'
|
|
2
|
+
|
|
3
|
+
export class ImageQualityResult {
|
|
4
|
+
group
|
|
5
|
+
name
|
|
6
|
+
status
|
|
7
|
+
value
|
|
8
|
+
range
|
|
9
|
+
|
|
10
|
+
static fromJson(jsonObject) {
|
|
11
|
+
if (jsonObject == null) return null
|
|
12
|
+
const result = new ImageQualityResult()
|
|
13
|
+
|
|
14
|
+
result.name = jsonObject["name"]
|
|
15
|
+
result.group = jsonObject["group"]
|
|
16
|
+
result.status = jsonObject["status"]
|
|
17
|
+
result.range = ImageQualityRange.fromJson(jsonObject["range"])
|
|
18
|
+
result.value = jsonObject["value"]
|
|
19
|
+
|
|
20
|
+
return result
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const ImageQualityGroupName = {
|
|
25
|
+
IMAGE_CHARACTERISTICS: 1,
|
|
26
|
+
HEAD_SIZE_AND_POSITION: 2,
|
|
27
|
+
FACE_QUALITY: 3,
|
|
28
|
+
EYES_CHARACTERISTICS: 4,
|
|
29
|
+
SHADOWS_AND_LIGHTNING: 5,
|
|
30
|
+
POSE_AND_EXPRESSION: 6,
|
|
31
|
+
HEAD_OCCLUSION: 7,
|
|
32
|
+
BACKGROUND: 8,
|
|
33
|
+
UNKNOWN: 9,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const ImageQualityResultStatus = {
|
|
37
|
+
FALSE: 0,
|
|
38
|
+
TRUE: 1,
|
|
39
|
+
UNDETERMINED: 2,
|
|
40
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { exec, _setVideoEncoderCompletion, _setLivenessNotificationCompletion, _setCameraSwitchCallback } from './internal/bridge'
|
|
2
|
+
|
|
3
|
+
import { CameraPosition } from './customization/camera_position'
|
|
4
|
+
import { CustomizationColors } from './customization/customization_colors'
|
|
5
|
+
import { CustomizationFonts } from './customization/customization_fonts'
|
|
6
|
+
import { CustomizationImages } from './customization/customization_images'
|
|
7
|
+
import { Customization } from './customization/customization'
|
|
8
|
+
import { Font } from './customization/font'
|
|
9
|
+
import { ScreenOrientation } from './customization/screen_orientation'
|
|
10
|
+
|
|
11
|
+
export { CameraPosition, CustomizationColors, CustomizationFonts, CustomizationImages, Customization, Font, ScreenOrientation }
|
|
12
|
+
|
|
13
|
+
import { FaceSDKVersion } from './init/face_sdk_version'
|
|
14
|
+
import { InitConfig } from './init/init_config'
|
|
15
|
+
import { InitException } from './init/init_exception'
|
|
16
|
+
import { InitErrorCode } from './init/init_exception'
|
|
17
|
+
import { LicenseException } from './init/license_exception'
|
|
18
|
+
import { LicensingResultCode } from './init/license_exception'
|
|
19
|
+
|
|
20
|
+
export { FaceSDKVersion, InitConfig, InitException, InitErrorCode, LicenseException, LicensingResultCode }
|
|
21
|
+
|
|
22
|
+
import { DetectFaceResult } from './detect_faces/detect_face_result'
|
|
23
|
+
import { DetectFacesAttributeResult } from './detect_faces/detect_faces_attribute_result'
|
|
24
|
+
import { DetectFacesAttribute } from './detect_faces/detect_faces_attribute'
|
|
25
|
+
import { DetectFacesBackendException, DetectFacesBackendErrorCode } from './detect_faces/detect_faces_backend_exception'
|
|
26
|
+
import { DetectFacesConfig } from './detect_faces/detect_faces_config'
|
|
27
|
+
import { DetectFacesException, DetectFacesErrorCode } from './detect_faces/detect_faces_exception'
|
|
28
|
+
import { DetectFacesRequest } from './detect_faces/detect_faces_request'
|
|
29
|
+
import { DetectFacesResponse } from './detect_faces/detect_faces_response'
|
|
30
|
+
import { DetectFacesScenario } from './detect_faces/detect_faces_scenario'
|
|
31
|
+
|
|
32
|
+
export { DetectFaceResult, DetectFacesAttributeResult, DetectFacesAttribute, DetectFacesBackendException, DetectFacesBackendErrorCode, DetectFacesConfig, DetectFacesException, DetectFacesErrorCode, DetectFacesRequest, DetectFacesResponse, DetectFacesScenario }
|
|
33
|
+
|
|
34
|
+
import { FaceCaptureConfig } from './face_capture/face_capture_config'
|
|
35
|
+
import { FaceCaptureException, FaceCaptureErrorCode } from './face_capture/face_capture_exception'
|
|
36
|
+
import { FaceCaptureImage, ImageType } from './face_capture/face_capture_image'
|
|
37
|
+
import { FaceCaptureResponse } from './face_capture/face_capture_response'
|
|
38
|
+
|
|
39
|
+
export { FaceCaptureConfig, FaceCaptureException, FaceCaptureErrorCode, FaceCaptureImage, ImageType, FaceCaptureResponse }
|
|
40
|
+
|
|
41
|
+
import { OutputImageCrop, OutputImageCropAspectRatio } from './image_params/output_image_crop'
|
|
42
|
+
import { OutputImageParams } from './image_params/output_image_params'
|
|
43
|
+
import { Point } from './image_params/point'
|
|
44
|
+
import { Rect } from './image_params/rect'
|
|
45
|
+
import { Size } from './image_params/size'
|
|
46
|
+
|
|
47
|
+
export { OutputImageCrop, OutputImageCropAspectRatio, OutputImageParams, Point, Rect, Size }
|
|
48
|
+
|
|
49
|
+
import { ImageQualityCharacteristicName } from './image_quality/image_quality_characteristic_name'
|
|
50
|
+
import { ImageQualityCharacteristic } from './image_quality/image_quality_characteristic'
|
|
51
|
+
import { ImageQualityGroup } from './image_quality/image_quality_group'
|
|
52
|
+
import { ImageQualityRange } from './image_quality/image_quality_range'
|
|
53
|
+
import { ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus } from './image_quality/image_quality_result'
|
|
54
|
+
|
|
55
|
+
export { ImageQualityCharacteristicName, ImageQualityCharacteristic, ImageQualityGroup, ImageQualityRange, ImageQualityResult, ImageQualityGroupName, ImageQualityResultStatus }
|
|
56
|
+
|
|
57
|
+
import { LivenessBackendException, LivenessBackendErrorCode } from './liveness/liveness_backend_exception'
|
|
58
|
+
import { LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep } from './liveness/liveness_config'
|
|
59
|
+
import { LivenessException, LivenessErrorCode } from './liveness/liveness_exception'
|
|
60
|
+
import { LivenessNotification, LivenessProcessStatus } from './liveness/liveness_notification'
|
|
61
|
+
import { LivenessResponse, LivenessStatus } from './liveness/liveness_response'
|
|
62
|
+
|
|
63
|
+
export { LivenessBackendException, LivenessBackendErrorCode, LivenessConfig, RecordingProcess, LivenessType, LivenessSkipStep, LivenessException, LivenessErrorCode, LivenessNotification, LivenessProcessStatus, LivenessResponse, LivenessStatus }
|
|
64
|
+
|
|
65
|
+
import { ComparedFace } from './match_faces/compared_face'
|
|
66
|
+
import { ComparedFacesPair } from './match_faces/compared_faces_pair'
|
|
67
|
+
import { ComparedFacesSplit } from './match_faces/compared_faces_split'
|
|
68
|
+
import { MatchFacesBackendException } from './match_faces/match_faces_backend_exception'
|
|
69
|
+
import { MatchFacesConfig, ProcessingMode } from './match_faces/match_faces_config'
|
|
70
|
+
import { MatchFacesDetectionFace } from './match_faces/match_faces_detection_face'
|
|
71
|
+
import { MatchFacesDetection } from './match_faces/match_faces_detection'
|
|
72
|
+
import { MatchFacesException, MatchFacesErrorCode } from './match_faces/match_faces_exception'
|
|
73
|
+
import { MatchFacesImage } from './match_faces/match_faces_image'
|
|
74
|
+
import { MatchFacesRequest } from './match_faces/match_faces_request'
|
|
75
|
+
import { MatchFacesResponse } from './match_faces/match_faces_response'
|
|
76
|
+
|
|
77
|
+
export { ComparedFace, ComparedFacesPair, ComparedFacesSplit, MatchFacesBackendException, MatchFacesConfig, ProcessingMode, MatchFacesDetectionFace, MatchFacesDetection, MatchFacesException, MatchFacesErrorCode, MatchFacesImage, MatchFacesRequest, MatchFacesResponse }
|
|
78
|
+
|
|
79
|
+
import { EditGroupPersonsRequest } from './person_database/edit_group_persons_request'
|
|
80
|
+
import { ImageUpload } from './person_database/image_upload'
|
|
81
|
+
import { PageableItemList } from './person_database/pageable_item_list'
|
|
82
|
+
import { PersonDatabase } from './person_database/person_database'
|
|
83
|
+
import { PersonGroup } from './person_database/person_group'
|
|
84
|
+
import { PersonImage } from './person_database/person_image'
|
|
85
|
+
import { Person } from './person_database/person'
|
|
86
|
+
import { SearchPersonDetection } from './person_database/search_person_detection'
|
|
87
|
+
import { SearchPersonImage } from './person_database/search_person_image'
|
|
88
|
+
import { SearchPersonRequest } from './person_database/search_person_request'
|
|
89
|
+
import { SearchPerson } from './person_database/search_person'
|
|
90
|
+
|
|
91
|
+
export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase, PersonGroup, PersonImage, Person, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, SearchPerson }
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
export class FaceSDK {
|
|
95
|
+
static get instance() { return FaceSDK._instance }
|
|
96
|
+
static _instance = new FaceSDK()
|
|
97
|
+
|
|
98
|
+
get version() { return this._version }
|
|
99
|
+
_version
|
|
100
|
+
|
|
101
|
+
get serviceUrl() { return this._serviceUrl }
|
|
102
|
+
_serviceUrl
|
|
103
|
+
set serviceUrl(val) {
|
|
104
|
+
this._serviceUrl = val
|
|
105
|
+
this._setServiceUrl(val)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
get localizationDictionary() { return this._localizationDictionary }
|
|
109
|
+
_localizationDictionary
|
|
110
|
+
set localizationDictionary(val) {
|
|
111
|
+
var temp = Object.assign({}, val);
|
|
112
|
+
Object.freeze(temp);
|
|
113
|
+
this._localizationDictionary = temp
|
|
114
|
+
this._setLocalizationDictionary(val)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
get requestHeaders() { return this._requestHeaders }
|
|
118
|
+
_requestHeaders
|
|
119
|
+
set requestHeaders(val) {
|
|
120
|
+
var temp = Object.assign({}, val);
|
|
121
|
+
Object.freeze(temp);
|
|
122
|
+
this._requestHeaders = temp
|
|
123
|
+
this._setRequestHeaders(val)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
get customization() { return this._customization }
|
|
127
|
+
_customization = new Customization()
|
|
128
|
+
set customization(val) {
|
|
129
|
+
this._customization = val
|
|
130
|
+
this._customization._apply()
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
set videoEncoderCompletion(completion) {
|
|
134
|
+
_setVideoEncoderCompletion(completion)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
get personDatabase() { return this._personDatabase }
|
|
138
|
+
_personDatabase = new PersonDatabase()
|
|
139
|
+
|
|
140
|
+
async isInitialized() {
|
|
141
|
+
return await exec("isInitialized", [])
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
async initialize(params) {
|
|
145
|
+
var response = await exec("initialize", [params?.config])
|
|
146
|
+
await this._onInit()
|
|
147
|
+
|
|
148
|
+
var jsonObject = JSON.parse(response)
|
|
149
|
+
var success = jsonObject["success"]
|
|
150
|
+
var error = jsonObject["error"]
|
|
151
|
+
return [success, InitException.fromJson(error)]
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
deinitialize() {
|
|
155
|
+
exec("deinitialize", [])
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
async startFaceCapture(params) {
|
|
159
|
+
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
160
|
+
var response = await exec("startFaceCapture", [params?.config])
|
|
161
|
+
return FaceCaptureResponse.fromJson(JSON.parse(response))
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
stopFaceCapture() {
|
|
165
|
+
exec("stopFaceCapture", [])
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
async startLiveness(params) {
|
|
169
|
+
_setCameraSwitchCallback(params?.cameraSwitchCallback)
|
|
170
|
+
_setLivenessNotificationCompletion(params?.notificationCompletion)
|
|
171
|
+
var response = await exec("startLiveness", [params?.config])
|
|
172
|
+
return LivenessResponse.fromJson(JSON.parse(response))
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
stopLiveness() {
|
|
176
|
+
exec("stopLiveness", [])
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
async matchFaces(request, params) {
|
|
180
|
+
var response = await exec("matchFaces", [request, params?.config])
|
|
181
|
+
return MatchFacesResponse.fromJson(JSON.parse(response))
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
185
|
+
var response = await exec("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
186
|
+
return ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
async detectFaces(request) {
|
|
190
|
+
var response = await exec("detectFaces", [request])
|
|
191
|
+
return DetectFacesResponse.fromJson(JSON.parse(response))
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async _onInit() {
|
|
195
|
+
this._version = await this._getVersion()
|
|
196
|
+
this._serviceUrl = await this._getServiceUrl()
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
async _getVersion() {
|
|
200
|
+
var response = await exec("getVersion", [])
|
|
201
|
+
return FaceSDKVersion.fromJson(JSON.parse(response))
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
async _getServiceUrl() {
|
|
205
|
+
return await exec("getServiceUrl", [])
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
_setServiceUrl(url) {
|
|
209
|
+
exec("setServiceUrl", [url])
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
_setLocalizationDictionary(dictionary) {
|
|
213
|
+
exec("setLocalizationDictionary", [dictionary])
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
_setRequestHeaders(dictionary) {
|
|
217
|
+
exec("setRequestHeaders", [dictionary])
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class FaceSDKVersion {
|
|
2
|
+
api
|
|
3
|
+
core
|
|
4
|
+
coreMode
|
|
5
|
+
|
|
6
|
+
static fromJson(jsonObject) {
|
|
7
|
+
if (jsonObject == null) return null
|
|
8
|
+
const result = new FaceSDKVersion()
|
|
9
|
+
|
|
10
|
+
result.api = jsonObject["api"]
|
|
11
|
+
result.core = jsonObject["core"]
|
|
12
|
+
result.coreMode = jsonObject["coreMode"]
|
|
13
|
+
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LicenseException } from "./license_exception"
|
|
2
|
+
|
|
3
|
+
export class InitException {
|
|
4
|
+
code
|
|
5
|
+
message
|
|
6
|
+
underlyingError
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null
|
|
10
|
+
const result = new InitException()
|
|
11
|
+
|
|
12
|
+
result.code = jsonObject["code"]
|
|
13
|
+
result.message = jsonObject["message"] ?? ""
|
|
14
|
+
result.underlyingError = LicenseException.fromJson(jsonObject["underlyingError"])
|
|
15
|
+
|
|
16
|
+
return result
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const InitErrorCode = {
|
|
21
|
+
IN_PROGRESS_ALREADY: 0,
|
|
22
|
+
MISSING_CORE: 1,
|
|
23
|
+
INTERNAL_CORE_ERROR: 2,
|
|
24
|
+
BAD_LICENSE: 3,
|
|
25
|
+
UNAVAILABLE: 4,
|
|
26
|
+
CONTEXT_IS_NULL: 100,
|
|
27
|
+
RESOURCE_DAT_ABSENT: 101,
|
|
28
|
+
LICENSE_IS_NULL: 102,
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export class LicenseException {
|
|
2
|
+
code
|
|
3
|
+
message
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new LicenseException()
|
|
8
|
+
|
|
9
|
+
result.code = jsonObject["code"]
|
|
10
|
+
result.message = jsonObject["message"] ?? ""
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const LicensingResultCode = {
|
|
17
|
+
OK: 0,
|
|
18
|
+
LICENSE_CORRUPTED: 1,
|
|
19
|
+
INVALID_DATE: 2,
|
|
20
|
+
INVALID_VERSION: 3,
|
|
21
|
+
INVALID_DEVICE_ID: 4,
|
|
22
|
+
INVALID_SYSTEM_OR_APP_ID: 5,
|
|
23
|
+
NO_CAPABILITIES: 6,
|
|
24
|
+
NO_AUTHENTICITY: 7,
|
|
25
|
+
LICENSE_ABSENT: 8,
|
|
26
|
+
NO_INTERNET: 9,
|
|
27
|
+
NO_DATABASE: 10,
|
|
28
|
+
DATABASE_INCORRECT: 11,
|
|
29
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LivenessNotification } from '../liveness/liveness_notification'
|
|
2
|
+
|
|
3
|
+
import { NativeModules, NativeEventEmitter } from './cordova'
|
|
4
|
+
const { RNFaceSDK } = NativeModules
|
|
5
|
+
var eventManager = new NativeEventEmitter(RNFaceSDK)
|
|
6
|
+
|
|
7
|
+
export async function exec(name, params) {
|
|
8
|
+
return RNFaceSDK.exec(name, params)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _setEvent(id, completion) {
|
|
12
|
+
eventManager.removeAllListeners(id)
|
|
13
|
+
if (completion != null)
|
|
14
|
+
eventManager.addListener(id, completion)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function _setCustomButtonTappedCompletion(completion) {
|
|
18
|
+
_setEvent("onCustomButtonTappedEvent", completion)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function _setVideoEncoderCompletion(completion) {
|
|
22
|
+
_setEvent("video_encoder_completion", (json) => {
|
|
23
|
+
var jsonObject = JSON.parse(json)
|
|
24
|
+
var transactionId = jsonObject["transactionId"]
|
|
25
|
+
var success = jsonObject["success"]
|
|
26
|
+
completion(transactionId, success)
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function _setLivenessNotificationCompletion(completion) {
|
|
31
|
+
_setEvent("livenessNotificationEvent", (json) => {
|
|
32
|
+
var livenessNotification = LivenessNotification.fromJson(JSON.parse(json))
|
|
33
|
+
completion(livenessNotification)
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function _setCameraSwitchCallback(completion) {
|
|
38
|
+
_setEvent("cameraSwitchEvent", completion)
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var _exec = (completion, params) => cordova.exec(completion, null, "FaceSDK", "exec", params)
|
|
2
|
+
|
|
3
|
+
export const NativeModules = {
|
|
4
|
+
RNFaceSDK: {
|
|
5
|
+
exec: async (name, params) => new Promise((resolve, _) => _exec(data => resolve(data), [name, ...params]))
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class NativeEventEmitter {
|
|
10
|
+
addListener(id, completion) {
|
|
11
|
+
_exec(completion, ["setEvent", id])
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
removeAllListeners(id) {
|
|
15
|
+
_exec(null, ["setEvent", id])
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export class LivenessBackendException {
|
|
2
|
+
code
|
|
3
|
+
message
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new LivenessBackendException()
|
|
8
|
+
|
|
9
|
+
result.code = jsonObject["code"]
|
|
10
|
+
result.message = jsonObject["message"] ?? ""
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const LivenessBackendErrorCode = {
|
|
17
|
+
UNDEFINED: -1,
|
|
18
|
+
NO_LICENSE: 200,
|
|
19
|
+
LOW_QUALITY: 231,
|
|
20
|
+
TRACK_BREAK: 246,
|
|
21
|
+
CLOSED_EYES_DETECTED: 230,
|
|
22
|
+
HIGH_ASYMMETRY: 232,
|
|
23
|
+
FACE_OVER_EMOTIONAL: 233,
|
|
24
|
+
SUNGLASSES_DETECTED: 234,
|
|
25
|
+
SMALL_AGE: 235,
|
|
26
|
+
HEADDRESS_DETECTED: 236,
|
|
27
|
+
MEDICINE_MASK_DETECTED: 239,
|
|
28
|
+
OCCLUSION_DETECTED: 240,
|
|
29
|
+
FOREHEAD_GLASSES_DETECTED: 242,
|
|
30
|
+
MOUTH_OPENED: 243,
|
|
31
|
+
ART_MASK_DETECTED: 244,
|
|
32
|
+
NOT_MATCHED: 237,
|
|
33
|
+
IMAGES_COUNT_LIMIT_EXCEEDED: 238,
|
|
34
|
+
ELECTRONIC_DEVICE_DETECTED: 245,
|
|
35
|
+
WRONG_GEO: 247,
|
|
36
|
+
WRONG_OF: 248,
|
|
37
|
+
WRONG_VIEW: 249,
|
|
38
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
|
|
4
|
+
export class LivenessConfig {
|
|
5
|
+
copyright
|
|
6
|
+
cameraSwitchEnabled
|
|
7
|
+
closeButtonEnabled
|
|
8
|
+
torchButtonEnabled
|
|
9
|
+
vibrateOnSteps
|
|
10
|
+
cameraPositionIOS
|
|
11
|
+
screenOrientation
|
|
12
|
+
cameraPositionAndroid
|
|
13
|
+
locationTrackingEnabled
|
|
14
|
+
attemptsCount
|
|
15
|
+
recordingProcess
|
|
16
|
+
livenessType
|
|
17
|
+
tag
|
|
18
|
+
skipStep
|
|
19
|
+
metadata
|
|
20
|
+
|
|
21
|
+
constructor(params) {
|
|
22
|
+
this.copyright = params?.copyright ?? true
|
|
23
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
24
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
25
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
26
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
27
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? CameraPosition.FRONT
|
|
28
|
+
this.screenOrientation = params?.screenOrientation ?? [ScreenOrientation.PORTRAIT]
|
|
29
|
+
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
30
|
+
this.attemptsCount = params?.attemptsCount ?? 0
|
|
31
|
+
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
32
|
+
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
33
|
+
this.skipStep = params?.skipStep ?? []
|
|
34
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
35
|
+
this.tag = params?.tag
|
|
36
|
+
this.metadata = params?.metadata
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const RecordingProcess = {
|
|
41
|
+
ASYNCHRONOUS_UPLOAD: 0,
|
|
42
|
+
SYNCHRONOUS_UPLOAD: 1,
|
|
43
|
+
NOT_UPLOAD: 2,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const LivenessType = {
|
|
47
|
+
ACTIVE: 0,
|
|
48
|
+
PASSIVE: 1,
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const LivenessSkipStep = {
|
|
52
|
+
ONBOARDING_STEP: 0,
|
|
53
|
+
SUCCESS_STEP: 1,
|
|
54
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LivenessBackendException } from "./liveness_backend_exception"
|
|
2
|
+
|
|
3
|
+
export class LivenessException {
|
|
4
|
+
code
|
|
5
|
+
message
|
|
6
|
+
underlyingError
|
|
7
|
+
|
|
8
|
+
static fromJson(jsonObject) {
|
|
9
|
+
if (jsonObject == null) return null
|
|
10
|
+
const result = new LivenessException()
|
|
11
|
+
|
|
12
|
+
result.code = jsonObject["code"]
|
|
13
|
+
result.message = jsonObject["message"] ?? ""
|
|
14
|
+
result.underlyingError = LivenessBackendException.fromJson(jsonObject["underlyingError"])
|
|
15
|
+
|
|
16
|
+
return result
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const LivenessErrorCode = {
|
|
21
|
+
NOT_INITIALIZED: 0,
|
|
22
|
+
NO_LICENSE: 1,
|
|
23
|
+
API_CALL_FAILED: 2,
|
|
24
|
+
SESSION_START_FAILED: 3,
|
|
25
|
+
CANCELLED: 4,
|
|
26
|
+
PROCESSING_TIMEOUT: 5,
|
|
27
|
+
PROCESSING_FAILED: 6,
|
|
28
|
+
PROCESSING_FRAME_FAILED: 7,
|
|
29
|
+
APPLICATION_INACTIVE: 8,
|
|
30
|
+
CONTEXT_IS_NULL: 9,
|
|
31
|
+
IN_PROGRESS_ALREADY: 10,
|
|
32
|
+
ZOOM_NOT_SUPPORTED: 11,
|
|
33
|
+
CAMERA_NO_PERMISSION: 12,
|
|
34
|
+
CAMERA_NOT_AVAILABLE: 13,
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LivenessResponse } from './liveness_response'
|
|
2
|
+
|
|
3
|
+
export class LivenessNotification {
|
|
4
|
+
status
|
|
5
|
+
response
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null
|
|
9
|
+
const result = new LivenessNotification()
|
|
10
|
+
|
|
11
|
+
result.status = jsonObject["status"]
|
|
12
|
+
result.response = LivenessResponse.fromJson(jsonObject["response"])
|
|
13
|
+
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const LivenessProcessStatus = {
|
|
19
|
+
START: 0,
|
|
20
|
+
PREPARING: 1,
|
|
21
|
+
NEW_SESSION: 2,
|
|
22
|
+
NEXT_STAGE: 3,
|
|
23
|
+
SECTOR_CHANGED: 4,
|
|
24
|
+
PROGRESS: 5,
|
|
25
|
+
LOW_BRIGHTNESS: 6,
|
|
26
|
+
FIT_FACE: 7,
|
|
27
|
+
MOVE_AWAY: 8,
|
|
28
|
+
MOVE_CLOSER: 9,
|
|
29
|
+
TURN_HEAD: 10,
|
|
30
|
+
PROCESSING: 11,
|
|
31
|
+
FAILED: 12,
|
|
32
|
+
RETRY: 13,
|
|
33
|
+
SUCCESS: 14,
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
import { LivenessException } from './liveness_exception'
|
|
3
|
+
|
|
4
|
+
export class LivenessResponse {
|
|
5
|
+
image
|
|
6
|
+
liveness
|
|
7
|
+
tag
|
|
8
|
+
transactionId
|
|
9
|
+
estimatedAge
|
|
10
|
+
error
|
|
11
|
+
|
|
12
|
+
static fromJson(jsonObject) {
|
|
13
|
+
if (jsonObject == null) return null
|
|
14
|
+
const result = new LivenessResponse()
|
|
15
|
+
|
|
16
|
+
result.image = jsonObject["image"]
|
|
17
|
+
result.liveness = jsonObject["liveness"]
|
|
18
|
+
result.tag = jsonObject["tag"]
|
|
19
|
+
result.transactionId = jsonObject["transactionId"]
|
|
20
|
+
result.estimatedAge = jsonObject["estimatedAge"]
|
|
21
|
+
result.error = LivenessException.fromJson(jsonObject["error"])
|
|
22
|
+
|
|
23
|
+
return result
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const LivenessStatus = {
|
|
28
|
+
PASSED: 0,
|
|
29
|
+
UNKNOWN: 1,
|
|
30
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MatchFacesImage } from './match_faces_image'
|
|
2
|
+
import { MatchFacesDetectionFace } from './match_faces_detection_face'
|
|
3
|
+
|
|
4
|
+
export class ComparedFace {
|
|
5
|
+
imageIndex
|
|
6
|
+
image
|
|
7
|
+
faceIndex
|
|
8
|
+
face
|
|
9
|
+
|
|
10
|
+
static fromJson(jsonObject) {
|
|
11
|
+
if (jsonObject == null) return null
|
|
12
|
+
const result = new ComparedFace()
|
|
13
|
+
|
|
14
|
+
result.imageIndex = jsonObject["imageIndex"]
|
|
15
|
+
result.image = MatchFacesImage.fromJson(jsonObject["image"])
|
|
16
|
+
result.faceIndex = jsonObject["faceIndex"]
|
|
17
|
+
result.face = MatchFacesDetectionFace.fromJson(jsonObject["face"])
|
|
18
|
+
|
|
19
|
+
return result
|
|
20
|
+
}
|
|
21
|
+
}
|