@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
package/www/cordova.js
ADDED
|
@@ -0,0 +1,3738 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ "./src/customization/camera_position.js":
|
|
6
|
+
/*!**********************************************!*\
|
|
7
|
+
!*** ./src/customization/camera_position.js ***!
|
|
8
|
+
\**********************************************/
|
|
9
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10
|
+
|
|
11
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
+
/* harmony export */ CameraPosition: () => (/* binding */ CameraPosition)
|
|
14
|
+
/* harmony export */ });
|
|
15
|
+
const CameraPosition = {
|
|
16
|
+
FRONT: 0,
|
|
17
|
+
BACK: 1,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/***/ }),
|
|
21
|
+
|
|
22
|
+
/***/ "./src/customization/customization.js":
|
|
23
|
+
/*!********************************************!*\
|
|
24
|
+
!*** ./src/customization/customization.js ***!
|
|
25
|
+
\********************************************/
|
|
26
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
27
|
+
|
|
28
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30
|
+
/* harmony export */ Customization: () => (/* binding */ Customization)
|
|
31
|
+
/* harmony export */ });
|
|
32
|
+
/* harmony import */ var _customization_colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./customization_colors */ "./src/customization/customization_colors.js");
|
|
33
|
+
/* harmony import */ var _customization_fonts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization_fonts */ "./src/customization/customization_fonts.js");
|
|
34
|
+
/* harmony import */ var _customization_images__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./customization_images */ "./src/customization/customization_images.js");
|
|
35
|
+
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
|
|
36
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class Customization {
|
|
44
|
+
get colors() { return this._colors }
|
|
45
|
+
_colors = new _customization_colors__WEBPACK_IMPORTED_MODULE_0__.CustomizationColors()
|
|
46
|
+
set colors(val) {
|
|
47
|
+
(this._colors = val)._apply(this)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get fonts() { return this._fonts }
|
|
51
|
+
_fonts = new _customization_fonts__WEBPACK_IMPORTED_MODULE_1__.CustomizationFonts()
|
|
52
|
+
set fonts(val) {
|
|
53
|
+
(this._fonts = val)._apply(this)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get images() { return this._images }
|
|
57
|
+
_images = new _customization_images__WEBPACK_IMPORTED_MODULE_2__.CustomizationImages()
|
|
58
|
+
set images(val) {
|
|
59
|
+
(this._images = val)._apply(this)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
get uiCustomizationLayer() { return this._uiCustomizationLayer }
|
|
63
|
+
_uiCustomizationLayer
|
|
64
|
+
set uiCustomizationLayer(val) {
|
|
65
|
+
var temp = Object.assign({}, val);
|
|
66
|
+
Object.freeze(temp);
|
|
67
|
+
this._uiCustomizationLayer = temp
|
|
68
|
+
this._set({ "uiCustomizationLayer": val })
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
set onCustomButtonTapped(completion) {
|
|
72
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_3__._setCustomButtonTappedCompletion)(completion)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static fromJson(jsonObject) {
|
|
76
|
+
var result = new Customization()
|
|
77
|
+
|
|
78
|
+
result.colors = _customization_colors__WEBPACK_IMPORTED_MODULE_0__.CustomizationColors.fromJson(jsonObject["colors"])
|
|
79
|
+
result.fonts = _customization_fonts__WEBPACK_IMPORTED_MODULE_1__.CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
80
|
+
result.images = _customization_images__WEBPACK_IMPORTED_MODULE_2__.CustomizationImages.fromJson(jsonObject["images"])
|
|
81
|
+
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
82
|
+
|
|
83
|
+
return result
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
toJson() {
|
|
87
|
+
return {
|
|
88
|
+
"colors": this.colors.toJson(),
|
|
89
|
+
"fonts": this.fonts.toJson(),
|
|
90
|
+
"images": this.images.toJson(),
|
|
91
|
+
"uiCustomizationLayer": this.uiCustomizationLayer
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
_set(json) {
|
|
96
|
+
if (this === _index__WEBPACK_IMPORTED_MODULE_4__.FaceSDK.instance.customization) {
|
|
97
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_3__.exec)("setCustomization", [json])
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
_apply() { this._set(toJson()) }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ "./src/customization/customization_colors.js":
|
|
107
|
+
/*!***************************************************!*\
|
|
108
|
+
!*** ./src/customization/customization_colors.js ***!
|
|
109
|
+
\***************************************************/
|
|
110
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
111
|
+
|
|
112
|
+
__webpack_require__.r(__webpack_exports__);
|
|
113
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114
|
+
/* harmony export */ CustomizationColors: () => (/* binding */ CustomizationColors)
|
|
115
|
+
/* harmony export */ });
|
|
116
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class CustomizationColors {
|
|
120
|
+
_onboardingScreenStartButtonBackground
|
|
121
|
+
set onboardingScreenStartButtonBackground(val) {
|
|
122
|
+
this._onboardingScreenStartButtonBackground = val
|
|
123
|
+
this._set({ "100": val })
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
_onboardingScreenStartButtonTitle
|
|
127
|
+
set onboardingScreenStartButtonTitle(val) {
|
|
128
|
+
this._onboardingScreenStartButtonTitle = val
|
|
129
|
+
this._set({ "101": val })
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
_onboardingScreenBackground
|
|
133
|
+
set onboardingScreenBackground(val) {
|
|
134
|
+
this._onboardingScreenBackground = val
|
|
135
|
+
this._set({ "102": val })
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
_onboardingScreenTitleLabelText
|
|
139
|
+
set onboardingScreenTitleLabelText(val) {
|
|
140
|
+
this._onboardingScreenTitleLabelText = val
|
|
141
|
+
this._set({ "103": val })
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
_onboardingScreenSubtitleLabelText
|
|
145
|
+
set onboardingScreenSubtitleLabelText(val) {
|
|
146
|
+
this._onboardingScreenSubtitleLabelText = val
|
|
147
|
+
this._set({ "104": val })
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
_onboardingScreenMessageLabelsText
|
|
151
|
+
set onboardingScreenMessageLabelsText(val) {
|
|
152
|
+
this._onboardingScreenMessageLabelsText = val
|
|
153
|
+
this._set({ "105": val })
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
_cameraScreenStrokeNormal
|
|
157
|
+
set cameraScreenStrokeNormal(val) {
|
|
158
|
+
this._cameraScreenStrokeNormal = val
|
|
159
|
+
this._set({ "200": val })
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
_cameraScreenStrokeActive
|
|
163
|
+
set cameraScreenStrokeActive(val) {
|
|
164
|
+
this._cameraScreenStrokeActive = val
|
|
165
|
+
this._set({ "201": val })
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
_cameraScreenSectorTarget
|
|
169
|
+
set cameraScreenSectorTarget(val) {
|
|
170
|
+
this._cameraScreenSectorTarget = val
|
|
171
|
+
this._set({ "202": val })
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
_cameraScreenSectorActive
|
|
175
|
+
set cameraScreenSectorActive(val) {
|
|
176
|
+
this._cameraScreenSectorActive = val
|
|
177
|
+
this._set({ "203": val })
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
_cameraScreenFrontHintLabelBackground
|
|
181
|
+
set cameraScreenFrontHintLabelBackground(val) {
|
|
182
|
+
this._cameraScreenFrontHintLabelBackground = val
|
|
183
|
+
this._set({ "204": val })
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
_cameraScreenFrontHintLabelText
|
|
187
|
+
set cameraScreenFrontHintLabelText(val) {
|
|
188
|
+
this._cameraScreenFrontHintLabelText = val
|
|
189
|
+
this._set({ "205": val })
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
_cameraScreenBackHintLabelBackground
|
|
193
|
+
set cameraScreenBackHintLabelBackground(val) {
|
|
194
|
+
this._cameraScreenBackHintLabelBackground = val
|
|
195
|
+
this._set({ "206": val })
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
_cameraScreenBackHintLabelText
|
|
199
|
+
set cameraScreenBackHintLabelText(val) {
|
|
200
|
+
this._cameraScreenBackHintLabelText = val
|
|
201
|
+
this._set({ "207": val })
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
_cameraScreenLightToolbarTint
|
|
205
|
+
set cameraScreenLightToolbarTint(val) {
|
|
206
|
+
this._cameraScreenLightToolbarTint = val
|
|
207
|
+
this._set({ "208": val })
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
_cameraScreenDarkToolbarTint
|
|
211
|
+
set cameraScreenDarkToolbarTint(val) {
|
|
212
|
+
this._cameraScreenDarkToolbarTint = val
|
|
213
|
+
this._set({ "209": val })
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
_retryScreenBackground
|
|
217
|
+
set retryScreenBackground(val) {
|
|
218
|
+
this._retryScreenBackground = val
|
|
219
|
+
this._set({ "300": val })
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
_retryScreenRetryButtonBackground
|
|
223
|
+
set retryScreenRetryButtonBackground(val) {
|
|
224
|
+
this._retryScreenRetryButtonBackground = val
|
|
225
|
+
this._set({ "301": val })
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
_retryScreenRetryButtonTitle
|
|
229
|
+
set retryScreenRetryButtonTitle(val) {
|
|
230
|
+
this._retryScreenRetryButtonTitle = val
|
|
231
|
+
this._set({ "302": val })
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
_retryScreenTitleLabelText
|
|
235
|
+
set retryScreenTitleLabelText(val) {
|
|
236
|
+
this._retryScreenTitleLabelText = val
|
|
237
|
+
this._set({ "303": val })
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
_retryScreenSubtitleLabelText
|
|
241
|
+
set retryScreenSubtitleLabelText(val) {
|
|
242
|
+
this._retryScreenSubtitleLabelText = val
|
|
243
|
+
this._set({ "304": val })
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
_retryScreenHintLabelsText
|
|
247
|
+
set retryScreenHintLabelsText(val) {
|
|
248
|
+
this._retryScreenHintLabelsText = val
|
|
249
|
+
this._set({ "305": val })
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
_processingScreenBackground
|
|
253
|
+
set processingScreenBackground(val) {
|
|
254
|
+
this._processingScreenBackground = val
|
|
255
|
+
this._set({ "400": val })
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
_processingScreenProgress
|
|
259
|
+
set processingScreenProgress(val) {
|
|
260
|
+
this._processingScreenProgress = val
|
|
261
|
+
this._set({ "401": val })
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
_processingScreenTitleLabel
|
|
265
|
+
set processingScreenTitleLabel(val) {
|
|
266
|
+
this._processingScreenTitleLabel = val
|
|
267
|
+
this._set({ "402": val })
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
_successScreenBackground
|
|
271
|
+
set successScreenBackground(val) {
|
|
272
|
+
this._successScreenBackground = val
|
|
273
|
+
this._set({ "500": val })
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
static fromJson(jsonObject) {
|
|
277
|
+
var result = new CustomizationColors()
|
|
278
|
+
|
|
279
|
+
result._onboardingScreenStartButtonBackground = jsonObject["100"]
|
|
280
|
+
result._onboardingScreenStartButtonTitle = jsonObject["101"]
|
|
281
|
+
result._onboardingScreenBackground = jsonObject["102"]
|
|
282
|
+
result._onboardingScreenTitleLabelText = jsonObject["103"]
|
|
283
|
+
result._onboardingScreenSubtitleLabelText = jsonObject["104"]
|
|
284
|
+
result._onboardingScreenMessageLabelsText = jsonObject["105"]
|
|
285
|
+
result._cameraScreenStrokeNormal = jsonObject["200"]
|
|
286
|
+
result._cameraScreenStrokeActive = jsonObject["201"]
|
|
287
|
+
result._cameraScreenSectorTarget = jsonObject["202"]
|
|
288
|
+
result._cameraScreenSectorActive = jsonObject["203"]
|
|
289
|
+
result._cameraScreenFrontHintLabelBackground = jsonObject["204"]
|
|
290
|
+
result._cameraScreenFrontHintLabelText = jsonObject["205"]
|
|
291
|
+
result._cameraScreenBackHintLabelBackground = jsonObject["206"]
|
|
292
|
+
result._cameraScreenBackHintLabelText = jsonObject["207"]
|
|
293
|
+
result._cameraScreenLightToolbarTint = jsonObject["208"]
|
|
294
|
+
result._cameraScreenDarkToolbarTint = jsonObject["209"]
|
|
295
|
+
result._retryScreenBackground = jsonObject["300"]
|
|
296
|
+
result._retryScreenRetryButtonBackground = jsonObject["301"]
|
|
297
|
+
result._retryScreenRetryButtonTitle = jsonObject["302"]
|
|
298
|
+
result._retryScreenTitleLabelText = jsonObject["303"]
|
|
299
|
+
result._retryScreenSubtitleLabelText = jsonObject["304"]
|
|
300
|
+
result._retryScreenHintLabelsText = jsonObject["305"]
|
|
301
|
+
result._processingScreenBackground = jsonObject["400"]
|
|
302
|
+
result._processingScreenProgress = jsonObject["401"]
|
|
303
|
+
result._processingScreenTitleLabel = jsonObject["402"]
|
|
304
|
+
result._successScreenBackground = jsonObject["500"]
|
|
305
|
+
|
|
306
|
+
return result
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
toJson() {
|
|
310
|
+
return {
|
|
311
|
+
"100": this._onboardingScreenStartButtonBackground,
|
|
312
|
+
"101": this._onboardingScreenStartButtonTitle,
|
|
313
|
+
"102": this._onboardingScreenBackground,
|
|
314
|
+
"103": this._onboardingScreenTitleLabelText,
|
|
315
|
+
"104": this._onboardingScreenSubtitleLabelText,
|
|
316
|
+
"105": this._onboardingScreenMessageLabelsText,
|
|
317
|
+
"200": this._cameraScreenStrokeNormal,
|
|
318
|
+
"201": this._cameraScreenStrokeActive,
|
|
319
|
+
"202": this._cameraScreenSectorTarget,
|
|
320
|
+
"203": this._cameraScreenSectorActive,
|
|
321
|
+
"204": this._cameraScreenFrontHintLabelBackground,
|
|
322
|
+
"205": this._cameraScreenFrontHintLabelText,
|
|
323
|
+
"206": this._cameraScreenBackHintLabelBackground,
|
|
324
|
+
"207": this._cameraScreenBackHintLabelText,
|
|
325
|
+
"208": this._cameraScreenLightToolbarTint,
|
|
326
|
+
"209": this._cameraScreenDarkToolbarTint,
|
|
327
|
+
"300": this._retryScreenBackground,
|
|
328
|
+
"301": this._retryScreenRetryButtonBackground,
|
|
329
|
+
"302": this._retryScreenRetryButtonTitle,
|
|
330
|
+
"303": this._retryScreenTitleLabelText,
|
|
331
|
+
"304": this._retryScreenSubtitleLabelText,
|
|
332
|
+
"305": this._retryScreenHintLabelsText,
|
|
333
|
+
"400": this._processingScreenBackground,
|
|
334
|
+
"401": this._processingScreenProgress,
|
|
335
|
+
"402": this._processingScreenTitleLabel,
|
|
336
|
+
"500": this._successScreenBackground,
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
_set(json) {
|
|
341
|
+
var parentJson = { "colors": json }
|
|
342
|
+
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
343
|
+
if (this === parent.colors) parent._set(parentJson)
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
_apply() {
|
|
347
|
+
this._set(this.toJson())
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/***/ }),
|
|
352
|
+
|
|
353
|
+
/***/ "./src/customization/customization_fonts.js":
|
|
354
|
+
/*!**************************************************!*\
|
|
355
|
+
!*** ./src/customization/customization_fonts.js ***!
|
|
356
|
+
\**************************************************/
|
|
357
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
358
|
+
|
|
359
|
+
__webpack_require__.r(__webpack_exports__);
|
|
360
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
361
|
+
/* harmony export */ CustomizationFonts: () => (/* binding */ CustomizationFonts)
|
|
362
|
+
/* harmony export */ });
|
|
363
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
364
|
+
/* harmony import */ var _font__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./font */ "./src/customization/font.js");
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
class CustomizationFonts {
|
|
369
|
+
_onboardingScreenStartButton
|
|
370
|
+
set onboardingScreenStartButton(val) {
|
|
371
|
+
this._onboardingScreenStartButton = val
|
|
372
|
+
this._set({ "100": val })
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
_onboardingScreenTitleLabel
|
|
376
|
+
set onboardingScreenTitleLabel(val) {
|
|
377
|
+
this._onboardingScreenTitleLabel = val
|
|
378
|
+
this._set({ "101": val })
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
_onboardingScreenSubtitleLabel
|
|
382
|
+
set onboardingScreenSubtitleLabel(val) {
|
|
383
|
+
this._onboardingScreenSubtitleLabel = val
|
|
384
|
+
this._set({ "102": val })
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
_onboardingScreenMessageLabels
|
|
388
|
+
set onboardingScreenMessageLabels(val) {
|
|
389
|
+
this._onboardingScreenMessageLabels = val
|
|
390
|
+
this._set({ "103": val })
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
_cameraScreenHintLabel
|
|
394
|
+
set cameraScreenHintLabel(val) {
|
|
395
|
+
this._cameraScreenHintLabel = val
|
|
396
|
+
this._set({ "200": val })
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
_retryScreenRetryButton
|
|
400
|
+
set retryScreenRetryButton(val) {
|
|
401
|
+
this._retryScreenRetryButton = val
|
|
402
|
+
this._set({ "300": val })
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
_retryScreenTitleLabel
|
|
406
|
+
set retryScreenTitleLabel(val) {
|
|
407
|
+
this._retryScreenTitleLabel = val
|
|
408
|
+
this._set({ "301": val })
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
_retryScreenSubtitleLabel
|
|
412
|
+
set retryScreenSubtitleLabel(val) {
|
|
413
|
+
this._retryScreenSubtitleLabel = val
|
|
414
|
+
this._set({ "302": val })
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
_retryScreenHintLabels
|
|
418
|
+
set retryScreenHintLabels(val) {
|
|
419
|
+
this._retryScreenHintLabels = val
|
|
420
|
+
this._set({ "303": val })
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
_processingScreenLabel
|
|
424
|
+
set processingScreenLabel(val) {
|
|
425
|
+
this._processingScreenLabel = val
|
|
426
|
+
this._set({ "400": val })
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
static fromJson(jsonObject) {
|
|
430
|
+
var result = new CustomizationFonts()
|
|
431
|
+
|
|
432
|
+
result._onboardingScreenStartButton = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["100"])
|
|
433
|
+
result._onboardingScreenTitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["101"])
|
|
434
|
+
result._onboardingScreenSubtitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["102"])
|
|
435
|
+
result._onboardingScreenMessageLabels = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["103"])
|
|
436
|
+
result._cameraScreenHintLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["200"])
|
|
437
|
+
result._retryScreenRetryButton = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["300"])
|
|
438
|
+
result._retryScreenTitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["301"])
|
|
439
|
+
result._retryScreenSubtitleLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["302"])
|
|
440
|
+
result._retryScreenHintLabels = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["303"])
|
|
441
|
+
result._processingScreenLabel = _font__WEBPACK_IMPORTED_MODULE_1__.Font.fromJson(jsonObject["400"])
|
|
442
|
+
|
|
443
|
+
return result
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
toJson() {
|
|
447
|
+
return {
|
|
448
|
+
"100": this._onboardingScreenStartButton,
|
|
449
|
+
"101": this._onboardingScreenTitleLabel,
|
|
450
|
+
"102": this._onboardingScreenSubtitleLabel,
|
|
451
|
+
"103": this._onboardingScreenMessageLabels,
|
|
452
|
+
"200": this._cameraScreenHintLabel,
|
|
453
|
+
"300": this._retryScreenRetryButton,
|
|
454
|
+
"301": this._retryScreenTitleLabel,
|
|
455
|
+
"302": this._retryScreenSubtitleLabel,
|
|
456
|
+
"303": this._retryScreenHintLabels,
|
|
457
|
+
"400": this._processingScreenLabel,
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
_set(json) {
|
|
462
|
+
var parentJson = { "fonts": json }
|
|
463
|
+
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
464
|
+
if (this === parent.fonts) parent._set(parentJson)
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
_apply() {
|
|
468
|
+
this._set(toJson())
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/***/ }),
|
|
473
|
+
|
|
474
|
+
/***/ "./src/customization/customization_images.js":
|
|
475
|
+
/*!***************************************************!*\
|
|
476
|
+
!*** ./src/customization/customization_images.js ***!
|
|
477
|
+
\***************************************************/
|
|
478
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
479
|
+
|
|
480
|
+
__webpack_require__.r(__webpack_exports__);
|
|
481
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
482
|
+
/* harmony export */ CustomizationImages: () => (/* binding */ CustomizationImages)
|
|
483
|
+
/* harmony export */ });
|
|
484
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./src/index.js");
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
class CustomizationImages {
|
|
488
|
+
_onboardingScreenCloseButton
|
|
489
|
+
set onboardingScreenCloseButton(val) {
|
|
490
|
+
this._onboardingScreenCloseButton = val
|
|
491
|
+
this._set({ "100": val })
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
_onboardingScreenIllumination
|
|
495
|
+
set onboardingScreenIllumination(val) {
|
|
496
|
+
this._onboardingScreenIllumination = val
|
|
497
|
+
this._set({ "101": val })
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
_onboardingScreenAccessories
|
|
501
|
+
set onboardingScreenAccessories(val) {
|
|
502
|
+
this._onboardingScreenAccessories = val
|
|
503
|
+
this._set({ "102": val })
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
_onboardingScreenCameraLevel
|
|
507
|
+
set onboardingScreenCameraLevel(val) {
|
|
508
|
+
this._onboardingScreenCameraLevel = val
|
|
509
|
+
this._set({ "103": val })
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
_cameraScreenCloseButton
|
|
513
|
+
set cameraScreenCloseButton(val) {
|
|
514
|
+
this._cameraScreenCloseButton = val
|
|
515
|
+
this._set({ "200": val })
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
_cameraScreenLightOnButton
|
|
519
|
+
set cameraScreenLightOnButton(val) {
|
|
520
|
+
this._cameraScreenLightOnButton = val
|
|
521
|
+
this._set({ "201": val })
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
_cameraScreenLightOffButton
|
|
525
|
+
set cameraScreenLightOffButton(val) {
|
|
526
|
+
this._cameraScreenLightOffButton = val
|
|
527
|
+
this._set({ "202": val })
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
_cameraScreenSwitchButton
|
|
531
|
+
set cameraScreenSwitchButton(val) {
|
|
532
|
+
this._cameraScreenSwitchButton = val
|
|
533
|
+
this._set({ "203": val })
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
_retryScreenCloseButton
|
|
537
|
+
set retryScreenCloseButton(val) {
|
|
538
|
+
this._retryScreenCloseButton = val
|
|
539
|
+
this._set({ "300": val })
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
_retryScreenHintEnvironment
|
|
543
|
+
set retryScreenHintEnvironment(val) {
|
|
544
|
+
this._retryScreenHintEnvironment = val
|
|
545
|
+
this._set({ "301": val })
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
_retryScreenHintSubject
|
|
549
|
+
set retryScreenHintSubject(val) {
|
|
550
|
+
this._retryScreenHintSubject = val
|
|
551
|
+
this._set({ "302": val })
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
_processingScreenCloseButton
|
|
555
|
+
set processingScreenCloseButton(val) {
|
|
556
|
+
this._processingScreenCloseButton = val
|
|
557
|
+
this._set({ "400": val })
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
_successScreenImage
|
|
561
|
+
set successScreenImage(val) {
|
|
562
|
+
this._successScreenImage = val
|
|
563
|
+
this._set({ "500": val })
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
static fromJson(jsonObject) {
|
|
567
|
+
var result = new CustomizationImages()
|
|
568
|
+
|
|
569
|
+
result._onboardingScreenCloseButton = jsonObject["100"]
|
|
570
|
+
result._onboardingScreenIllumination = jsonObject["101"]
|
|
571
|
+
result._onboardingScreenAccessories = jsonObject["102"]
|
|
572
|
+
result._onboardingScreenCameraLevel = jsonObject["103"]
|
|
573
|
+
result._cameraScreenCloseButton = jsonObject["200"]
|
|
574
|
+
result._cameraScreenLightOnButton = jsonObject["201"]
|
|
575
|
+
result._cameraScreenLightOffButton = jsonObject["202"]
|
|
576
|
+
result._cameraScreenSwitchButton = jsonObject["203"]
|
|
577
|
+
result._retryScreenCloseButton = jsonObject["300"]
|
|
578
|
+
result._retryScreenHintEnvironment = jsonObject["301"]
|
|
579
|
+
result._retryScreenHintSubject = jsonObject["302"]
|
|
580
|
+
result._processingScreenCloseButton = jsonObject["400"]
|
|
581
|
+
result._successScreenImage = jsonObject["500"]
|
|
582
|
+
|
|
583
|
+
return result
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
toJson() {
|
|
587
|
+
return {
|
|
588
|
+
"100": this._onboardingScreenCloseButton,
|
|
589
|
+
"101": this._onboardingScreenIllumination,
|
|
590
|
+
"102": this._onboardingScreenAccessories,
|
|
591
|
+
"103": this._onboardingScreenCameraLevel,
|
|
592
|
+
"200": this._cameraScreenCloseButton,
|
|
593
|
+
"201": this._cameraScreenLightOnButton,
|
|
594
|
+
"202": this._cameraScreenLightOffButton,
|
|
595
|
+
"203": this._cameraScreenSwitchButton,
|
|
596
|
+
"300": this._retryScreenCloseButton,
|
|
597
|
+
"301": this._retryScreenHintEnvironment,
|
|
598
|
+
"302": this._retryScreenHintSubject,
|
|
599
|
+
"400": this._processingScreenCloseButton,
|
|
600
|
+
"500": this._successScreenImage,
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
_set(json) {
|
|
605
|
+
var parentJson = { "images": json }
|
|
606
|
+
var parent = _index__WEBPACK_IMPORTED_MODULE_0__.FaceSDK.instance.customization
|
|
607
|
+
if (this === parent.images) parent._set(parentJson)
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
_apply() {
|
|
611
|
+
this._set(toJson())
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
/***/ }),
|
|
617
|
+
|
|
618
|
+
/***/ "./src/customization/font.js":
|
|
619
|
+
/*!***********************************!*\
|
|
620
|
+
!*** ./src/customization/font.js ***!
|
|
621
|
+
\***********************************/
|
|
622
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
623
|
+
|
|
624
|
+
__webpack_require__.r(__webpack_exports__);
|
|
625
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
626
|
+
/* harmony export */ Font: () => (/* binding */ Font),
|
|
627
|
+
/* harmony export */ FontStyle: () => (/* binding */ FontStyle)
|
|
628
|
+
/* harmony export */ });
|
|
629
|
+
class Font {
|
|
630
|
+
name
|
|
631
|
+
style
|
|
632
|
+
size
|
|
633
|
+
|
|
634
|
+
static fromJson(jsonObject) {
|
|
635
|
+
if (jsonObject == null) return null
|
|
636
|
+
const result = new Font()
|
|
637
|
+
|
|
638
|
+
result.name = jsonObject["name"]
|
|
639
|
+
result.style = jsonObject["style"]
|
|
640
|
+
result.size = jsonObject["size"]
|
|
641
|
+
|
|
642
|
+
return result
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
const FontStyle = {
|
|
647
|
+
NORMAL: 0,
|
|
648
|
+
BOLD: 1,
|
|
649
|
+
ITALIC: 2,
|
|
650
|
+
BOLD_ITALIC: 3,
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/***/ }),
|
|
654
|
+
|
|
655
|
+
/***/ "./src/customization/screen_orientation.js":
|
|
656
|
+
/*!*************************************************!*\
|
|
657
|
+
!*** ./src/customization/screen_orientation.js ***!
|
|
658
|
+
\*************************************************/
|
|
659
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
660
|
+
|
|
661
|
+
__webpack_require__.r(__webpack_exports__);
|
|
662
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
663
|
+
/* harmony export */ ScreenOrientation: () => (/* binding */ ScreenOrientation)
|
|
664
|
+
/* harmony export */ });
|
|
665
|
+
const ScreenOrientation = {
|
|
666
|
+
PORTRAIT: 0,
|
|
667
|
+
LANDSCAPE: 1,
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/***/ }),
|
|
671
|
+
|
|
672
|
+
/***/ "./src/detect_faces/detect_face_result.js":
|
|
673
|
+
/*!************************************************!*\
|
|
674
|
+
!*** ./src/detect_faces/detect_face_result.js ***!
|
|
675
|
+
\************************************************/
|
|
676
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
677
|
+
|
|
678
|
+
__webpack_require__.r(__webpack_exports__);
|
|
679
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
680
|
+
/* harmony export */ DetectFaceResult: () => (/* binding */ DetectFaceResult)
|
|
681
|
+
/* harmony export */ });
|
|
682
|
+
/* harmony import */ var _detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_faces_attribute_result */ "./src/detect_faces/detect_faces_attribute_result.js");
|
|
683
|
+
/* harmony import */ var _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_quality/image_quality_result */ "./src/image_quality/image_quality_result.js");
|
|
684
|
+
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
685
|
+
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../image_params/point */ "./src/image_params/point.js");
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
class DetectFaceResult {
|
|
692
|
+
quality
|
|
693
|
+
attributes
|
|
694
|
+
crop
|
|
695
|
+
faceRect
|
|
696
|
+
originalRect
|
|
697
|
+
landmarks
|
|
698
|
+
isQualityCompliant
|
|
699
|
+
|
|
700
|
+
static fromJson(jsonObject) {
|
|
701
|
+
if (jsonObject == null) return null
|
|
702
|
+
const result = new DetectFaceResult()
|
|
703
|
+
|
|
704
|
+
result.quality = []
|
|
705
|
+
if (jsonObject["quality"] != null)
|
|
706
|
+
for (const item of jsonObject["quality"])
|
|
707
|
+
result.quality.push(_image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_1__.ImageQualityResult.fromJson(item))
|
|
708
|
+
result.attributes = []
|
|
709
|
+
if (jsonObject["attributes"] != null)
|
|
710
|
+
for (const item of jsonObject["attributes"])
|
|
711
|
+
result.attributes.push(_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_0__.DetectFacesAttributeResult.fromJson(item))
|
|
712
|
+
result.crop = jsonObject["crop"]
|
|
713
|
+
result.faceRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_2__.Rect.fromJson(jsonObject["faceRect"])
|
|
714
|
+
result.originalRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_2__.Rect.fromJson(jsonObject["originalRect"])
|
|
715
|
+
result.landmarks = []
|
|
716
|
+
if (jsonObject["landmarks"] != null)
|
|
717
|
+
for (const item of jsonObject["landmarks"])
|
|
718
|
+
result.landmarks.push(_image_params_point__WEBPACK_IMPORTED_MODULE_3__.Point.fromJson(item))
|
|
719
|
+
result.isQualityCompliant = jsonObject["isQualityCompliant"]
|
|
720
|
+
|
|
721
|
+
return result
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/***/ }),
|
|
726
|
+
|
|
727
|
+
/***/ "./src/detect_faces/detect_faces_attribute.js":
|
|
728
|
+
/*!****************************************************!*\
|
|
729
|
+
!*** ./src/detect_faces/detect_faces_attribute.js ***!
|
|
730
|
+
\****************************************************/
|
|
731
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
732
|
+
|
|
733
|
+
__webpack_require__.r(__webpack_exports__);
|
|
734
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
735
|
+
/* harmony export */ DetectFacesAttribute: () => (/* binding */ DetectFacesAttribute)
|
|
736
|
+
/* harmony export */ });
|
|
737
|
+
const DetectFacesAttribute = {
|
|
738
|
+
AGE: "Age",
|
|
739
|
+
EYE_RIGHT: "EyeRight",
|
|
740
|
+
EYE_LEFT: "EyeLeft",
|
|
741
|
+
EMOTION: "Emotion",
|
|
742
|
+
SMILE: "Smile",
|
|
743
|
+
GLASSES: "Glasses",
|
|
744
|
+
HEAD_COVERING: "HeadCovering",
|
|
745
|
+
FOREHEAD_COVERING: "ForeheadCovering",
|
|
746
|
+
MOUTH: "Mouth",
|
|
747
|
+
MEDICAL_MASK: "MedicalMask",
|
|
748
|
+
OCCLUSION: "Occlusion",
|
|
749
|
+
STRONG_MAKEUP: "StrongMakeup",
|
|
750
|
+
HEADPHONES: "Headphones",
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/***/ }),
|
|
754
|
+
|
|
755
|
+
/***/ "./src/detect_faces/detect_faces_attribute_result.js":
|
|
756
|
+
/*!***********************************************************!*\
|
|
757
|
+
!*** ./src/detect_faces/detect_faces_attribute_result.js ***!
|
|
758
|
+
\***********************************************************/
|
|
759
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
760
|
+
|
|
761
|
+
__webpack_require__.r(__webpack_exports__);
|
|
762
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
763
|
+
/* harmony export */ DetectFacesAttributeResult: () => (/* binding */ DetectFacesAttributeResult)
|
|
764
|
+
/* harmony export */ });
|
|
765
|
+
/* harmony import */ var _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_quality/image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
class DetectFacesAttributeResult {
|
|
769
|
+
attribute
|
|
770
|
+
value
|
|
771
|
+
range
|
|
772
|
+
confidence
|
|
773
|
+
|
|
774
|
+
static fromJson(jsonObject) {
|
|
775
|
+
if (jsonObject == null) return null
|
|
776
|
+
const result = new DetectFacesAttributeResult()
|
|
777
|
+
|
|
778
|
+
result.attribute = jsonObject["attribute"]
|
|
779
|
+
result.value = jsonObject["value"]
|
|
780
|
+
result.range = _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["range"])
|
|
781
|
+
result.confidence = jsonObject["confidence"]
|
|
782
|
+
|
|
783
|
+
return result
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/***/ }),
|
|
788
|
+
|
|
789
|
+
/***/ "./src/detect_faces/detect_faces_backend_exception.js":
|
|
790
|
+
/*!************************************************************!*\
|
|
791
|
+
!*** ./src/detect_faces/detect_faces_backend_exception.js ***!
|
|
792
|
+
\************************************************************/
|
|
793
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
794
|
+
|
|
795
|
+
__webpack_require__.r(__webpack_exports__);
|
|
796
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
797
|
+
/* harmony export */ DetectFacesBackendErrorCode: () => (/* binding */ DetectFacesBackendErrorCode),
|
|
798
|
+
/* harmony export */ DetectFacesBackendException: () => (/* binding */ DetectFacesBackendException)
|
|
799
|
+
/* harmony export */ });
|
|
800
|
+
class DetectFacesBackendException {
|
|
801
|
+
code
|
|
802
|
+
message
|
|
803
|
+
|
|
804
|
+
static fromJson(jsonObject) {
|
|
805
|
+
if (jsonObject == null) return null
|
|
806
|
+
const result = new DetectFacesBackendException()
|
|
807
|
+
|
|
808
|
+
result.code = jsonObject["code"]
|
|
809
|
+
result.message = jsonObject["message"] ?? ""
|
|
810
|
+
|
|
811
|
+
return result
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
const DetectFacesBackendErrorCode = {
|
|
816
|
+
FR_FACE_NOT_DETECTED: 2,
|
|
817
|
+
FACER_NO_LICENSE: 200,
|
|
818
|
+
FACER_IS_NOT_INITIALIZED: 201,
|
|
819
|
+
FACER_COMMAND_IS_NOT_SUPPORTED: 202,
|
|
820
|
+
FACER_COMMAND_PARAMS_READ_ERROR: 203,
|
|
821
|
+
UNDEFINED: -1,
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/***/ }),
|
|
825
|
+
|
|
826
|
+
/***/ "./src/detect_faces/detect_faces_config.js":
|
|
827
|
+
/*!*************************************************!*\
|
|
828
|
+
!*** ./src/detect_faces/detect_faces_config.js ***!
|
|
829
|
+
\*************************************************/
|
|
830
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
831
|
+
|
|
832
|
+
__webpack_require__.r(__webpack_exports__);
|
|
833
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
834
|
+
/* harmony export */ DetectFacesConfig: () => (/* binding */ DetectFacesConfig)
|
|
835
|
+
/* harmony export */ });
|
|
836
|
+
class DetectFacesConfig {
|
|
837
|
+
attributes
|
|
838
|
+
customQuality
|
|
839
|
+
outputImageParams
|
|
840
|
+
onlyCentralFace
|
|
841
|
+
|
|
842
|
+
constructor(params) {
|
|
843
|
+
this.onlyCentralFace = false
|
|
844
|
+
this.attributes = params?.attributes
|
|
845
|
+
this.customQuality = params?.customQuality
|
|
846
|
+
this.outputImageParams = params?.outputImageParams
|
|
847
|
+
this.onlyCentralFace = params?.onlyCentralFace ?? this.onlyCentralFace
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/***/ }),
|
|
852
|
+
|
|
853
|
+
/***/ "./src/detect_faces/detect_faces_exception.js":
|
|
854
|
+
/*!****************************************************!*\
|
|
855
|
+
!*** ./src/detect_faces/detect_faces_exception.js ***!
|
|
856
|
+
\****************************************************/
|
|
857
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
858
|
+
|
|
859
|
+
__webpack_require__.r(__webpack_exports__);
|
|
860
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
861
|
+
/* harmony export */ DetectFacesErrorCode: () => (/* binding */ DetectFacesErrorCode),
|
|
862
|
+
/* harmony export */ DetectFacesException: () => (/* binding */ DetectFacesException)
|
|
863
|
+
/* harmony export */ });
|
|
864
|
+
/* harmony import */ var _detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_faces_backend_exception */ "./src/detect_faces/detect_faces_backend_exception.js");
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
class DetectFacesException {
|
|
868
|
+
code
|
|
869
|
+
message
|
|
870
|
+
underlyingError
|
|
871
|
+
|
|
872
|
+
static fromJson(jsonObject) {
|
|
873
|
+
if (jsonObject == null) return null
|
|
874
|
+
const result = new DetectFacesException()
|
|
875
|
+
|
|
876
|
+
result.code = jsonObject["code"]
|
|
877
|
+
result.message = jsonObject["message"] ?? ""
|
|
878
|
+
result.underlyingError = _detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__.DetectFacesBackendException.fromJson(jsonObject["underlyingError"])
|
|
879
|
+
|
|
880
|
+
return result
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
const DetectFacesErrorCode = {
|
|
885
|
+
IMAGE_EMPTY: 0,
|
|
886
|
+
FR_FACE_NOT_DETECTED: 1,
|
|
887
|
+
FACER_NO_LICENSE: 2,
|
|
888
|
+
FACER_IS_NOT_INITIALIZED: 3,
|
|
889
|
+
FACER_COMMAND_IS_NOT_SUPPORTED: 4,
|
|
890
|
+
FACER_COMMAND_PARAMS_READ_ERROR: 5,
|
|
891
|
+
PROCESSING_FAILED: 6,
|
|
892
|
+
REQUEST_FAILED: 7,
|
|
893
|
+
API_CALL_FAILED: 8,
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/***/ }),
|
|
897
|
+
|
|
898
|
+
/***/ "./src/detect_faces/detect_faces_request.js":
|
|
899
|
+
/*!**************************************************!*\
|
|
900
|
+
!*** ./src/detect_faces/detect_faces_request.js ***!
|
|
901
|
+
\**************************************************/
|
|
902
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
903
|
+
|
|
904
|
+
__webpack_require__.r(__webpack_exports__);
|
|
905
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
906
|
+
/* harmony export */ DetectFacesRequest: () => (/* binding */ DetectFacesRequest)
|
|
907
|
+
/* harmony export */ });
|
|
908
|
+
class DetectFacesRequest {
|
|
909
|
+
image
|
|
910
|
+
configuration
|
|
911
|
+
tag
|
|
912
|
+
|
|
913
|
+
constructor(image, configuration, params) {
|
|
914
|
+
this.image = image
|
|
915
|
+
this.configuration = configuration
|
|
916
|
+
this.tag = params?.tag
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
static qualityFull(image) {
|
|
920
|
+
const result = new DetectFacesRequest()
|
|
921
|
+
result.image = image
|
|
922
|
+
result.scenario = DetectFacesScenario.QUALITY_FULL
|
|
923
|
+
return result
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
static qualityICAO(image) {
|
|
927
|
+
const result = new DetectFacesRequest()
|
|
928
|
+
result.image = image
|
|
929
|
+
result.scenario = DetectFacesScenario.QUALITY_ICAO
|
|
930
|
+
return result
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
static qualityVisaSchengen(image) {
|
|
934
|
+
const result = new DetectFacesRequest()
|
|
935
|
+
result.image = image
|
|
936
|
+
result.scenario = DetectFacesScenario.QUALITY_VISA_SCHENGEN
|
|
937
|
+
return result
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
static qualityVisaUSA(image) {
|
|
941
|
+
const result = new DetectFacesRequest()
|
|
942
|
+
result.image = image
|
|
943
|
+
result.scenario = DetectFacesScenario.QUALITY_VISA_USA
|
|
944
|
+
return result
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
static cropCentralFace(image) {
|
|
948
|
+
const result = new DetectFacesRequest()
|
|
949
|
+
result.image = image
|
|
950
|
+
result.scenario = DetectFacesScenario.CROP_CENTRAL_FACE
|
|
951
|
+
return result
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
static cropAllFaces(image) {
|
|
955
|
+
const result = new DetectFacesRequest()
|
|
956
|
+
result.image = image
|
|
957
|
+
result.scenario = DetectFacesScenario.CROP_ALL_FACES
|
|
958
|
+
return result
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
static thumbnail(image) {
|
|
962
|
+
const result = new DetectFacesRequest()
|
|
963
|
+
result.image = image
|
|
964
|
+
result.scenario = DetectFacesScenario.THUMBNAIL
|
|
965
|
+
return result
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
static allAttributes(image) {
|
|
969
|
+
const result = new DetectFacesRequest()
|
|
970
|
+
result.image = image
|
|
971
|
+
result.scenario = DetectFacesScenario.ATTRIBUTES_ALL
|
|
972
|
+
return result
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/***/ }),
|
|
977
|
+
|
|
978
|
+
/***/ "./src/detect_faces/detect_faces_response.js":
|
|
979
|
+
/*!***************************************************!*\
|
|
980
|
+
!*** ./src/detect_faces/detect_faces_response.js ***!
|
|
981
|
+
\***************************************************/
|
|
982
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
983
|
+
|
|
984
|
+
__webpack_require__.r(__webpack_exports__);
|
|
985
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
986
|
+
/* harmony export */ DetectFacesResponse: () => (/* binding */ DetectFacesResponse)
|
|
987
|
+
/* harmony export */ });
|
|
988
|
+
/* harmony import */ var _detect_face_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detect_face_result */ "./src/detect_faces/detect_face_result.js");
|
|
989
|
+
/* harmony import */ var _detect_faces_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detect_faces_exception */ "./src/detect_faces/detect_faces_exception.js");
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
class DetectFacesResponse {
|
|
994
|
+
detection
|
|
995
|
+
scenario
|
|
996
|
+
error
|
|
997
|
+
allDetections
|
|
998
|
+
|
|
999
|
+
static fromJson(jsonObject) {
|
|
1000
|
+
if (jsonObject == null) return null
|
|
1001
|
+
const result = new DetectFacesResponse()
|
|
1002
|
+
|
|
1003
|
+
result.detection = _detect_face_result__WEBPACK_IMPORTED_MODULE_0__.DetectFaceResult.fromJson(jsonObject["detection"])
|
|
1004
|
+
result.scenario = jsonObject["scenario"]
|
|
1005
|
+
result.error = _detect_faces_exception__WEBPACK_IMPORTED_MODULE_1__.DetectFacesException.fromJson(jsonObject["error"])
|
|
1006
|
+
result.allDetections = []
|
|
1007
|
+
if (jsonObject["allDetections"] != null)
|
|
1008
|
+
for (const item of jsonObject["allDetections"])
|
|
1009
|
+
result.allDetections.push(_detect_face_result__WEBPACK_IMPORTED_MODULE_0__.DetectFaceResult.fromJson(item))
|
|
1010
|
+
|
|
1011
|
+
return result
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
/***/ }),
|
|
1016
|
+
|
|
1017
|
+
/***/ "./src/detect_faces/detect_faces_scenario.js":
|
|
1018
|
+
/*!***************************************************!*\
|
|
1019
|
+
!*** ./src/detect_faces/detect_faces_scenario.js ***!
|
|
1020
|
+
\***************************************************/
|
|
1021
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1022
|
+
|
|
1023
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1024
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1025
|
+
/* harmony export */ DetectFacesScenario: () => (/* binding */ DetectFacesScenario)
|
|
1026
|
+
/* harmony export */ });
|
|
1027
|
+
const DetectFacesScenario = {
|
|
1028
|
+
CROP_CENTRAL_FACE: "CropCentralFace",
|
|
1029
|
+
CROP_ALL_FACES: "CropAllFaces",
|
|
1030
|
+
THUMBNAIL: "Thumbnail",
|
|
1031
|
+
ATTRIBUTES_ALL: "AttributesAll",
|
|
1032
|
+
QUALITY_FULL: "QualityFull",
|
|
1033
|
+
QUALITY_ICAO: "QualityICAO",
|
|
1034
|
+
QUALITY_VISA_SCHENGEN: "QualityVisaSchengen",
|
|
1035
|
+
QUALITY_VISA_USA: "QualityVisaUSA",
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/***/ }),
|
|
1039
|
+
|
|
1040
|
+
/***/ "./src/face_capture/face_capture_config.js":
|
|
1041
|
+
/*!*************************************************!*\
|
|
1042
|
+
!*** ./src/face_capture/face_capture_config.js ***!
|
|
1043
|
+
\*************************************************/
|
|
1044
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1045
|
+
|
|
1046
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1047
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1048
|
+
/* harmony export */ FaceCaptureConfig: () => (/* binding */ FaceCaptureConfig)
|
|
1049
|
+
/* harmony export */ });
|
|
1050
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
1051
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
class FaceCaptureConfig {
|
|
1056
|
+
copyright
|
|
1057
|
+
cameraSwitchEnabled
|
|
1058
|
+
closeButtonEnabled
|
|
1059
|
+
torchButtonEnabled
|
|
1060
|
+
vibrateOnSteps
|
|
1061
|
+
cameraPositionIOS
|
|
1062
|
+
screenOrientation
|
|
1063
|
+
cameraPositionAndroid
|
|
1064
|
+
timeout
|
|
1065
|
+
holdStillDuration
|
|
1066
|
+
|
|
1067
|
+
constructor(params) {
|
|
1068
|
+
this.copyright = params?.copyright ?? true
|
|
1069
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
1070
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
1071
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
1072
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
1073
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
1074
|
+
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
1075
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
1076
|
+
this.timeout = params?.timeout
|
|
1077
|
+
this.holdStillDuration = params?.holdStillDuration
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/***/ }),
|
|
1082
|
+
|
|
1083
|
+
/***/ "./src/face_capture/face_capture_exception.js":
|
|
1084
|
+
/*!****************************************************!*\
|
|
1085
|
+
!*** ./src/face_capture/face_capture_exception.js ***!
|
|
1086
|
+
\****************************************************/
|
|
1087
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1088
|
+
|
|
1089
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1090
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1091
|
+
/* harmony export */ FaceCaptureErrorCode: () => (/* binding */ FaceCaptureErrorCode),
|
|
1092
|
+
/* harmony export */ FaceCaptureException: () => (/* binding */ FaceCaptureException)
|
|
1093
|
+
/* harmony export */ });
|
|
1094
|
+
class FaceCaptureException {
|
|
1095
|
+
code
|
|
1096
|
+
message
|
|
1097
|
+
|
|
1098
|
+
static fromJson(jsonObject) {
|
|
1099
|
+
if (jsonObject == null) return null
|
|
1100
|
+
const result = new FaceCaptureException()
|
|
1101
|
+
|
|
1102
|
+
result.code = jsonObject["code"]
|
|
1103
|
+
result.message = jsonObject["message"] ?? ""
|
|
1104
|
+
|
|
1105
|
+
return result
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
const FaceCaptureErrorCode = {
|
|
1110
|
+
CANCEL: 0,
|
|
1111
|
+
TIMEOUT: 1,
|
|
1112
|
+
NOT_INITIALIZED: 2,
|
|
1113
|
+
SESSION_START_FAILED: 3,
|
|
1114
|
+
CAMERA_NOT_AVAILABLE: 4,
|
|
1115
|
+
CAMERA_NO_PERMISSION: 5,
|
|
1116
|
+
IN_PROGRESS_ALREADY: 6,
|
|
1117
|
+
CONTEXT_IS_NULL: 7,
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/***/ }),
|
|
1121
|
+
|
|
1122
|
+
/***/ "./src/face_capture/face_capture_image.js":
|
|
1123
|
+
/*!************************************************!*\
|
|
1124
|
+
!*** ./src/face_capture/face_capture_image.js ***!
|
|
1125
|
+
\************************************************/
|
|
1126
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1127
|
+
|
|
1128
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1129
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1130
|
+
/* harmony export */ FaceCaptureImage: () => (/* binding */ FaceCaptureImage),
|
|
1131
|
+
/* harmony export */ ImageType: () => (/* binding */ ImageType)
|
|
1132
|
+
/* harmony export */ });
|
|
1133
|
+
class FaceCaptureImage {
|
|
1134
|
+
imageType
|
|
1135
|
+
image
|
|
1136
|
+
tag
|
|
1137
|
+
|
|
1138
|
+
static fromJson(jsonObject) {
|
|
1139
|
+
if (jsonObject == null) return null
|
|
1140
|
+
const result = new FaceCaptureImage()
|
|
1141
|
+
|
|
1142
|
+
result.imageType = jsonObject["imageType"]
|
|
1143
|
+
result.image = jsonObject["image"]
|
|
1144
|
+
result.tag = jsonObject["tag"]
|
|
1145
|
+
|
|
1146
|
+
return result
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
const ImageType = {
|
|
1151
|
+
PRINTED: 1,
|
|
1152
|
+
RFID: 2,
|
|
1153
|
+
LIVE: 3,
|
|
1154
|
+
DOCUMENT_WITH_LIVE: 4,
|
|
1155
|
+
EXTERNAL: 5,
|
|
1156
|
+
GHOST_PORTRAIT: 6,
|
|
1157
|
+
BARCODE: 7,
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/***/ }),
|
|
1161
|
+
|
|
1162
|
+
/***/ "./src/face_capture/face_capture_response.js":
|
|
1163
|
+
/*!***************************************************!*\
|
|
1164
|
+
!*** ./src/face_capture/face_capture_response.js ***!
|
|
1165
|
+
\***************************************************/
|
|
1166
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1167
|
+
|
|
1168
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1169
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1170
|
+
/* harmony export */ FaceCaptureResponse: () => (/* binding */ FaceCaptureResponse)
|
|
1171
|
+
/* harmony export */ });
|
|
1172
|
+
/* harmony import */ var _face_capture_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./face_capture_image */ "./src/face_capture/face_capture_image.js");
|
|
1173
|
+
/* harmony import */ var _face_capture_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./face_capture_exception */ "./src/face_capture/face_capture_exception.js");
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
class FaceCaptureResponse {
|
|
1178
|
+
error
|
|
1179
|
+
image
|
|
1180
|
+
|
|
1181
|
+
static fromJson(jsonObject) {
|
|
1182
|
+
if (jsonObject == null) return null
|
|
1183
|
+
const result = new FaceCaptureResponse()
|
|
1184
|
+
|
|
1185
|
+
result.error = _face_capture_exception__WEBPACK_IMPORTED_MODULE_1__.FaceCaptureException.fromJson(jsonObject["error"])
|
|
1186
|
+
result.image = _face_capture_image__WEBPACK_IMPORTED_MODULE_0__.FaceCaptureImage.fromJson(jsonObject["image"])
|
|
1187
|
+
|
|
1188
|
+
return result
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/***/ }),
|
|
1193
|
+
|
|
1194
|
+
/***/ "./src/image_params/output_image_crop.js":
|
|
1195
|
+
/*!***********************************************!*\
|
|
1196
|
+
!*** ./src/image_params/output_image_crop.js ***!
|
|
1197
|
+
\***********************************************/
|
|
1198
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1199
|
+
|
|
1200
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1201
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1202
|
+
/* harmony export */ OutputImageCrop: () => (/* binding */ OutputImageCrop),
|
|
1203
|
+
/* harmony export */ OutputImageCropAspectRatio: () => (/* binding */ OutputImageCropAspectRatio)
|
|
1204
|
+
/* harmony export */ });
|
|
1205
|
+
class OutputImageCrop {
|
|
1206
|
+
type
|
|
1207
|
+
size
|
|
1208
|
+
padColor
|
|
1209
|
+
returnOriginalRect
|
|
1210
|
+
|
|
1211
|
+
constructor(type, params) {
|
|
1212
|
+
this.type = type
|
|
1213
|
+
this.size = params?.size
|
|
1214
|
+
this.padColor = params?.padColor
|
|
1215
|
+
this.returnOriginalRect = params?.returnOriginalRect ?? false
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
const OutputImageCropAspectRatio = {
|
|
1220
|
+
RATIO_3X4: 0,
|
|
1221
|
+
RATIO_4X5: 1,
|
|
1222
|
+
RATIO_2X3: 2,
|
|
1223
|
+
RATIO_1X1: 3,
|
|
1224
|
+
RATIO_7X9: 4,
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/***/ }),
|
|
1228
|
+
|
|
1229
|
+
/***/ "./src/image_params/output_image_params.js":
|
|
1230
|
+
/*!*************************************************!*\
|
|
1231
|
+
!*** ./src/image_params/output_image_params.js ***!
|
|
1232
|
+
\*************************************************/
|
|
1233
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1234
|
+
|
|
1235
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1236
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1237
|
+
/* harmony export */ OutputImageParams: () => (/* binding */ OutputImageParams)
|
|
1238
|
+
/* harmony export */ });
|
|
1239
|
+
class OutputImageParams {
|
|
1240
|
+
crop
|
|
1241
|
+
backgroundColor
|
|
1242
|
+
|
|
1243
|
+
constructor(params) {
|
|
1244
|
+
this.crop = params?.crop
|
|
1245
|
+
this.backgroundColor = params?.backgroundColor
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/***/ }),
|
|
1250
|
+
|
|
1251
|
+
/***/ "./src/image_params/point.js":
|
|
1252
|
+
/*!***********************************!*\
|
|
1253
|
+
!*** ./src/image_params/point.js ***!
|
|
1254
|
+
\***********************************/
|
|
1255
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1256
|
+
|
|
1257
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1258
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1259
|
+
/* harmony export */ Point: () => (/* binding */ Point)
|
|
1260
|
+
/* harmony export */ });
|
|
1261
|
+
class Point {
|
|
1262
|
+
x
|
|
1263
|
+
y
|
|
1264
|
+
|
|
1265
|
+
static fromJson(jsonObject) {
|
|
1266
|
+
if (jsonObject == null) return null
|
|
1267
|
+
const result = new Point()
|
|
1268
|
+
|
|
1269
|
+
result.x = jsonObject["x"]
|
|
1270
|
+
result.y = jsonObject["y"]
|
|
1271
|
+
|
|
1272
|
+
return result
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/***/ }),
|
|
1277
|
+
|
|
1278
|
+
/***/ "./src/image_params/rect.js":
|
|
1279
|
+
/*!**********************************!*\
|
|
1280
|
+
!*** ./src/image_params/rect.js ***!
|
|
1281
|
+
\**********************************/
|
|
1282
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1283
|
+
|
|
1284
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1285
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1286
|
+
/* harmony export */ Rect: () => (/* binding */ Rect)
|
|
1287
|
+
/* harmony export */ });
|
|
1288
|
+
class Rect {
|
|
1289
|
+
bottom
|
|
1290
|
+
top
|
|
1291
|
+
left
|
|
1292
|
+
right
|
|
1293
|
+
|
|
1294
|
+
static fromJson(jsonObject) {
|
|
1295
|
+
if (jsonObject == null) return null
|
|
1296
|
+
const result = new Rect()
|
|
1297
|
+
|
|
1298
|
+
result.bottom = jsonObject["bottom"]
|
|
1299
|
+
result.top = jsonObject["top"]
|
|
1300
|
+
result.left = jsonObject["left"]
|
|
1301
|
+
result.right = jsonObject["right"]
|
|
1302
|
+
|
|
1303
|
+
return result
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/***/ }),
|
|
1308
|
+
|
|
1309
|
+
/***/ "./src/image_params/size.js":
|
|
1310
|
+
/*!**********************************!*\
|
|
1311
|
+
!*** ./src/image_params/size.js ***!
|
|
1312
|
+
\**********************************/
|
|
1313
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1314
|
+
|
|
1315
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1316
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1317
|
+
/* harmony export */ Size: () => (/* binding */ Size)
|
|
1318
|
+
/* harmony export */ });
|
|
1319
|
+
class Size {
|
|
1320
|
+
width
|
|
1321
|
+
height
|
|
1322
|
+
|
|
1323
|
+
constructor(width, height) {
|
|
1324
|
+
this.width = width
|
|
1325
|
+
this.height = height
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/***/ }),
|
|
1330
|
+
|
|
1331
|
+
/***/ "./src/image_quality/image_quality_characteristic.js":
|
|
1332
|
+
/*!***********************************************************!*\
|
|
1333
|
+
!*** ./src/image_quality/image_quality_characteristic.js ***!
|
|
1334
|
+
\***********************************************************/
|
|
1335
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1336
|
+
|
|
1337
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1338
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1339
|
+
/* harmony export */ ImageQualityCharacteristic: () => (/* binding */ ImageQualityCharacteristic)
|
|
1340
|
+
/* harmony export */ });
|
|
1341
|
+
class ImageQualityCharacteristic {
|
|
1342
|
+
characteristicName
|
|
1343
|
+
recommendedRange
|
|
1344
|
+
customRange
|
|
1345
|
+
color
|
|
1346
|
+
|
|
1347
|
+
static _create(name, params) {
|
|
1348
|
+
var result = new ImageQualityCharacteristic()
|
|
1349
|
+
result.characteristicName = name
|
|
1350
|
+
result.recommendedRange = params?.recommended
|
|
1351
|
+
result.customRange = params?.custom
|
|
1352
|
+
result.color = params?.color
|
|
1353
|
+
return result
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
withCustomRange(min, max) {
|
|
1357
|
+
this.customRange = new ImageQualityRange(min, max)
|
|
1358
|
+
return this
|
|
1359
|
+
}
|
|
1360
|
+
withCustomValue(value) {
|
|
1361
|
+
this.customRange = ImageQualityRange.withValue(value)
|
|
1362
|
+
return this
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/***/ }),
|
|
1367
|
+
|
|
1368
|
+
/***/ "./src/image_quality/image_quality_characteristic_name.js":
|
|
1369
|
+
/*!****************************************************************!*\
|
|
1370
|
+
!*** ./src/image_quality/image_quality_characteristic_name.js ***!
|
|
1371
|
+
\****************************************************************/
|
|
1372
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1373
|
+
|
|
1374
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1375
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1376
|
+
/* harmony export */ ImageQualityCharacteristicName: () => (/* binding */ ImageQualityCharacteristicName)
|
|
1377
|
+
/* harmony export */ });
|
|
1378
|
+
const ImageQualityCharacteristicName = {
|
|
1379
|
+
IMAGE_WIDTH: "ImageWidth",
|
|
1380
|
+
IMAGE_HEIGHT: "ImageHeight",
|
|
1381
|
+
IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight",
|
|
1382
|
+
IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber",
|
|
1383
|
+
ART_FACE: "ArtFace",
|
|
1384
|
+
PADDING_RATIO: "PaddingRatio",
|
|
1385
|
+
FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition",
|
|
1386
|
+
FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition",
|
|
1387
|
+
HEAD_WIDTH_RATIO: "HeadWidthRatio",
|
|
1388
|
+
HEAD_HEIGHT_RATIO: "HeadHeightRatio",
|
|
1389
|
+
EYES_DISTANCE: "EyesDistance",
|
|
1390
|
+
YAW: "Yaw",
|
|
1391
|
+
PITCH: "Pitch",
|
|
1392
|
+
ROLL: "Roll",
|
|
1393
|
+
BLUR_LEVEL: "BlurLevel",
|
|
1394
|
+
NOISE_LEVEL: "NoiseLevel",
|
|
1395
|
+
UNNATURAL_SKIN_TONE: "UnnaturalSkinTone",
|
|
1396
|
+
FACE_DYNAMIC_RANGE: "FaceDynamicRange",
|
|
1397
|
+
EYE_RIGHT_CLOSED: "EyeRightClosed",
|
|
1398
|
+
EYE_LEFT_CLOSED: "EyeLeftClosed",
|
|
1399
|
+
EYE_RIGHT_OCCLUDED: "EyeRightOccluded",
|
|
1400
|
+
EYE_LEFT_OCCLUDED: "EyeLeftOccluded",
|
|
1401
|
+
EYES_RED: "EyesRed",
|
|
1402
|
+
EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair",
|
|
1403
|
+
EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair",
|
|
1404
|
+
OFF_GAZE: "OffGaze",
|
|
1405
|
+
TOO_DARK: "TooDark",
|
|
1406
|
+
TOO_LIGHT: "TooLight",
|
|
1407
|
+
FACE_GLARE: "FaceGlare",
|
|
1408
|
+
SHADOWS_ON_FACE: "ShadowsOnFace",
|
|
1409
|
+
SHOULDERS_POSE: "ShouldersPose",
|
|
1410
|
+
EXPRESSION_LEVEL: "ExpressionLevel",
|
|
1411
|
+
MOUTH_OPEN: "MouthOpen",
|
|
1412
|
+
SMILE: "Smile",
|
|
1413
|
+
DARK_GLASSES: "DarkGlasses",
|
|
1414
|
+
REFLECTION_ON_GLASSES: "ReflectionOnGlasses",
|
|
1415
|
+
FRAMES_TOO_HEAVY: "FramesTooHeavy",
|
|
1416
|
+
FACE_OCCLUDED: "FaceOccluded",
|
|
1417
|
+
HEAD_COVERING: "HeadCovering",
|
|
1418
|
+
FOREHEAD_COVERING: "ForeheadCovering",
|
|
1419
|
+
STRONG_MAKEUP: "StrongMakeup",
|
|
1420
|
+
HEAD_PHONES: "Headphones",
|
|
1421
|
+
MEDICAL_MASK: "MedicalMask",
|
|
1422
|
+
BACKGROUND_UNIFORMITY: "BackgroundUniformity",
|
|
1423
|
+
SHADOWS_ON_BACKGROUND: "ShadowsOnBackground",
|
|
1424
|
+
OTHER_FACES: "OtherFaces",
|
|
1425
|
+
BACKGROUND_COLOR_MATCH: "BackgroundColorMatch",
|
|
1426
|
+
UNKNOWN: "Unknown",
|
|
1427
|
+
IMAGE_CHARACTERISTIC_ALL_RECOMMENDED: "ImageCharacteristic",
|
|
1428
|
+
HEAD_SIZE_AND_POSITION_ALL_RECOMMENDED: "HeadSizeAndPosition",
|
|
1429
|
+
FACE_IMAGE_QUALITY_ALL_RECOMMENDED: "FaceImageQuality",
|
|
1430
|
+
EYES_CHARACTERISTICS_ALL_RECOMMENDED: "EyesCharacteristics",
|
|
1431
|
+
SHADOW_AND_LIGHTING_ALL_RECOMMENDED: "ShadowsAndLightning",
|
|
1432
|
+
POSE_AND_EXPRESSION_ALL_RECOMMENDED: "PoseAndExpression",
|
|
1433
|
+
HEAD_OCCLUSION_ALL_RECOMMENDED: "HeadOcclusion",
|
|
1434
|
+
QUALITY_BACKGROUND_ALL_RECOMMENDED: "QualityBackground",
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/***/ }),
|
|
1438
|
+
|
|
1439
|
+
/***/ "./src/image_quality/image_quality_group.js":
|
|
1440
|
+
/*!**************************************************!*\
|
|
1441
|
+
!*** ./src/image_quality/image_quality_group.js ***!
|
|
1442
|
+
\**************************************************/
|
|
1443
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1444
|
+
|
|
1445
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1446
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1447
|
+
/* harmony export */ ImageQualityGroup: () => (/* binding */ ImageQualityGroup),
|
|
1448
|
+
/* harmony export */ _Background: () => (/* binding */ _Background),
|
|
1449
|
+
/* harmony export */ _Eyes: () => (/* binding */ _Eyes),
|
|
1450
|
+
/* harmony export */ _FaceImage: () => (/* binding */ _FaceImage),
|
|
1451
|
+
/* harmony export */ _HeadOcclusion: () => (/* binding */ _HeadOcclusion),
|
|
1452
|
+
/* harmony export */ _HeadSizeAndPosition: () => (/* binding */ _HeadSizeAndPosition),
|
|
1453
|
+
/* harmony export */ _Image: () => (/* binding */ _Image),
|
|
1454
|
+
/* harmony export */ _PoseAndExpression: () => (/* binding */ _PoseAndExpression),
|
|
1455
|
+
/* harmony export */ _ShadowsAndLightning: () => (/* binding */ _ShadowsAndLightning)
|
|
1456
|
+
/* harmony export */ });
|
|
1457
|
+
/* harmony import */ var _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./image_quality_characteristic */ "./src/image_quality/image_quality_characteristic.js");
|
|
1458
|
+
/* harmony import */ var _image_quality_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
class _Image {
|
|
1463
|
+
imageWidth(range) {
|
|
1464
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1465
|
+
ImageQualityCharacteristicName.IMAGE_WIDTH,
|
|
1466
|
+
{ recommended: range }
|
|
1467
|
+
)
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
imageHeight(range) {
|
|
1471
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1472
|
+
ImageQualityCharacteristicName.IMAGE_HEIGHT,
|
|
1473
|
+
{ recommended: range }
|
|
1474
|
+
)
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
imageWidthToHeight(range) {
|
|
1478
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1479
|
+
ImageQualityCharacteristicName.IMAGE_WIDTH_TO_HEIGHT,
|
|
1480
|
+
{ recommended: range }
|
|
1481
|
+
)
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
imageChannelsNumber(channelsNumber) {
|
|
1485
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1486
|
+
ImageQualityCharacteristicName.IMAGE_CHANNELS_NUMBER,
|
|
1487
|
+
{ recommended: _image_quality_range__WEBPACK_IMPORTED_MODULE_1__.ImageQualityRange.withValue(channelsNumber) }
|
|
1488
|
+
)
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
paddingRatio(range) {
|
|
1492
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1493
|
+
ImageQualityCharacteristicName.PADDING_RATIO,
|
|
1494
|
+
{ recommended: range }
|
|
1495
|
+
)
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
artFace() {
|
|
1499
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1500
|
+
ImageQualityCharacteristicName.ART_FACE,
|
|
1501
|
+
)
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
allRecommended() {
|
|
1505
|
+
return [this.artFace()]
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
class _HeadSizeAndPosition {
|
|
1510
|
+
faceMidPointHorizontalPosition() {
|
|
1511
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_HORIZONTAL_POSITION)
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
faceMidPointVerticalPosition() {
|
|
1515
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_MID_POINT_VERTICAL_POSITION)
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
headWidthRatio() {
|
|
1519
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_WIDTH_RATIO)
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
headHeightRatio() {
|
|
1523
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_HEIGHT_RATIO)
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
eyesDistance() {
|
|
1527
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_DISTANCE)
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
yaw() {
|
|
1531
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.YAW)
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
pitch() {
|
|
1535
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.PITCH)
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
roll() {
|
|
1539
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.ROLL)
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
allRecommended() {
|
|
1543
|
+
return [
|
|
1544
|
+
this.faceMidPointHorizontalPosition(),
|
|
1545
|
+
this.faceMidPointVerticalPosition(),
|
|
1546
|
+
this.headHeightRatio(),
|
|
1547
|
+
this.headWidthRatio(),
|
|
1548
|
+
this.eyesDistance(),
|
|
1549
|
+
this.yaw(),
|
|
1550
|
+
this.pitch(),
|
|
1551
|
+
this.roll(),
|
|
1552
|
+
]
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
class _FaceImage {
|
|
1557
|
+
blurLevel() {
|
|
1558
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BLUR_LEVEL)
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
noiseLevel() {
|
|
1562
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.NOISE_LEVEL)
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
unnaturalSkinTone() {
|
|
1566
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.UNNATURAL_SKIN_TONE)
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
faceDynamicRange() {
|
|
1570
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_DYNAMIC_RANGE)
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
allRecommended() {
|
|
1574
|
+
return [
|
|
1575
|
+
this.blurLevel(),
|
|
1576
|
+
this.noiseLevel(),
|
|
1577
|
+
this.unnaturalSkinTone(),
|
|
1578
|
+
this.faceDynamicRange(),
|
|
1579
|
+
]
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
class _Eyes {
|
|
1584
|
+
eyeRightClosed() {
|
|
1585
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_CLOSED)
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
eyeLeftClosed() {
|
|
1589
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_CLOSED)
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
eyeRightOccluded() {
|
|
1593
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_OCCLUDED)
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
eyeLeftOccluded() {
|
|
1597
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_OCCLUDED)
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
eyesRed() {
|
|
1601
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYES_RED)
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
eyeRightCoveredWithHair() {
|
|
1605
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_RIGHT_COVERED_WITH_HAIR)
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
eyeLeftCoveredWithHair() {
|
|
1609
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EYE_LEFT_COVERED_WITH_HAIR)
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
offGaze() {
|
|
1613
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OFF_GAZE)
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
allRecommended() {
|
|
1617
|
+
return [
|
|
1618
|
+
this.eyeRightClosed(),
|
|
1619
|
+
this.eyeLeftClosed(),
|
|
1620
|
+
this.eyeRightOccluded(),
|
|
1621
|
+
this.eyeLeftOccluded(),
|
|
1622
|
+
this.eyesRed(),
|
|
1623
|
+
this.eyeRightCoveredWithHair(),
|
|
1624
|
+
this.eyeLeftCoveredWithHair(),
|
|
1625
|
+
this.offGaze(),
|
|
1626
|
+
]
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
class _ShadowsAndLightning {
|
|
1631
|
+
tooDark() {
|
|
1632
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_DARK)
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
tooLight() {
|
|
1636
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.TOO_LIGHT)
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
faceGlare() {
|
|
1640
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_GLARE)
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
shadowsOnFace() {
|
|
1644
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_FACE)
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
allRecommended() {
|
|
1648
|
+
return [
|
|
1649
|
+
this.tooDark(),
|
|
1650
|
+
this.tooLight(),
|
|
1651
|
+
this.faceGlare(),
|
|
1652
|
+
this.shadowsOnFace(),
|
|
1653
|
+
]
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
class _PoseAndExpression {
|
|
1658
|
+
shouldersPose() {
|
|
1659
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHOULDERS_POSE)
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
expressionLevel() {
|
|
1663
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.EXPRESSION_LEVEL)
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
mouthOpen() {
|
|
1667
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MOUTH_OPEN)
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
smile() {
|
|
1671
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SMILE)
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
allRecommended() {
|
|
1675
|
+
return [
|
|
1676
|
+
this.shouldersPose(),
|
|
1677
|
+
this.expressionLevel(),
|
|
1678
|
+
this.mouthOpen(),
|
|
1679
|
+
this.smile(),
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
class _HeadOcclusion {
|
|
1685
|
+
darkGlasses() {
|
|
1686
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.DARK_GLASSES)
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
reflectionOnGlasses() {
|
|
1690
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.REFLECTION_ON_GLASSES)
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
framesTooHeavy() {
|
|
1694
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FRAMES_TOO_HEAVY)
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
faceOccluded() {
|
|
1698
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FACE_OCCLUDED)
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
headCovering() {
|
|
1702
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_COVERING)
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
foreheadCovering() {
|
|
1706
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.FOREHEAD_COVERING)
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
strongMakeup() {
|
|
1710
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.STRONG_MAKEUP)
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
headphones() {
|
|
1714
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.HEAD_PHONES)
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
medicalMask() {
|
|
1718
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.MEDICAL_MASK)
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
allRecommended() {
|
|
1722
|
+
return [
|
|
1723
|
+
this.darkGlasses(),
|
|
1724
|
+
this.reflectionOnGlasses(),
|
|
1725
|
+
this.framesTooHeavy(),
|
|
1726
|
+
this.faceOccluded(),
|
|
1727
|
+
this.headCovering(),
|
|
1728
|
+
this.foreheadCovering(),
|
|
1729
|
+
this.strongMakeup(),
|
|
1730
|
+
this.headphones(),
|
|
1731
|
+
this.medicalMask(),
|
|
1732
|
+
]
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
class _Background {
|
|
1737
|
+
backgroundUniformity() {
|
|
1738
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.BACKGROUND_UNIFORMITY)
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
shadowsOnBackground() {
|
|
1742
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.SHADOWS_ON_BACKGROUND)
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
otherFaces() {
|
|
1746
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(ImageQualityCharacteristicName.OTHER_FACES)
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
backgroundColorMatch(params) {
|
|
1750
|
+
return _image_quality_characteristic__WEBPACK_IMPORTED_MODULE_0__.ImageQualityCharacteristic._create(
|
|
1751
|
+
ImageQualityCharacteristicName.BACKGROUND_COLOR_MATCH,
|
|
1752
|
+
{ color: params?.color }
|
|
1753
|
+
)
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
allRecommended() {
|
|
1757
|
+
return [
|
|
1758
|
+
this.backgroundUniformity(),
|
|
1759
|
+
this.shadowsOnBackground(),
|
|
1760
|
+
this.otherFaces(),
|
|
1761
|
+
this.backgroundColorMatch(),
|
|
1762
|
+
]
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
class ImageQualityGroup {
|
|
1767
|
+
static get image() { return ImageQualityGroup._image }
|
|
1768
|
+
static _image = new _Image()
|
|
1769
|
+
|
|
1770
|
+
static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
|
|
1771
|
+
static _headSizeAndPosition = new _HeadSizeAndPosition()
|
|
1772
|
+
|
|
1773
|
+
static get faceImage() { return ImageQualityGroup._faceImage }
|
|
1774
|
+
static _faceImage = new _FaceImage()
|
|
1775
|
+
|
|
1776
|
+
static get eyes() { return ImageQualityGroup._eyes }
|
|
1777
|
+
static _eyes = new _Eyes()
|
|
1778
|
+
|
|
1779
|
+
static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
|
|
1780
|
+
static _shadowsAndLightning = new _ShadowsAndLightning()
|
|
1781
|
+
|
|
1782
|
+
static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
|
|
1783
|
+
static _poseAndExpression = new _PoseAndExpression()
|
|
1784
|
+
|
|
1785
|
+
static get headOcclusion() { return ImageQualityGroup._headOcclusion }
|
|
1786
|
+
static _headOcclusion = new _HeadOcclusion()
|
|
1787
|
+
|
|
1788
|
+
static get background() { return ImageQualityGroup._background }
|
|
1789
|
+
static _background = new _Background()
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/***/ }),
|
|
1793
|
+
|
|
1794
|
+
/***/ "./src/image_quality/image_quality_range.js":
|
|
1795
|
+
/*!**************************************************!*\
|
|
1796
|
+
!*** ./src/image_quality/image_quality_range.js ***!
|
|
1797
|
+
\**************************************************/
|
|
1798
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1799
|
+
|
|
1800
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1801
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1802
|
+
/* harmony export */ ImageQualityRange: () => (/* binding */ ImageQualityRange)
|
|
1803
|
+
/* harmony export */ });
|
|
1804
|
+
class ImageQualityRange {
|
|
1805
|
+
min
|
|
1806
|
+
max
|
|
1807
|
+
|
|
1808
|
+
constructor(min, max) {
|
|
1809
|
+
this.min = min
|
|
1810
|
+
this.max = max
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
static withValue(value) {
|
|
1814
|
+
var result = new ImageQualityRange()
|
|
1815
|
+
result.min = value
|
|
1816
|
+
result.max = value
|
|
1817
|
+
return result
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
static fromJson(jsonObject) {
|
|
1821
|
+
if (jsonObject == null) return null
|
|
1822
|
+
const result = new ImageQualityRange()
|
|
1823
|
+
|
|
1824
|
+
result.min = jsonObject["min"]
|
|
1825
|
+
result.max = jsonObject["max"]
|
|
1826
|
+
|
|
1827
|
+
return result
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/***/ }),
|
|
1832
|
+
|
|
1833
|
+
/***/ "./src/image_quality/image_quality_result.js":
|
|
1834
|
+
/*!***************************************************!*\
|
|
1835
|
+
!*** ./src/image_quality/image_quality_result.js ***!
|
|
1836
|
+
\***************************************************/
|
|
1837
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1838
|
+
|
|
1839
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1840
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1841
|
+
/* harmony export */ ImageQualityGroupName: () => (/* binding */ ImageQualityGroupName),
|
|
1842
|
+
/* harmony export */ ImageQualityResult: () => (/* binding */ ImageQualityResult),
|
|
1843
|
+
/* harmony export */ ImageQualityResultStatus: () => (/* binding */ ImageQualityResultStatus)
|
|
1844
|
+
/* harmony export */ });
|
|
1845
|
+
/* harmony import */ var _image_quality_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
class ImageQualityResult {
|
|
1849
|
+
group
|
|
1850
|
+
name
|
|
1851
|
+
status
|
|
1852
|
+
value
|
|
1853
|
+
range
|
|
1854
|
+
|
|
1855
|
+
static fromJson(jsonObject) {
|
|
1856
|
+
if (jsonObject == null) return null
|
|
1857
|
+
const result = new ImageQualityResult()
|
|
1858
|
+
|
|
1859
|
+
result.name = jsonObject["name"]
|
|
1860
|
+
result.group = jsonObject["group"]
|
|
1861
|
+
result.status = jsonObject["status"]
|
|
1862
|
+
result.range = _image_quality_range__WEBPACK_IMPORTED_MODULE_0__.ImageQualityRange.fromJson(jsonObject["range"])
|
|
1863
|
+
result.value = jsonObject["value"]
|
|
1864
|
+
|
|
1865
|
+
return result
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
const ImageQualityGroupName = {
|
|
1870
|
+
IMAGE_CHARACTERISTICS: 1,
|
|
1871
|
+
HEAD_SIZE_AND_POSITION: 2,
|
|
1872
|
+
FACE_QUALITY: 3,
|
|
1873
|
+
EYES_CHARACTERISTICS: 4,
|
|
1874
|
+
SHADOWS_AND_LIGHTNING: 5,
|
|
1875
|
+
POSE_AND_EXPRESSION: 6,
|
|
1876
|
+
HEAD_OCCLUSION: 7,
|
|
1877
|
+
BACKGROUND: 8,
|
|
1878
|
+
UNKNOWN: 9,
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
const ImageQualityResultStatus = {
|
|
1882
|
+
FALSE: 0,
|
|
1883
|
+
TRUE: 1,
|
|
1884
|
+
UNDETERMINED: 2,
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
/***/ }),
|
|
1888
|
+
|
|
1889
|
+
/***/ "./src/index.js":
|
|
1890
|
+
/*!**********************!*\
|
|
1891
|
+
!*** ./src/index.js ***!
|
|
1892
|
+
\**********************/
|
|
1893
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1894
|
+
|
|
1895
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1896
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1897
|
+
/* harmony export */ CameraPosition: () => (/* reexport safe */ _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__.CameraPosition),
|
|
1898
|
+
/* harmony export */ ComparedFace: () => (/* reexport safe */ _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_40__.ComparedFace),
|
|
1899
|
+
/* harmony export */ ComparedFacesPair: () => (/* reexport safe */ _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_41__.ComparedFacesPair),
|
|
1900
|
+
/* harmony export */ ComparedFacesSplit: () => (/* reexport safe */ _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__.ComparedFacesSplit),
|
|
1901
|
+
/* harmony export */ Customization: () => (/* reexport safe */ _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization),
|
|
1902
|
+
/* harmony export */ CustomizationColors: () => (/* reexport safe */ _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__.CustomizationColors),
|
|
1903
|
+
/* harmony export */ CustomizationFonts: () => (/* reexport safe */ _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__.CustomizationFonts),
|
|
1904
|
+
/* harmony export */ CustomizationImages: () => (/* reexport safe */ _customization_customization_images__WEBPACK_IMPORTED_MODULE_4__.CustomizationImages),
|
|
1905
|
+
/* harmony export */ DetectFaceResult: () => (/* reexport safe */ _detect_faces_detect_face_result__WEBPACK_IMPORTED_MODULE_12__.DetectFaceResult),
|
|
1906
|
+
/* harmony export */ DetectFacesAttribute: () => (/* reexport safe */ _detect_faces_detect_faces_attribute__WEBPACK_IMPORTED_MODULE_14__.DetectFacesAttribute),
|
|
1907
|
+
/* harmony export */ DetectFacesAttributeResult: () => (/* reexport safe */ _detect_faces_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_13__.DetectFacesAttributeResult),
|
|
1908
|
+
/* harmony export */ DetectFacesBackendErrorCode: () => (/* reexport safe */ _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__.DetectFacesBackendErrorCode),
|
|
1909
|
+
/* harmony export */ DetectFacesBackendException: () => (/* reexport safe */ _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__.DetectFacesBackendException),
|
|
1910
|
+
/* harmony export */ DetectFacesConfig: () => (/* reexport safe */ _detect_faces_detect_faces_config__WEBPACK_IMPORTED_MODULE_16__.DetectFacesConfig),
|
|
1911
|
+
/* harmony export */ DetectFacesErrorCode: () => (/* reexport safe */ _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__.DetectFacesErrorCode),
|
|
1912
|
+
/* harmony export */ DetectFacesException: () => (/* reexport safe */ _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__.DetectFacesException),
|
|
1913
|
+
/* harmony export */ DetectFacesRequest: () => (/* reexport safe */ _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__.DetectFacesRequest),
|
|
1914
|
+
/* harmony export */ DetectFacesResponse: () => (/* reexport safe */ _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse),
|
|
1915
|
+
/* harmony export */ DetectFacesScenario: () => (/* reexport safe */ _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__.DetectFacesScenario),
|
|
1916
|
+
/* harmony export */ EditGroupPersonsRequest: () => (/* reexport safe */ _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_51__.EditGroupPersonsRequest),
|
|
1917
|
+
/* harmony export */ FaceCaptureConfig: () => (/* reexport safe */ _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__.FaceCaptureConfig),
|
|
1918
|
+
/* harmony export */ FaceCaptureErrorCode: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureErrorCode),
|
|
1919
|
+
/* harmony export */ FaceCaptureException: () => (/* reexport safe */ _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__.FaceCaptureException),
|
|
1920
|
+
/* harmony export */ FaceCaptureImage: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.FaceCaptureImage),
|
|
1921
|
+
/* harmony export */ FaceCaptureResponse: () => (/* reexport safe */ _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__.FaceCaptureResponse),
|
|
1922
|
+
/* harmony export */ FaceSDK: () => (/* binding */ FaceSDK),
|
|
1923
|
+
/* harmony export */ FaceSDKVersion: () => (/* reexport safe */ _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__.FaceSDKVersion),
|
|
1924
|
+
/* harmony export */ Font: () => (/* reexport safe */ _customization_font__WEBPACK_IMPORTED_MODULE_6__.Font),
|
|
1925
|
+
/* harmony export */ ImageQualityCharacteristic: () => (/* reexport safe */ _image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_31__.ImageQualityCharacteristic),
|
|
1926
|
+
/* harmony export */ ImageQualityCharacteristicName: () => (/* reexport safe */ _image_quality_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_30__.ImageQualityCharacteristicName),
|
|
1927
|
+
/* harmony export */ ImageQualityGroup: () => (/* reexport safe */ _image_quality_image_quality_group__WEBPACK_IMPORTED_MODULE_32__.ImageQualityGroup),
|
|
1928
|
+
/* harmony export */ ImageQualityGroupName: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityGroupName),
|
|
1929
|
+
/* harmony export */ ImageQualityRange: () => (/* reexport safe */ _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_33__.ImageQualityRange),
|
|
1930
|
+
/* harmony export */ ImageQualityResult: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResult),
|
|
1931
|
+
/* harmony export */ ImageQualityResultStatus: () => (/* reexport safe */ _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__.ImageQualityResultStatus),
|
|
1932
|
+
/* harmony export */ ImageType: () => (/* reexport safe */ _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__.ImageType),
|
|
1933
|
+
/* harmony export */ ImageUpload: () => (/* reexport safe */ _person_database_image_upload__WEBPACK_IMPORTED_MODULE_52__.ImageUpload),
|
|
1934
|
+
/* harmony export */ InitConfig: () => (/* reexport safe */ _init_init_config__WEBPACK_IMPORTED_MODULE_9__.InitConfig),
|
|
1935
|
+
/* harmony export */ InitErrorCode: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitErrorCode),
|
|
1936
|
+
/* harmony export */ InitException: () => (/* reexport safe */ _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException),
|
|
1937
|
+
/* harmony export */ LicenseException: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicenseException),
|
|
1938
|
+
/* harmony export */ LicensingResultCode: () => (/* reexport safe */ _init_license_exception__WEBPACK_IMPORTED_MODULE_11__.LicensingResultCode),
|
|
1939
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__.LivenessBackendErrorCode),
|
|
1940
|
+
/* harmony export */ LivenessBackendException: () => (/* reexport safe */ _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__.LivenessBackendException),
|
|
1941
|
+
/* harmony export */ LivenessConfig: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessConfig),
|
|
1942
|
+
/* harmony export */ LivenessErrorCode: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__.LivenessErrorCode),
|
|
1943
|
+
/* harmony export */ LivenessException: () => (/* reexport safe */ _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__.LivenessException),
|
|
1944
|
+
/* harmony export */ LivenessNotification: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__.LivenessNotification),
|
|
1945
|
+
/* harmony export */ LivenessProcessStatus: () => (/* reexport safe */ _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__.LivenessProcessStatus),
|
|
1946
|
+
/* harmony export */ LivenessResponse: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessResponse),
|
|
1947
|
+
/* harmony export */ LivenessSkipStep: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessSkipStep),
|
|
1948
|
+
/* harmony export */ LivenessStatus: () => (/* reexport safe */ _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessStatus),
|
|
1949
|
+
/* harmony export */ LivenessType: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.LivenessType),
|
|
1950
|
+
/* harmony export */ MatchFacesBackendException: () => (/* reexport safe */ _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_43__.MatchFacesBackendException),
|
|
1951
|
+
/* harmony export */ MatchFacesConfig: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__.MatchFacesConfig),
|
|
1952
|
+
/* harmony export */ MatchFacesDetection: () => (/* reexport safe */ _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_46__.MatchFacesDetection),
|
|
1953
|
+
/* harmony export */ MatchFacesDetectionFace: () => (/* reexport safe */ _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_45__.MatchFacesDetectionFace),
|
|
1954
|
+
/* harmony export */ MatchFacesErrorCode: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__.MatchFacesErrorCode),
|
|
1955
|
+
/* harmony export */ MatchFacesException: () => (/* reexport safe */ _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__.MatchFacesException),
|
|
1956
|
+
/* harmony export */ MatchFacesImage: () => (/* reexport safe */ _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_48__.MatchFacesImage),
|
|
1957
|
+
/* harmony export */ MatchFacesRequest: () => (/* reexport safe */ _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_49__.MatchFacesRequest),
|
|
1958
|
+
/* harmony export */ MatchFacesResponse: () => (/* reexport safe */ _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__.MatchFacesResponse),
|
|
1959
|
+
/* harmony export */ OutputImageCrop: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCrop),
|
|
1960
|
+
/* harmony export */ OutputImageCropAspectRatio: () => (/* reexport safe */ _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__.OutputImageCropAspectRatio),
|
|
1961
|
+
/* harmony export */ OutputImageParams: () => (/* reexport safe */ _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__.OutputImageParams),
|
|
1962
|
+
/* harmony export */ PageableItemList: () => (/* reexport safe */ _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_53__.PageableItemList),
|
|
1963
|
+
/* harmony export */ Person: () => (/* reexport safe */ _person_database_person__WEBPACK_IMPORTED_MODULE_57__.Person),
|
|
1964
|
+
/* harmony export */ PersonDatabase: () => (/* reexport safe */ _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__.PersonDatabase),
|
|
1965
|
+
/* harmony export */ PersonGroup: () => (/* reexport safe */ _person_database_person_group__WEBPACK_IMPORTED_MODULE_55__.PersonGroup),
|
|
1966
|
+
/* harmony export */ PersonImage: () => (/* reexport safe */ _person_database_person_image__WEBPACK_IMPORTED_MODULE_56__.PersonImage),
|
|
1967
|
+
/* harmony export */ Point: () => (/* reexport safe */ _image_params_point__WEBPACK_IMPORTED_MODULE_27__.Point),
|
|
1968
|
+
/* harmony export */ ProcessingMode: () => (/* reexport safe */ _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__.ProcessingMode),
|
|
1969
|
+
/* harmony export */ RecordingProcess: () => (/* reexport safe */ _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__.RecordingProcess),
|
|
1970
|
+
/* harmony export */ Rect: () => (/* reexport safe */ _image_params_rect__WEBPACK_IMPORTED_MODULE_28__.Rect),
|
|
1971
|
+
/* harmony export */ ScreenOrientation: () => (/* reexport safe */ _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__.ScreenOrientation),
|
|
1972
|
+
/* harmony export */ SearchPerson: () => (/* reexport safe */ _person_database_search_person__WEBPACK_IMPORTED_MODULE_61__.SearchPerson),
|
|
1973
|
+
/* harmony export */ SearchPersonDetection: () => (/* reexport safe */ _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_58__.SearchPersonDetection),
|
|
1974
|
+
/* harmony export */ SearchPersonImage: () => (/* reexport safe */ _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_59__.SearchPersonImage),
|
|
1975
|
+
/* harmony export */ SearchPersonRequest: () => (/* reexport safe */ _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_60__.SearchPersonRequest),
|
|
1976
|
+
/* harmony export */ Size: () => (/* reexport safe */ _image_params_size__WEBPACK_IMPORTED_MODULE_29__.Size)
|
|
1977
|
+
/* harmony export */ });
|
|
1978
|
+
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/bridge */ "./src/internal/bridge.js");
|
|
1979
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./customization/camera_position */ "./src/customization/camera_position.js");
|
|
1980
|
+
/* harmony import */ var _customization_customization_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./customization/customization_colors */ "./src/customization/customization_colors.js");
|
|
1981
|
+
/* harmony import */ var _customization_customization_fonts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./customization/customization_fonts */ "./src/customization/customization_fonts.js");
|
|
1982
|
+
/* harmony import */ var _customization_customization_images__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./customization/customization_images */ "./src/customization/customization_images.js");
|
|
1983
|
+
/* harmony import */ var _customization_customization__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./customization/customization */ "./src/customization/customization.js");
|
|
1984
|
+
/* harmony import */ var _customization_font__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./customization/font */ "./src/customization/font.js");
|
|
1985
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
1986
|
+
/* harmony import */ var _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./init/face_sdk_version */ "./src/init/face_sdk_version.js");
|
|
1987
|
+
/* harmony import */ var _init_init_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./init/init_config */ "./src/init/init_config.js");
|
|
1988
|
+
/* harmony import */ var _init_init_exception__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./init/init_exception */ "./src/init/init_exception.js");
|
|
1989
|
+
/* harmony import */ var _init_license_exception__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./init/license_exception */ "./src/init/license_exception.js");
|
|
1990
|
+
/* harmony import */ var _detect_faces_detect_face_result__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./detect_faces/detect_face_result */ "./src/detect_faces/detect_face_result.js");
|
|
1991
|
+
/* harmony import */ var _detect_faces_detect_faces_attribute_result__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./detect_faces/detect_faces_attribute_result */ "./src/detect_faces/detect_faces_attribute_result.js");
|
|
1992
|
+
/* harmony import */ var _detect_faces_detect_faces_attribute__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./detect_faces/detect_faces_attribute */ "./src/detect_faces/detect_faces_attribute.js");
|
|
1993
|
+
/* harmony import */ var _detect_faces_detect_faces_backend_exception__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./detect_faces/detect_faces_backend_exception */ "./src/detect_faces/detect_faces_backend_exception.js");
|
|
1994
|
+
/* harmony import */ var _detect_faces_detect_faces_config__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./detect_faces/detect_faces_config */ "./src/detect_faces/detect_faces_config.js");
|
|
1995
|
+
/* harmony import */ var _detect_faces_detect_faces_exception__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./detect_faces/detect_faces_exception */ "./src/detect_faces/detect_faces_exception.js");
|
|
1996
|
+
/* harmony import */ var _detect_faces_detect_faces_request__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./detect_faces/detect_faces_request */ "./src/detect_faces/detect_faces_request.js");
|
|
1997
|
+
/* harmony import */ var _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./detect_faces/detect_faces_response */ "./src/detect_faces/detect_faces_response.js");
|
|
1998
|
+
/* harmony import */ var _detect_faces_detect_faces_scenario__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./detect_faces/detect_faces_scenario */ "./src/detect_faces/detect_faces_scenario.js");
|
|
1999
|
+
/* harmony import */ var _face_capture_face_capture_config__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./face_capture/face_capture_config */ "./src/face_capture/face_capture_config.js");
|
|
2000
|
+
/* harmony import */ var _face_capture_face_capture_exception__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./face_capture/face_capture_exception */ "./src/face_capture/face_capture_exception.js");
|
|
2001
|
+
/* harmony import */ var _face_capture_face_capture_image__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./face_capture/face_capture_image */ "./src/face_capture/face_capture_image.js");
|
|
2002
|
+
/* harmony import */ var _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./face_capture/face_capture_response */ "./src/face_capture/face_capture_response.js");
|
|
2003
|
+
/* harmony import */ var _image_params_output_image_crop__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./image_params/output_image_crop */ "./src/image_params/output_image_crop.js");
|
|
2004
|
+
/* harmony import */ var _image_params_output_image_params__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./image_params/output_image_params */ "./src/image_params/output_image_params.js");
|
|
2005
|
+
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./image_params/point */ "./src/image_params/point.js");
|
|
2006
|
+
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./image_params/rect */ "./src/image_params/rect.js");
|
|
2007
|
+
/* harmony import */ var _image_params_size__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./image_params/size */ "./src/image_params/size.js");
|
|
2008
|
+
/* harmony import */ var _image_quality_image_quality_characteristic_name__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./image_quality/image_quality_characteristic_name */ "./src/image_quality/image_quality_characteristic_name.js");
|
|
2009
|
+
/* harmony import */ var _image_quality_image_quality_characteristic__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./image_quality/image_quality_characteristic */ "./src/image_quality/image_quality_characteristic.js");
|
|
2010
|
+
/* harmony import */ var _image_quality_image_quality_group__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./image_quality/image_quality_group */ "./src/image_quality/image_quality_group.js");
|
|
2011
|
+
/* harmony import */ var _image_quality_image_quality_range__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./image_quality/image_quality_range */ "./src/image_quality/image_quality_range.js");
|
|
2012
|
+
/* harmony import */ var _image_quality_image_quality_result__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./image_quality/image_quality_result */ "./src/image_quality/image_quality_result.js");
|
|
2013
|
+
/* harmony import */ var _liveness_liveness_backend_exception__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./liveness/liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2014
|
+
/* harmony import */ var _liveness_liveness_config__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./liveness/liveness_config */ "./src/liveness/liveness_config.js");
|
|
2015
|
+
/* harmony import */ var _liveness_liveness_exception__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./liveness/liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2016
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2017
|
+
/* harmony import */ var _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./liveness/liveness_response */ "./src/liveness/liveness_response.js");
|
|
2018
|
+
/* harmony import */ var _match_faces_compared_face__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./match_faces/compared_face */ "./src/match_faces/compared_face.js");
|
|
2019
|
+
/* harmony import */ var _match_faces_compared_faces_pair__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./match_faces/compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2020
|
+
/* harmony import */ var _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./match_faces/compared_faces_split */ "./src/match_faces/compared_faces_split.js");
|
|
2021
|
+
/* harmony import */ var _match_faces_match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./match_faces/match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
2022
|
+
/* harmony import */ var _match_faces_match_faces_config__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./match_faces/match_faces_config */ "./src/match_faces/match_faces_config.js");
|
|
2023
|
+
/* harmony import */ var _match_faces_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./match_faces/match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2024
|
+
/* harmony import */ var _match_faces_match_faces_detection__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./match_faces/match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
2025
|
+
/* harmony import */ var _match_faces_match_faces_exception__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./match_faces/match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2026
|
+
/* harmony import */ var _match_faces_match_faces_image__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./match_faces/match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2027
|
+
/* harmony import */ var _match_faces_match_faces_request__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./match_faces/match_faces_request */ "./src/match_faces/match_faces_request.js");
|
|
2028
|
+
/* harmony import */ var _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./match_faces/match_faces_response */ "./src/match_faces/match_faces_response.js");
|
|
2029
|
+
/* harmony import */ var _person_database_edit_group_persons_request__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./person_database/edit_group_persons_request */ "./src/person_database/edit_group_persons_request.js");
|
|
2030
|
+
/* harmony import */ var _person_database_image_upload__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./person_database/image_upload */ "./src/person_database/image_upload.js");
|
|
2031
|
+
/* harmony import */ var _person_database_pageable_item_list__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./person_database/pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
2032
|
+
/* harmony import */ var _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./person_database/person_database */ "./src/person_database/person_database.js");
|
|
2033
|
+
/* harmony import */ var _person_database_person_group__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./person_database/person_group */ "./src/person_database/person_group.js");
|
|
2034
|
+
/* harmony import */ var _person_database_person_image__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./person_database/person_image */ "./src/person_database/person_image.js");
|
|
2035
|
+
/* harmony import */ var _person_database_person__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./person_database/person */ "./src/person_database/person.js");
|
|
2036
|
+
/* harmony import */ var _person_database_search_person_detection__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./person_database/search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
2037
|
+
/* harmony import */ var _person_database_search_person_image__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./person_database/search_person_image */ "./src/person_database/search_person_image.js");
|
|
2038
|
+
/* harmony import */ var _person_database_search_person_request__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./person_database/search_person_request */ "./src/person_database/search_person_request.js");
|
|
2039
|
+
/* harmony import */ var _person_database_search_person__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./person_database/search_person */ "./src/person_database/search_person.js");
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
;
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
;
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
;
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
;
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
;
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
;
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
;
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
;
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
class FaceSDK {
|
|
2134
|
+
static get instance() { return FaceSDK._instance }
|
|
2135
|
+
static _instance = new FaceSDK()
|
|
2136
|
+
|
|
2137
|
+
get version() { return this._version }
|
|
2138
|
+
_version
|
|
2139
|
+
|
|
2140
|
+
get serviceUrl() { return this._serviceUrl }
|
|
2141
|
+
_serviceUrl
|
|
2142
|
+
set serviceUrl(val) {
|
|
2143
|
+
this._serviceUrl = val
|
|
2144
|
+
this._setServiceUrl(val)
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
get localizationDictionary() { return this._localizationDictionary }
|
|
2148
|
+
_localizationDictionary
|
|
2149
|
+
set localizationDictionary(val) {
|
|
2150
|
+
var temp = Object.assign({}, val);
|
|
2151
|
+
Object.freeze(temp);
|
|
2152
|
+
this._localizationDictionary = temp
|
|
2153
|
+
this._setLocalizationDictionary(val)
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
get requestHeaders() { return this._requestHeaders }
|
|
2157
|
+
_requestHeaders
|
|
2158
|
+
set requestHeaders(val) {
|
|
2159
|
+
var temp = Object.assign({}, val);
|
|
2160
|
+
Object.freeze(temp);
|
|
2161
|
+
this._requestHeaders = temp
|
|
2162
|
+
this._setRequestHeaders(val)
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
get customization() { return this._customization }
|
|
2166
|
+
_customization = new _customization_customization__WEBPACK_IMPORTED_MODULE_5__.Customization()
|
|
2167
|
+
set customization(val) {
|
|
2168
|
+
this._customization = val
|
|
2169
|
+
this._customization._apply()
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
set videoEncoderCompletion(completion) {
|
|
2173
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setVideoEncoderCompletion)(completion)
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
get personDatabase() { return this._personDatabase }
|
|
2177
|
+
_personDatabase = new _person_database_person_database__WEBPACK_IMPORTED_MODULE_54__.PersonDatabase()
|
|
2178
|
+
|
|
2179
|
+
async isInitialized() {
|
|
2180
|
+
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("isInitialized", [])
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
async initialize(params) {
|
|
2184
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [params?.config])
|
|
2185
|
+
await this._onInit()
|
|
2186
|
+
|
|
2187
|
+
var jsonObject = JSON.parse(response)
|
|
2188
|
+
var success = jsonObject["success"]
|
|
2189
|
+
var error = jsonObject["error"]
|
|
2190
|
+
return [success, _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException.fromJson(error)]
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
deinitialize() {
|
|
2194
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitialize", [])
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
async startFaceCapture(params) {
|
|
2198
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2199
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startFaceCapture", [params?.config])
|
|
2200
|
+
return _face_capture_face_capture_response__WEBPACK_IMPORTED_MODULE_24__.FaceCaptureResponse.fromJson(JSON.parse(response))
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
stopFaceCapture() {
|
|
2204
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopFaceCapture", [])
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
async startLiveness(params) {
|
|
2208
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setCameraSwitchCallback)(params?.cameraSwitchCallback)
|
|
2209
|
+
;(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setLivenessNotificationCompletion)(params?.notificationCompletion)
|
|
2210
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startLiveness", [params?.config])
|
|
2211
|
+
return _liveness_liveness_response__WEBPACK_IMPORTED_MODULE_39__.LivenessResponse.fromJson(JSON.parse(response))
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
stopLiveness() {
|
|
2215
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopLiveness", [])
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
async matchFaces(request, params) {
|
|
2219
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("matchFaces", [request, params?.config])
|
|
2220
|
+
return _match_faces_match_faces_response__WEBPACK_IMPORTED_MODULE_50__.MatchFacesResponse.fromJson(JSON.parse(response))
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
async splitComparedFaces(facesPairs, similarityThreshold) {
|
|
2224
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("splitComparedFaces", [facesPairs, similarityThreshold])
|
|
2225
|
+
return _match_faces_compared_faces_split__WEBPACK_IMPORTED_MODULE_42__.ComparedFacesSplit.fromJson(JSON.parse(response))
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
async detectFaces(request) {
|
|
2229
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("detectFaces", [request])
|
|
2230
|
+
return _detect_faces_detect_faces_response__WEBPACK_IMPORTED_MODULE_19__.DetectFacesResponse.fromJson(JSON.parse(response))
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
async _onInit() {
|
|
2234
|
+
this._version = await this._getVersion()
|
|
2235
|
+
this._serviceUrl = await this._getServiceUrl()
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
async _getVersion() {
|
|
2239
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getVersion", [])
|
|
2240
|
+
return _init_face_sdk_version__WEBPACK_IMPORTED_MODULE_8__.FaceSDKVersion.fromJson(JSON.parse(response))
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
async _getServiceUrl() {
|
|
2244
|
+
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getServiceUrl", [])
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
_setServiceUrl(url) {
|
|
2248
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
_setLocalizationDictionary(dictionary) {
|
|
2252
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
_setRequestHeaders(dictionary) {
|
|
2256
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setRequestHeaders", [dictionary])
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
/***/ }),
|
|
2262
|
+
|
|
2263
|
+
/***/ "./src/init/face_sdk_version.js":
|
|
2264
|
+
/*!**************************************!*\
|
|
2265
|
+
!*** ./src/init/face_sdk_version.js ***!
|
|
2266
|
+
\**************************************/
|
|
2267
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2268
|
+
|
|
2269
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2270
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2271
|
+
/* harmony export */ FaceSDKVersion: () => (/* binding */ FaceSDKVersion)
|
|
2272
|
+
/* harmony export */ });
|
|
2273
|
+
class FaceSDKVersion {
|
|
2274
|
+
api
|
|
2275
|
+
core
|
|
2276
|
+
coreMode
|
|
2277
|
+
|
|
2278
|
+
static fromJson(jsonObject) {
|
|
2279
|
+
if (jsonObject == null) return null
|
|
2280
|
+
const result = new FaceSDKVersion()
|
|
2281
|
+
|
|
2282
|
+
result.api = jsonObject["api"]
|
|
2283
|
+
result.core = jsonObject["core"]
|
|
2284
|
+
result.coreMode = jsonObject["coreMode"]
|
|
2285
|
+
|
|
2286
|
+
return result
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/***/ }),
|
|
2291
|
+
|
|
2292
|
+
/***/ "./src/init/init_config.js":
|
|
2293
|
+
/*!*********************************!*\
|
|
2294
|
+
!*** ./src/init/init_config.js ***!
|
|
2295
|
+
\*********************************/
|
|
2296
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2297
|
+
|
|
2298
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2299
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2300
|
+
/* harmony export */ InitConfig: () => (/* binding */ InitConfig)
|
|
2301
|
+
/* harmony export */ });
|
|
2302
|
+
class InitConfig {
|
|
2303
|
+
license
|
|
2304
|
+
licenseUpdate
|
|
2305
|
+
|
|
2306
|
+
constructor(license, params) {
|
|
2307
|
+
this.license = license
|
|
2308
|
+
this.licenseUpdate = params?.licenseUpdate
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/***/ }),
|
|
2313
|
+
|
|
2314
|
+
/***/ "./src/init/init_exception.js":
|
|
2315
|
+
/*!************************************!*\
|
|
2316
|
+
!*** ./src/init/init_exception.js ***!
|
|
2317
|
+
\************************************/
|
|
2318
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2319
|
+
|
|
2320
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2321
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2322
|
+
/* harmony export */ InitErrorCode: () => (/* binding */ InitErrorCode),
|
|
2323
|
+
/* harmony export */ InitException: () => (/* binding */ InitException)
|
|
2324
|
+
/* harmony export */ });
|
|
2325
|
+
/* harmony import */ var _license_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./license_exception */ "./src/init/license_exception.js");
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
class InitException {
|
|
2329
|
+
code
|
|
2330
|
+
message
|
|
2331
|
+
underlyingError
|
|
2332
|
+
|
|
2333
|
+
static fromJson(jsonObject) {
|
|
2334
|
+
if (jsonObject == null) return null
|
|
2335
|
+
const result = new InitException()
|
|
2336
|
+
|
|
2337
|
+
result.code = jsonObject["code"]
|
|
2338
|
+
result.message = jsonObject["message"] ?? ""
|
|
2339
|
+
result.underlyingError = _license_exception__WEBPACK_IMPORTED_MODULE_0__.LicenseException.fromJson(jsonObject["underlyingError"])
|
|
2340
|
+
|
|
2341
|
+
return result
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
const InitErrorCode = {
|
|
2346
|
+
IN_PROGRESS_ALREADY: 0,
|
|
2347
|
+
MISSING_CORE: 1,
|
|
2348
|
+
INTERNAL_CORE_ERROR: 2,
|
|
2349
|
+
BAD_LICENSE: 3,
|
|
2350
|
+
UNAVAILABLE: 4,
|
|
2351
|
+
CONTEXT_IS_NULL: 100,
|
|
2352
|
+
RESOURCE_DAT_ABSENT: 101,
|
|
2353
|
+
LICENSE_IS_NULL: 102,
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/***/ }),
|
|
2357
|
+
|
|
2358
|
+
/***/ "./src/init/license_exception.js":
|
|
2359
|
+
/*!***************************************!*\
|
|
2360
|
+
!*** ./src/init/license_exception.js ***!
|
|
2361
|
+
\***************************************/
|
|
2362
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2363
|
+
|
|
2364
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2365
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2366
|
+
/* harmony export */ LicenseException: () => (/* binding */ LicenseException),
|
|
2367
|
+
/* harmony export */ LicensingResultCode: () => (/* binding */ LicensingResultCode)
|
|
2368
|
+
/* harmony export */ });
|
|
2369
|
+
class LicenseException {
|
|
2370
|
+
code
|
|
2371
|
+
message
|
|
2372
|
+
|
|
2373
|
+
static fromJson(jsonObject) {
|
|
2374
|
+
if (jsonObject == null) return null
|
|
2375
|
+
const result = new LicenseException()
|
|
2376
|
+
|
|
2377
|
+
result.code = jsonObject["code"]
|
|
2378
|
+
result.message = jsonObject["message"] ?? ""
|
|
2379
|
+
|
|
2380
|
+
return result
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
const LicensingResultCode = {
|
|
2385
|
+
OK: 0,
|
|
2386
|
+
LICENSE_CORRUPTED: 1,
|
|
2387
|
+
INVALID_DATE: 2,
|
|
2388
|
+
INVALID_VERSION: 3,
|
|
2389
|
+
INVALID_DEVICE_ID: 4,
|
|
2390
|
+
INVALID_SYSTEM_OR_APP_ID: 5,
|
|
2391
|
+
NO_CAPABILITIES: 6,
|
|
2392
|
+
NO_AUTHENTICITY: 7,
|
|
2393
|
+
LICENSE_ABSENT: 8,
|
|
2394
|
+
NO_INTERNET: 9,
|
|
2395
|
+
NO_DATABASE: 10,
|
|
2396
|
+
DATABASE_INCORRECT: 11,
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
/***/ }),
|
|
2400
|
+
|
|
2401
|
+
/***/ "./src/internal/bridge.js":
|
|
2402
|
+
/*!********************************!*\
|
|
2403
|
+
!*** ./src/internal/bridge.js ***!
|
|
2404
|
+
\********************************/
|
|
2405
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2406
|
+
|
|
2407
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2408
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2409
|
+
/* harmony export */ _setCameraSwitchCallback: () => (/* binding */ _setCameraSwitchCallback),
|
|
2410
|
+
/* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
|
|
2411
|
+
/* harmony export */ _setLivenessNotificationCompletion: () => (/* binding */ _setLivenessNotificationCompletion),
|
|
2412
|
+
/* harmony export */ _setVideoEncoderCompletion: () => (/* binding */ _setVideoEncoderCompletion),
|
|
2413
|
+
/* harmony export */ exec: () => (/* binding */ exec)
|
|
2414
|
+
/* harmony export */ });
|
|
2415
|
+
/* harmony import */ var _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../liveness/liveness_notification */ "./src/liveness/liveness_notification.js");
|
|
2416
|
+
/* harmony import */ var _cordova__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cordova */ "./src/internal/cordova.js");
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
const { RNFaceSDK } = _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeModules
|
|
2421
|
+
var eventManager = new _cordova__WEBPACK_IMPORTED_MODULE_1__.NativeEventEmitter(RNFaceSDK)
|
|
2422
|
+
|
|
2423
|
+
async function exec(name, params) {
|
|
2424
|
+
return RNFaceSDK.exec(name, params)
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
function _setEvent(id, completion) {
|
|
2428
|
+
eventManager.removeAllListeners(id)
|
|
2429
|
+
if (completion != null)
|
|
2430
|
+
eventManager.addListener(id, completion)
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
function _setCustomButtonTappedCompletion(completion) {
|
|
2434
|
+
_setEvent("onCustomButtonTappedEvent", completion)
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
function _setVideoEncoderCompletion(completion) {
|
|
2438
|
+
_setEvent("video_encoder_completion", (json) => {
|
|
2439
|
+
var jsonObject = JSON.parse(json)
|
|
2440
|
+
var transactionId = jsonObject["transactionId"]
|
|
2441
|
+
var success = jsonObject["success"]
|
|
2442
|
+
completion(transactionId, success)
|
|
2443
|
+
})
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
function _setLivenessNotificationCompletion(completion) {
|
|
2447
|
+
_setEvent("livenessNotificationEvent", (json) => {
|
|
2448
|
+
var livenessNotification = _liveness_liveness_notification__WEBPACK_IMPORTED_MODULE_0__.LivenessNotification.fromJson(JSON.parse(json))
|
|
2449
|
+
completion(livenessNotification)
|
|
2450
|
+
})
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
function _setCameraSwitchCallback(completion) {
|
|
2454
|
+
_setEvent("cameraSwitchEvent", completion)
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
/***/ }),
|
|
2458
|
+
|
|
2459
|
+
/***/ "./src/internal/cordova.js":
|
|
2460
|
+
/*!*********************************!*\
|
|
2461
|
+
!*** ./src/internal/cordova.js ***!
|
|
2462
|
+
\*********************************/
|
|
2463
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2464
|
+
|
|
2465
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2466
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2467
|
+
/* harmony export */ NativeEventEmitter: () => (/* binding */ NativeEventEmitter),
|
|
2468
|
+
/* harmony export */ NativeModules: () => (/* binding */ NativeModules)
|
|
2469
|
+
/* harmony export */ });
|
|
2470
|
+
var _exec = (completion, params) => cordova.exec(completion, null, "FaceSDK", "exec", params)
|
|
2471
|
+
|
|
2472
|
+
const NativeModules = {
|
|
2473
|
+
RNFaceSDK: {
|
|
2474
|
+
exec: async (name, params) => new Promise((resolve, _) => _exec(data => resolve(data), [name, ...params]))
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
class NativeEventEmitter {
|
|
2479
|
+
addListener(id, completion) {
|
|
2480
|
+
_exec(completion, ["setEvent", id])
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
removeAllListeners(id) {
|
|
2484
|
+
_exec(null, ["setEvent", id])
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
/***/ }),
|
|
2489
|
+
|
|
2490
|
+
/***/ "./src/liveness/liveness_backend_exception.js":
|
|
2491
|
+
/*!****************************************************!*\
|
|
2492
|
+
!*** ./src/liveness/liveness_backend_exception.js ***!
|
|
2493
|
+
\****************************************************/
|
|
2494
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2495
|
+
|
|
2496
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2497
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2498
|
+
/* harmony export */ LivenessBackendErrorCode: () => (/* binding */ LivenessBackendErrorCode),
|
|
2499
|
+
/* harmony export */ LivenessBackendException: () => (/* binding */ LivenessBackendException)
|
|
2500
|
+
/* harmony export */ });
|
|
2501
|
+
class LivenessBackendException {
|
|
2502
|
+
code
|
|
2503
|
+
message
|
|
2504
|
+
|
|
2505
|
+
static fromJson(jsonObject) {
|
|
2506
|
+
if (jsonObject == null) return null
|
|
2507
|
+
const result = new LivenessBackendException()
|
|
2508
|
+
|
|
2509
|
+
result.code = jsonObject["code"]
|
|
2510
|
+
result.message = jsonObject["message"] ?? ""
|
|
2511
|
+
|
|
2512
|
+
return result
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
const LivenessBackendErrorCode = {
|
|
2517
|
+
UNDEFINED: -1,
|
|
2518
|
+
NO_LICENSE: 200,
|
|
2519
|
+
LOW_QUALITY: 231,
|
|
2520
|
+
TRACK_BREAK: 246,
|
|
2521
|
+
CLOSED_EYES_DETECTED: 230,
|
|
2522
|
+
HIGH_ASYMMETRY: 232,
|
|
2523
|
+
FACE_OVER_EMOTIONAL: 233,
|
|
2524
|
+
SUNGLASSES_DETECTED: 234,
|
|
2525
|
+
SMALL_AGE: 235,
|
|
2526
|
+
HEADDRESS_DETECTED: 236,
|
|
2527
|
+
MEDICINE_MASK_DETECTED: 239,
|
|
2528
|
+
OCCLUSION_DETECTED: 240,
|
|
2529
|
+
FOREHEAD_GLASSES_DETECTED: 242,
|
|
2530
|
+
MOUTH_OPENED: 243,
|
|
2531
|
+
ART_MASK_DETECTED: 244,
|
|
2532
|
+
NOT_MATCHED: 237,
|
|
2533
|
+
IMAGES_COUNT_LIMIT_EXCEEDED: 238,
|
|
2534
|
+
ELECTRONIC_DEVICE_DETECTED: 245,
|
|
2535
|
+
WRONG_GEO: 247,
|
|
2536
|
+
WRONG_OF: 248,
|
|
2537
|
+
WRONG_VIEW: 249,
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
/***/ }),
|
|
2541
|
+
|
|
2542
|
+
/***/ "./src/liveness/liveness_config.js":
|
|
2543
|
+
/*!*****************************************!*\
|
|
2544
|
+
!*** ./src/liveness/liveness_config.js ***!
|
|
2545
|
+
\*****************************************/
|
|
2546
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2547
|
+
|
|
2548
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2549
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2550
|
+
/* harmony export */ LivenessConfig: () => (/* binding */ LivenessConfig),
|
|
2551
|
+
/* harmony export */ LivenessSkipStep: () => (/* binding */ LivenessSkipStep),
|
|
2552
|
+
/* harmony export */ LivenessType: () => (/* binding */ LivenessType),
|
|
2553
|
+
/* harmony export */ RecordingProcess: () => (/* binding */ RecordingProcess)
|
|
2554
|
+
/* harmony export */ });
|
|
2555
|
+
/* harmony import */ var _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../customization/camera_position */ "./src/customization/camera_position.js");
|
|
2556
|
+
/* harmony import */ var _customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../customization/screen_orientation */ "./src/customization/screen_orientation.js");
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
class LivenessConfig {
|
|
2561
|
+
copyright
|
|
2562
|
+
cameraSwitchEnabled
|
|
2563
|
+
closeButtonEnabled
|
|
2564
|
+
torchButtonEnabled
|
|
2565
|
+
vibrateOnSteps
|
|
2566
|
+
cameraPositionIOS
|
|
2567
|
+
screenOrientation
|
|
2568
|
+
cameraPositionAndroid
|
|
2569
|
+
locationTrackingEnabled
|
|
2570
|
+
attemptsCount
|
|
2571
|
+
recordingProcess
|
|
2572
|
+
livenessType
|
|
2573
|
+
tag
|
|
2574
|
+
skipStep
|
|
2575
|
+
metadata
|
|
2576
|
+
|
|
2577
|
+
constructor(params) {
|
|
2578
|
+
this.copyright = params?.copyright ?? true
|
|
2579
|
+
this.cameraSwitchEnabled = params?.cameraSwitchEnabled ?? false
|
|
2580
|
+
this.closeButtonEnabled = params?.closeButtonEnabled ?? true
|
|
2581
|
+
this.torchButtonEnabled = params?.torchButtonEnabled ?? true
|
|
2582
|
+
this.vibrateOnSteps = params?.vibrateOnSteps ?? true
|
|
2583
|
+
this.cameraPositionIOS = params?.cameraPositionIOS ?? _customization_camera_position__WEBPACK_IMPORTED_MODULE_0__.CameraPosition.FRONT
|
|
2584
|
+
this.screenOrientation = params?.screenOrientation ?? [_customization_screen_orientation__WEBPACK_IMPORTED_MODULE_1__.ScreenOrientation.PORTRAIT]
|
|
2585
|
+
this.locationTrackingEnabled = params?.locationTrackingEnabled ?? true
|
|
2586
|
+
this.attemptsCount = params?.attemptsCount ?? 0
|
|
2587
|
+
this.recordingProcess = params?.recordingProcess ?? RecordingProcess.ASYNCHRONOUS_UPLOAD
|
|
2588
|
+
this.livenessType = params?.livenessType ?? LivenessType.ACTIVE
|
|
2589
|
+
this.skipStep = params?.skipStep ?? []
|
|
2590
|
+
this.cameraPositionAndroid = params?.cameraPositionAndroid
|
|
2591
|
+
this.tag = params?.tag
|
|
2592
|
+
this.metadata = params?.metadata
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
const RecordingProcess = {
|
|
2597
|
+
ASYNCHRONOUS_UPLOAD: 0,
|
|
2598
|
+
SYNCHRONOUS_UPLOAD: 1,
|
|
2599
|
+
NOT_UPLOAD: 2,
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
const LivenessType = {
|
|
2603
|
+
ACTIVE: 0,
|
|
2604
|
+
PASSIVE: 1,
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
const LivenessSkipStep = {
|
|
2608
|
+
ONBOARDING_STEP: 0,
|
|
2609
|
+
SUCCESS_STEP: 1,
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
/***/ }),
|
|
2613
|
+
|
|
2614
|
+
/***/ "./src/liveness/liveness_exception.js":
|
|
2615
|
+
/*!********************************************!*\
|
|
2616
|
+
!*** ./src/liveness/liveness_exception.js ***!
|
|
2617
|
+
\********************************************/
|
|
2618
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2619
|
+
|
|
2620
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2621
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2622
|
+
/* harmony export */ LivenessErrorCode: () => (/* binding */ LivenessErrorCode),
|
|
2623
|
+
/* harmony export */ LivenessException: () => (/* binding */ LivenessException)
|
|
2624
|
+
/* harmony export */ });
|
|
2625
|
+
/* harmony import */ var _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_backend_exception */ "./src/liveness/liveness_backend_exception.js");
|
|
2626
|
+
|
|
2627
|
+
|
|
2628
|
+
class LivenessException {
|
|
2629
|
+
code
|
|
2630
|
+
message
|
|
2631
|
+
underlyingError
|
|
2632
|
+
|
|
2633
|
+
static fromJson(jsonObject) {
|
|
2634
|
+
if (jsonObject == null) return null
|
|
2635
|
+
const result = new LivenessException()
|
|
2636
|
+
|
|
2637
|
+
result.code = jsonObject["code"]
|
|
2638
|
+
result.message = jsonObject["message"] ?? ""
|
|
2639
|
+
result.underlyingError = _liveness_backend_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessBackendException.fromJson(jsonObject["underlyingError"])
|
|
2640
|
+
|
|
2641
|
+
return result
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
const LivenessErrorCode = {
|
|
2646
|
+
NOT_INITIALIZED: 0,
|
|
2647
|
+
NO_LICENSE: 1,
|
|
2648
|
+
API_CALL_FAILED: 2,
|
|
2649
|
+
SESSION_START_FAILED: 3,
|
|
2650
|
+
CANCELLED: 4,
|
|
2651
|
+
PROCESSING_TIMEOUT: 5,
|
|
2652
|
+
PROCESSING_FAILED: 6,
|
|
2653
|
+
PROCESSING_FRAME_FAILED: 7,
|
|
2654
|
+
APPLICATION_INACTIVE: 8,
|
|
2655
|
+
CONTEXT_IS_NULL: 9,
|
|
2656
|
+
IN_PROGRESS_ALREADY: 10,
|
|
2657
|
+
ZOOM_NOT_SUPPORTED: 11,
|
|
2658
|
+
CAMERA_NO_PERMISSION: 12,
|
|
2659
|
+
CAMERA_NOT_AVAILABLE: 13,
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
/***/ }),
|
|
2663
|
+
|
|
2664
|
+
/***/ "./src/liveness/liveness_notification.js":
|
|
2665
|
+
/*!***********************************************!*\
|
|
2666
|
+
!*** ./src/liveness/liveness_notification.js ***!
|
|
2667
|
+
\***********************************************/
|
|
2668
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2669
|
+
|
|
2670
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2671
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2672
|
+
/* harmony export */ LivenessNotification: () => (/* binding */ LivenessNotification),
|
|
2673
|
+
/* harmony export */ LivenessProcessStatus: () => (/* binding */ LivenessProcessStatus)
|
|
2674
|
+
/* harmony export */ });
|
|
2675
|
+
/* harmony import */ var _liveness_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_response */ "./src/liveness/liveness_response.js");
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
class LivenessNotification {
|
|
2679
|
+
status
|
|
2680
|
+
response
|
|
2681
|
+
|
|
2682
|
+
static fromJson(jsonObject) {
|
|
2683
|
+
if (jsonObject == null) return null
|
|
2684
|
+
const result = new LivenessNotification()
|
|
2685
|
+
|
|
2686
|
+
result.status = jsonObject["status"]
|
|
2687
|
+
result.response = _liveness_response__WEBPACK_IMPORTED_MODULE_0__.LivenessResponse.fromJson(jsonObject["response"])
|
|
2688
|
+
|
|
2689
|
+
return result
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
const LivenessProcessStatus = {
|
|
2694
|
+
START: 0,
|
|
2695
|
+
PREPARING: 1,
|
|
2696
|
+
NEW_SESSION: 2,
|
|
2697
|
+
NEXT_STAGE: 3,
|
|
2698
|
+
SECTOR_CHANGED: 4,
|
|
2699
|
+
PROGRESS: 5,
|
|
2700
|
+
LOW_BRIGHTNESS: 6,
|
|
2701
|
+
FIT_FACE: 7,
|
|
2702
|
+
MOVE_AWAY: 8,
|
|
2703
|
+
MOVE_CLOSER: 9,
|
|
2704
|
+
TURN_HEAD: 10,
|
|
2705
|
+
PROCESSING: 11,
|
|
2706
|
+
FAILED: 12,
|
|
2707
|
+
RETRY: 13,
|
|
2708
|
+
SUCCESS: 14,
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
/***/ }),
|
|
2712
|
+
|
|
2713
|
+
/***/ "./src/liveness/liveness_response.js":
|
|
2714
|
+
/*!*******************************************!*\
|
|
2715
|
+
!*** ./src/liveness/liveness_response.js ***!
|
|
2716
|
+
\*******************************************/
|
|
2717
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2718
|
+
|
|
2719
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2720
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2721
|
+
/* harmony export */ LivenessResponse: () => (/* binding */ LivenessResponse),
|
|
2722
|
+
/* harmony export */ LivenessStatus: () => (/* binding */ LivenessStatus)
|
|
2723
|
+
/* harmony export */ });
|
|
2724
|
+
/* harmony import */ var _liveness_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./liveness_exception */ "./src/liveness/liveness_exception.js");
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
|
|
2728
|
+
class LivenessResponse {
|
|
2729
|
+
image
|
|
2730
|
+
liveness
|
|
2731
|
+
tag
|
|
2732
|
+
transactionId
|
|
2733
|
+
estimatedAge
|
|
2734
|
+
error
|
|
2735
|
+
|
|
2736
|
+
static fromJson(jsonObject) {
|
|
2737
|
+
if (jsonObject == null) return null
|
|
2738
|
+
const result = new LivenessResponse()
|
|
2739
|
+
|
|
2740
|
+
result.image = jsonObject["image"]
|
|
2741
|
+
result.liveness = jsonObject["liveness"]
|
|
2742
|
+
result.tag = jsonObject["tag"]
|
|
2743
|
+
result.transactionId = jsonObject["transactionId"]
|
|
2744
|
+
result.estimatedAge = jsonObject["estimatedAge"]
|
|
2745
|
+
result.error = _liveness_exception__WEBPACK_IMPORTED_MODULE_0__.LivenessException.fromJson(jsonObject["error"])
|
|
2746
|
+
|
|
2747
|
+
return result
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
const LivenessStatus = {
|
|
2752
|
+
PASSED: 0,
|
|
2753
|
+
UNKNOWN: 1,
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
/***/ }),
|
|
2757
|
+
|
|
2758
|
+
/***/ "./src/match_faces/compared_face.js":
|
|
2759
|
+
/*!******************************************!*\
|
|
2760
|
+
!*** ./src/match_faces/compared_face.js ***!
|
|
2761
|
+
\******************************************/
|
|
2762
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2763
|
+
|
|
2764
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2765
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2766
|
+
/* harmony export */ ComparedFace: () => (/* binding */ ComparedFace)
|
|
2767
|
+
/* harmony export */ });
|
|
2768
|
+
/* harmony import */ var _match_faces_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2769
|
+
/* harmony import */ var _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
class ComparedFace {
|
|
2774
|
+
imageIndex
|
|
2775
|
+
image
|
|
2776
|
+
faceIndex
|
|
2777
|
+
face
|
|
2778
|
+
|
|
2779
|
+
static fromJson(jsonObject) {
|
|
2780
|
+
if (jsonObject == null) return null
|
|
2781
|
+
const result = new ComparedFace()
|
|
2782
|
+
|
|
2783
|
+
result.imageIndex = jsonObject["imageIndex"]
|
|
2784
|
+
result.image = _match_faces_image__WEBPACK_IMPORTED_MODULE_0__.MatchFacesImage.fromJson(jsonObject["image"])
|
|
2785
|
+
result.faceIndex = jsonObject["faceIndex"]
|
|
2786
|
+
result.face = _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetectionFace.fromJson(jsonObject["face"])
|
|
2787
|
+
|
|
2788
|
+
return result
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
/***/ }),
|
|
2793
|
+
|
|
2794
|
+
/***/ "./src/match_faces/compared_faces_pair.js":
|
|
2795
|
+
/*!************************************************!*\
|
|
2796
|
+
!*** ./src/match_faces/compared_faces_pair.js ***!
|
|
2797
|
+
\************************************************/
|
|
2798
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2799
|
+
|
|
2800
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2801
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2802
|
+
/* harmony export */ ComparedFacesPair: () => (/* binding */ ComparedFacesPair)
|
|
2803
|
+
/* harmony export */ });
|
|
2804
|
+
/* harmony import */ var _compared_face__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compared_face */ "./src/match_faces/compared_face.js");
|
|
2805
|
+
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
class ComparedFacesPair {
|
|
2810
|
+
first
|
|
2811
|
+
second
|
|
2812
|
+
similarity
|
|
2813
|
+
score
|
|
2814
|
+
error
|
|
2815
|
+
|
|
2816
|
+
static fromJson(jsonObject) {
|
|
2817
|
+
if (jsonObject == null) return null
|
|
2818
|
+
const result = new ComparedFacesPair()
|
|
2819
|
+
|
|
2820
|
+
result.first = _compared_face__WEBPACK_IMPORTED_MODULE_0__.ComparedFace.fromJson(jsonObject["first"])
|
|
2821
|
+
result.second = _compared_face__WEBPACK_IMPORTED_MODULE_0__.ComparedFace.fromJson(jsonObject["second"])
|
|
2822
|
+
result.similarity = jsonObject["similarity"]
|
|
2823
|
+
result.score = jsonObject["score"]
|
|
2824
|
+
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_1__.MatchFacesException.fromJson(jsonObject["error"])
|
|
2825
|
+
|
|
2826
|
+
return result
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
/***/ }),
|
|
2831
|
+
|
|
2832
|
+
/***/ "./src/match_faces/compared_faces_split.js":
|
|
2833
|
+
/*!*************************************************!*\
|
|
2834
|
+
!*** ./src/match_faces/compared_faces_split.js ***!
|
|
2835
|
+
\*************************************************/
|
|
2836
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2837
|
+
|
|
2838
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2839
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2840
|
+
/* harmony export */ ComparedFacesSplit: () => (/* binding */ ComparedFacesSplit)
|
|
2841
|
+
/* harmony export */ });
|
|
2842
|
+
/* harmony import */ var _compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
2843
|
+
|
|
2844
|
+
|
|
2845
|
+
class ComparedFacesSplit {
|
|
2846
|
+
matchedFaces
|
|
2847
|
+
unmatchedFaces
|
|
2848
|
+
|
|
2849
|
+
static fromJson(jsonObject) {
|
|
2850
|
+
if (jsonObject == null) return null
|
|
2851
|
+
const result = new ComparedFacesSplit()
|
|
2852
|
+
|
|
2853
|
+
result.matchedFaces = []
|
|
2854
|
+
if (jsonObject["matchedFaces"] != null)
|
|
2855
|
+
for (const item of jsonObject["matchedFaces"])
|
|
2856
|
+
result.matchedFaces.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
2857
|
+
result.unmatchedFaces = []
|
|
2858
|
+
if (jsonObject["unmatchedFaces"] != null)
|
|
2859
|
+
for (const item of jsonObject["unmatchedFaces"])
|
|
2860
|
+
result.unmatchedFaces.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
2861
|
+
|
|
2862
|
+
return result
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
/***/ }),
|
|
2867
|
+
|
|
2868
|
+
/***/ "./src/match_faces/match_faces_backend_exception.js":
|
|
2869
|
+
/*!**********************************************************!*\
|
|
2870
|
+
!*** ./src/match_faces/match_faces_backend_exception.js ***!
|
|
2871
|
+
\**********************************************************/
|
|
2872
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2873
|
+
|
|
2874
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2875
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2876
|
+
/* harmony export */ MatchFacesBackendException: () => (/* binding */ MatchFacesBackendException)
|
|
2877
|
+
/* harmony export */ });
|
|
2878
|
+
class MatchFacesBackendException {
|
|
2879
|
+
code
|
|
2880
|
+
message
|
|
2881
|
+
|
|
2882
|
+
static fromJson(jsonObject) {
|
|
2883
|
+
if (jsonObject == null) return null
|
|
2884
|
+
const result = new MatchFacesBackendException()
|
|
2885
|
+
|
|
2886
|
+
result.code = jsonObject["code"]
|
|
2887
|
+
result.message = jsonObject["message"] ?? ""
|
|
2888
|
+
|
|
2889
|
+
return result
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
/***/ }),
|
|
2894
|
+
|
|
2895
|
+
/***/ "./src/match_faces/match_faces_config.js":
|
|
2896
|
+
/*!***********************************************!*\
|
|
2897
|
+
!*** ./src/match_faces/match_faces_config.js ***!
|
|
2898
|
+
\***********************************************/
|
|
2899
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2900
|
+
|
|
2901
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2902
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2903
|
+
/* harmony export */ MatchFacesConfig: () => (/* binding */ MatchFacesConfig),
|
|
2904
|
+
/* harmony export */ ProcessingMode: () => (/* binding */ ProcessingMode)
|
|
2905
|
+
/* harmony export */ });
|
|
2906
|
+
class MatchFacesConfig {
|
|
2907
|
+
processingMode
|
|
2908
|
+
|
|
2909
|
+
constructor(params) {
|
|
2910
|
+
this.processingMode = params?.processingMode ?? ProcessingMode.ONLINE
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
const ProcessingMode = {
|
|
2915
|
+
ONLINE: 0,
|
|
2916
|
+
OFFLINE: 1,
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
/***/ }),
|
|
2920
|
+
|
|
2921
|
+
/***/ "./src/match_faces/match_faces_detection.js":
|
|
2922
|
+
/*!**************************************************!*\
|
|
2923
|
+
!*** ./src/match_faces/match_faces_detection.js ***!
|
|
2924
|
+
\**************************************************/
|
|
2925
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2926
|
+
|
|
2927
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2928
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2929
|
+
/* harmony export */ MatchFacesDetection: () => (/* binding */ MatchFacesDetection)
|
|
2930
|
+
/* harmony export */ });
|
|
2931
|
+
/* harmony import */ var _match_faces_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_image */ "./src/match_faces/match_faces_image.js");
|
|
2932
|
+
/* harmony import */ var _match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection_face */ "./src/match_faces/match_faces_detection_face.js");
|
|
2933
|
+
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2938
|
+
class MatchFacesDetection {
|
|
2939
|
+
imageIndex
|
|
2940
|
+
image
|
|
2941
|
+
faces
|
|
2942
|
+
error
|
|
2943
|
+
|
|
2944
|
+
static fromJson(jsonObject) {
|
|
2945
|
+
if (jsonObject == null) return null
|
|
2946
|
+
const result = new MatchFacesDetection()
|
|
2947
|
+
|
|
2948
|
+
result.imageIndex = jsonObject["imageIndex"]
|
|
2949
|
+
result.image = _match_faces_image__WEBPACK_IMPORTED_MODULE_0__.MatchFacesImage.fromJson(jsonObject["image"])
|
|
2950
|
+
result.faces = []
|
|
2951
|
+
if (jsonObject["faces"] != null)
|
|
2952
|
+
for (const item of jsonObject["faces"])
|
|
2953
|
+
result.faces.push(_match_faces_detection_face__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetectionFace.fromJson(item))
|
|
2954
|
+
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__.MatchFacesException.fromJson(jsonObject["error"])
|
|
2955
|
+
|
|
2956
|
+
return result
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/***/ }),
|
|
2961
|
+
|
|
2962
|
+
/***/ "./src/match_faces/match_faces_detection_face.js":
|
|
2963
|
+
/*!*******************************************************!*\
|
|
2964
|
+
!*** ./src/match_faces/match_faces_detection_face.js ***!
|
|
2965
|
+
\*******************************************************/
|
|
2966
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2967
|
+
|
|
2968
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2969
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2970
|
+
/* harmony export */ MatchFacesDetectionFace: () => (/* binding */ MatchFacesDetectionFace)
|
|
2971
|
+
/* harmony export */ });
|
|
2972
|
+
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_params/point */ "./src/image_params/point.js");
|
|
2973
|
+
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
class MatchFacesDetectionFace {
|
|
2978
|
+
faceIndex
|
|
2979
|
+
landmarks
|
|
2980
|
+
faceRect
|
|
2981
|
+
rotationAngle
|
|
2982
|
+
originalRect
|
|
2983
|
+
crop
|
|
2984
|
+
|
|
2985
|
+
static fromJson(jsonObject) {
|
|
2986
|
+
if (jsonObject == null) return null
|
|
2987
|
+
const result = new MatchFacesDetectionFace()
|
|
2988
|
+
|
|
2989
|
+
result.faceIndex = jsonObject["faceIndex"]
|
|
2990
|
+
result.landmarks = []
|
|
2991
|
+
if (jsonObject["landmarks"] != null)
|
|
2992
|
+
for (const item of jsonObject["landmarks"])
|
|
2993
|
+
result.landmarks.push(_image_params_point__WEBPACK_IMPORTED_MODULE_0__.Point.fromJson(item))
|
|
2994
|
+
result.faceRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["faceRect"])
|
|
2995
|
+
result.rotationAngle = jsonObject["rotationAngle"]
|
|
2996
|
+
result.originalRect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["originalRect"])
|
|
2997
|
+
result.crop = jsonObject["crop"]
|
|
2998
|
+
|
|
2999
|
+
return result
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
/***/ }),
|
|
3004
|
+
|
|
3005
|
+
/***/ "./src/match_faces/match_faces_exception.js":
|
|
3006
|
+
/*!**************************************************!*\
|
|
3007
|
+
!*** ./src/match_faces/match_faces_exception.js ***!
|
|
3008
|
+
\**************************************************/
|
|
3009
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3010
|
+
|
|
3011
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3012
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3013
|
+
/* harmony export */ MatchFacesErrorCode: () => (/* binding */ MatchFacesErrorCode),
|
|
3014
|
+
/* harmony export */ MatchFacesException: () => (/* binding */ MatchFacesException)
|
|
3015
|
+
/* harmony export */ });
|
|
3016
|
+
/* harmony import */ var _match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match_faces_backend_exception */ "./src/match_faces/match_faces_backend_exception.js");
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
class MatchFacesException {
|
|
3020
|
+
code
|
|
3021
|
+
message
|
|
3022
|
+
underlyingError
|
|
3023
|
+
|
|
3024
|
+
static fromJson(jsonObject) {
|
|
3025
|
+
if (jsonObject == null) return null
|
|
3026
|
+
const result = new MatchFacesException()
|
|
3027
|
+
|
|
3028
|
+
result.code = jsonObject["code"]
|
|
3029
|
+
result.message = jsonObject["message"] ?? ""
|
|
3030
|
+
result.underlyingError = _match_faces_backend_exception__WEBPACK_IMPORTED_MODULE_0__.MatchFacesBackendException.fromJson(jsonObject["underlyingError"])
|
|
3031
|
+
|
|
3032
|
+
return result
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
const MatchFacesErrorCode = {
|
|
3037
|
+
IMAGE_EMPTY: 0,
|
|
3038
|
+
FACE_NOT_DETECTED: 1,
|
|
3039
|
+
LANDMARKS_NOT_DETECTED: 2,
|
|
3040
|
+
FACE_ALIGNER_FAILED: 3,
|
|
3041
|
+
DESCRIPTOR_EXTRACTOR_ERROR: 4,
|
|
3042
|
+
IMAGES_COUNT_LIMIT_EXCEEDED: 5,
|
|
3043
|
+
API_CALL_FAILED: 6,
|
|
3044
|
+
PROCESSING_FAILED: 7,
|
|
3045
|
+
NO_LICENSE: 8,
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
/***/ }),
|
|
3049
|
+
|
|
3050
|
+
/***/ "./src/match_faces/match_faces_image.js":
|
|
3051
|
+
/*!**********************************************!*\
|
|
3052
|
+
!*** ./src/match_faces/match_faces_image.js ***!
|
|
3053
|
+
\**********************************************/
|
|
3054
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3055
|
+
|
|
3056
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3057
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3058
|
+
/* harmony export */ MatchFacesImage: () => (/* binding */ MatchFacesImage)
|
|
3059
|
+
/* harmony export */ });
|
|
3060
|
+
class MatchFacesImage {
|
|
3061
|
+
image
|
|
3062
|
+
imageType
|
|
3063
|
+
detectAll
|
|
3064
|
+
identifier
|
|
3065
|
+
|
|
3066
|
+
constructor(image, imageType, params) {
|
|
3067
|
+
this.image = image
|
|
3068
|
+
this.imageType = imageType
|
|
3069
|
+
this.detectAll = params?.detectAll ?? false
|
|
3070
|
+
this.identifier = ""
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
static fromJson(jsonObject) {
|
|
3074
|
+
if (jsonObject == null) return null
|
|
3075
|
+
const result = new MatchFacesImage()
|
|
3076
|
+
|
|
3077
|
+
result.image = jsonObject["image"]
|
|
3078
|
+
result.imageType = jsonObject["imageType"]
|
|
3079
|
+
result.detectAll = jsonObject["detectAll"]
|
|
3080
|
+
result.identifier = jsonObject["identifier"]
|
|
3081
|
+
|
|
3082
|
+
return result
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
/***/ }),
|
|
3087
|
+
|
|
3088
|
+
/***/ "./src/match_faces/match_faces_request.js":
|
|
3089
|
+
/*!************************************************!*\
|
|
3090
|
+
!*** ./src/match_faces/match_faces_request.js ***!
|
|
3091
|
+
\************************************************/
|
|
3092
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3093
|
+
|
|
3094
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3095
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3096
|
+
/* harmony export */ MatchFacesRequest: () => (/* binding */ MatchFacesRequest)
|
|
3097
|
+
/* harmony export */ });
|
|
3098
|
+
class MatchFacesRequest {
|
|
3099
|
+
images
|
|
3100
|
+
outputImageParams
|
|
3101
|
+
tag
|
|
3102
|
+
metadata
|
|
3103
|
+
|
|
3104
|
+
constructor(images, params) {
|
|
3105
|
+
this.images = images
|
|
3106
|
+
this.outputImageParams = params?.outputImageParams
|
|
3107
|
+
this.tag = params?.tag
|
|
3108
|
+
this.metadata = params?.metadata
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
/***/ }),
|
|
3113
|
+
|
|
3114
|
+
/***/ "./src/match_faces/match_faces_response.js":
|
|
3115
|
+
/*!*************************************************!*\
|
|
3116
|
+
!*** ./src/match_faces/match_faces_response.js ***!
|
|
3117
|
+
\*************************************************/
|
|
3118
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3119
|
+
|
|
3120
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3121
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3122
|
+
/* harmony export */ MatchFacesResponse: () => (/* binding */ MatchFacesResponse)
|
|
3123
|
+
/* harmony export */ });
|
|
3124
|
+
/* harmony import */ var _compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./compared_faces_pair */ "./src/match_faces/compared_faces_pair.js");
|
|
3125
|
+
/* harmony import */ var _match_faces_detection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./match_faces_detection */ "./src/match_faces/match_faces_detection.js");
|
|
3126
|
+
/* harmony import */ var _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./match_faces_exception */ "./src/match_faces/match_faces_exception.js");
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
class MatchFacesResponse {
|
|
3132
|
+
results
|
|
3133
|
+
detections
|
|
3134
|
+
tag
|
|
3135
|
+
error
|
|
3136
|
+
|
|
3137
|
+
static fromJson(jsonObject) {
|
|
3138
|
+
if (jsonObject == null) return null
|
|
3139
|
+
const result = new MatchFacesResponse()
|
|
3140
|
+
|
|
3141
|
+
result.results = []
|
|
3142
|
+
if (jsonObject["results"] != null)
|
|
3143
|
+
for (const item of jsonObject["results"])
|
|
3144
|
+
result.results.push(_compared_faces_pair__WEBPACK_IMPORTED_MODULE_0__.ComparedFacesPair.fromJson(item))
|
|
3145
|
+
result.detections = []
|
|
3146
|
+
if (jsonObject["detections"] != null)
|
|
3147
|
+
for (const item of jsonObject["detections"])
|
|
3148
|
+
result.detections.push(_match_faces_detection__WEBPACK_IMPORTED_MODULE_1__.MatchFacesDetection.fromJson(item))
|
|
3149
|
+
result.tag = jsonObject["tag"]
|
|
3150
|
+
result.error = _match_faces_exception__WEBPACK_IMPORTED_MODULE_2__.MatchFacesException.fromJson(jsonObject["error"])
|
|
3151
|
+
|
|
3152
|
+
return result
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
/***/ }),
|
|
3157
|
+
|
|
3158
|
+
/***/ "./src/person_database/edit_group_persons_request.js":
|
|
3159
|
+
/*!***********************************************************!*\
|
|
3160
|
+
!*** ./src/person_database/edit_group_persons_request.js ***!
|
|
3161
|
+
\***********************************************************/
|
|
3162
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3163
|
+
|
|
3164
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3165
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3166
|
+
/* harmony export */ EditGroupPersonsRequest: () => (/* binding */ EditGroupPersonsRequest)
|
|
3167
|
+
/* harmony export */ });
|
|
3168
|
+
class EditGroupPersonsRequest {
|
|
3169
|
+
personIdsToAdd
|
|
3170
|
+
personIdsToRemove
|
|
3171
|
+
|
|
3172
|
+
constructor(params) {
|
|
3173
|
+
this.personIdsToAdd = params?.personIdsToAdd
|
|
3174
|
+
this.personIdsToRemove = params?.personIdsToRemove
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
/***/ }),
|
|
3180
|
+
|
|
3181
|
+
/***/ "./src/person_database/image_upload.js":
|
|
3182
|
+
/*!*********************************************!*\
|
|
3183
|
+
!*** ./src/person_database/image_upload.js ***!
|
|
3184
|
+
\*********************************************/
|
|
3185
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3186
|
+
|
|
3187
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3188
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3189
|
+
/* harmony export */ ImageUpload: () => (/* binding */ ImageUpload)
|
|
3190
|
+
/* harmony export */ });
|
|
3191
|
+
class ImageUpload {
|
|
3192
|
+
imageData
|
|
3193
|
+
imageUrl
|
|
3194
|
+
|
|
3195
|
+
static withImageData(imageData) {
|
|
3196
|
+
var result = new ImageUpload()
|
|
3197
|
+
result.imageData = imageData
|
|
3198
|
+
return result
|
|
3199
|
+
}
|
|
3200
|
+
|
|
3201
|
+
static withImageUrl(imageUrl) {
|
|
3202
|
+
var result = new ImageUpload()
|
|
3203
|
+
result.imageUrl = imageUrl
|
|
3204
|
+
return result
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
/***/ }),
|
|
3210
|
+
|
|
3211
|
+
/***/ "./src/person_database/pageable_item_list.js":
|
|
3212
|
+
/*!***************************************************!*\
|
|
3213
|
+
!*** ./src/person_database/pageable_item_list.js ***!
|
|
3214
|
+
\***************************************************/
|
|
3215
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3216
|
+
|
|
3217
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3218
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3219
|
+
/* harmony export */ PageableItemList: () => (/* binding */ PageableItemList)
|
|
3220
|
+
/* harmony export */ });
|
|
3221
|
+
class PageableItemList {
|
|
3222
|
+
items
|
|
3223
|
+
page
|
|
3224
|
+
totalPages
|
|
3225
|
+
|
|
3226
|
+
static fromJson(jsonObject, fromJSON) {
|
|
3227
|
+
if (jsonObject == null) return null
|
|
3228
|
+
var result = new PageableItemList()
|
|
3229
|
+
|
|
3230
|
+
if (jsonObject["items"] != null) {
|
|
3231
|
+
result.items = []
|
|
3232
|
+
for (var item of jsonObject["items"]) {
|
|
3233
|
+
var temp = fromJSON(item)
|
|
3234
|
+
if (temp != null) result.items.push(temp)
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
result.page = jsonObject["page"]
|
|
3238
|
+
result.totalPages = jsonObject["totalPages"]
|
|
3239
|
+
|
|
3240
|
+
return result
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
/***/ }),
|
|
3246
|
+
|
|
3247
|
+
/***/ "./src/person_database/person.js":
|
|
3248
|
+
/*!***************************************!*\
|
|
3249
|
+
!*** ./src/person_database/person.js ***!
|
|
3250
|
+
\***************************************/
|
|
3251
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3252
|
+
|
|
3253
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3254
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3255
|
+
/* harmony export */ Person: () => (/* binding */ Person)
|
|
3256
|
+
/* harmony export */ });
|
|
3257
|
+
class Person {
|
|
3258
|
+
name
|
|
3259
|
+
updatedAt
|
|
3260
|
+
groups
|
|
3261
|
+
id
|
|
3262
|
+
metadata
|
|
3263
|
+
createdAt
|
|
3264
|
+
|
|
3265
|
+
static fromJson(jsonObject) {
|
|
3266
|
+
if (jsonObject == null) return null
|
|
3267
|
+
var result = new Person()
|
|
3268
|
+
|
|
3269
|
+
result.name = jsonObject["name"]
|
|
3270
|
+
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
3271
|
+
result.groups = jsonObject["groups"]
|
|
3272
|
+
result.id = jsonObject["id"]
|
|
3273
|
+
result.metadata = jsonObject["metadata"]
|
|
3274
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3275
|
+
|
|
3276
|
+
return result
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
/***/ }),
|
|
3282
|
+
|
|
3283
|
+
/***/ "./src/person_database/person_database.js":
|
|
3284
|
+
/*!************************************************!*\
|
|
3285
|
+
!*** ./src/person_database/person_database.js ***!
|
|
3286
|
+
\************************************************/
|
|
3287
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3288
|
+
|
|
3289
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3290
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3291
|
+
/* harmony export */ PersonDatabase: () => (/* binding */ PersonDatabase)
|
|
3292
|
+
/* harmony export */ });
|
|
3293
|
+
/* harmony import */ var _internal_bridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/bridge */ "./src/internal/bridge.js");
|
|
3294
|
+
/* harmony import */ var _person__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./person */ "./src/person_database/person.js");
|
|
3295
|
+
/* harmony import */ var _person_image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./person_image */ "./src/person_database/person_image.js");
|
|
3296
|
+
/* harmony import */ var _pageable_item_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pageable_item_list */ "./src/person_database/pageable_item_list.js");
|
|
3297
|
+
/* harmony import */ var _person_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./person_group */ "./src/person_database/person_group.js");
|
|
3298
|
+
/* harmony import */ var _search_person__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./search_person */ "./src/person_database/search_person.js");
|
|
3299
|
+
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
class PersonDatabase {
|
|
3307
|
+
async createPerson(name, params) {
|
|
3308
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createPerson", [name, params?.groupIds, params?.metadata])
|
|
3309
|
+
return this._itemResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
async updatePerson(person) {
|
|
3313
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("updatePerson", [person])
|
|
3314
|
+
return this._successResponseFromJson(response)
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
async deletePerson(personId) {
|
|
3318
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deletePerson", [personId])
|
|
3319
|
+
return this._successResponseFromJson(response)
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
async getPerson(personId) {
|
|
3323
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPerson", [personId])
|
|
3324
|
+
return this._itemResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
async addPersonImage(personId, image) {
|
|
3328
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPersonImage", [personId, image])
|
|
3329
|
+
return this._itemResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
async deletePersonImage(personId, imageId) {
|
|
3333
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deletePersonImage", [personId, imageId])
|
|
3334
|
+
return this._successResponseFromJson(response)
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
async getPersonImage(personId, imageId) {
|
|
3338
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImage", [personId, imageId])
|
|
3339
|
+
return this._itemResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
async getPersonImages(personId) {
|
|
3343
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImages", [personId])
|
|
3344
|
+
return this._listResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
async getPersonImagesForPage(personId, page, size) {
|
|
3348
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonImagesForPage", [personId, page, size])
|
|
3349
|
+
return this._listResponseFromJson(response, _person_image__WEBPACK_IMPORTED_MODULE_2__.PersonImage.fromJson)
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
async createGroup(name, params) {
|
|
3353
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("createGroup", [name, params?.metadata])
|
|
3354
|
+
return this._itemResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
async updateGroup(group) {
|
|
3358
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("updateGroup", [group])
|
|
3359
|
+
return this._successResponseFromJson(response)
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
async editPersonsInGroup(groupId, request) {
|
|
3363
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("editPersonsInGroup", [groupId, request])
|
|
3364
|
+
return this._successResponseFromJson(response)
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
async deleteGroup(groupId) {
|
|
3368
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deleteGroup", [groupId])
|
|
3369
|
+
return this._successResponseFromJson(response)
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
async getGroup(groupId) {
|
|
3373
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getGroup", [groupId])
|
|
3374
|
+
return this._itemResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
async getGroups() {
|
|
3378
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getGroups", [])
|
|
3379
|
+
return this._listResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
async getGroupsForPage(page, size) {
|
|
3383
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getGroupsForPage", [page, size])
|
|
3384
|
+
return this._listResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
async getPersonGroups(personId) {
|
|
3388
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonGroups", [personId])
|
|
3389
|
+
return this._listResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
async getPersonGroupsForPage(personId, page, size) {
|
|
3393
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonGroupsForPage", [personId, page, size])
|
|
3394
|
+
return this._listResponseFromJson(response, _person_group__WEBPACK_IMPORTED_MODULE_4__.PersonGroup.fromJson)
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
async getPersonsInGroup(groupId) {
|
|
3398
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonsInGroup", [groupId])
|
|
3399
|
+
return this._listResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
async getPersonsInGroupForPage(groupId, page, size) {
|
|
3403
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getPersonsInGroupForPage", [groupId, page, size])
|
|
3404
|
+
return this._listResponseFromJson(response, _person__WEBPACK_IMPORTED_MODULE_1__.Person.fromJson)
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
async searchPerson(request) {
|
|
3408
|
+
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("searchPerson", [request])
|
|
3409
|
+
|
|
3410
|
+
var jsonObject = JSON.parse(response)
|
|
3411
|
+
var data = null
|
|
3412
|
+
if (jsonObject["data"] != null) {
|
|
3413
|
+
data = []
|
|
3414
|
+
for (var item of jsonObject["data"])
|
|
3415
|
+
data.push(_search_person__WEBPACK_IMPORTED_MODULE_5__.SearchPerson.fromJson(item))
|
|
3416
|
+
}
|
|
3417
|
+
var error = jsonObject["error"]
|
|
3418
|
+
|
|
3419
|
+
return [data, error]
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
_successResponseFromJson(jsonString) {
|
|
3423
|
+
var jsonObject = JSON.parse(jsonString)
|
|
3424
|
+
var data = jsonObject["data"]
|
|
3425
|
+
var error = jsonObject["error"]
|
|
3426
|
+
var success = data ?? false
|
|
3427
|
+
return [success, error]
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
_itemResponseFromJson(jsonString, fromJSON) {
|
|
3431
|
+
var jsonObject = JSON.parse(jsonString)
|
|
3432
|
+
var data = fromJSON(jsonObject["data"])
|
|
3433
|
+
var error = jsonObject["error"]
|
|
3434
|
+
return [data, error]
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
_listResponseFromJson(jsonString, fromJSON) {
|
|
3438
|
+
var jsonObject = JSON.parse(jsonString)
|
|
3439
|
+
var data = _pageable_item_list__WEBPACK_IMPORTED_MODULE_3__.PageableItemList.fromJson(jsonObject["data"], fromJSON)
|
|
3440
|
+
var error = jsonObject["error"]
|
|
3441
|
+
return [data, error]
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
|
|
3446
|
+
/***/ }),
|
|
3447
|
+
|
|
3448
|
+
/***/ "./src/person_database/person_group.js":
|
|
3449
|
+
/*!*********************************************!*\
|
|
3450
|
+
!*** ./src/person_database/person_group.js ***!
|
|
3451
|
+
\*********************************************/
|
|
3452
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3453
|
+
|
|
3454
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3455
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3456
|
+
/* harmony export */ PersonGroup: () => (/* binding */ PersonGroup)
|
|
3457
|
+
/* harmony export */ });
|
|
3458
|
+
class PersonGroup {
|
|
3459
|
+
name
|
|
3460
|
+
id
|
|
3461
|
+
metadata
|
|
3462
|
+
createdAt
|
|
3463
|
+
|
|
3464
|
+
static fromJson(jsonObject) {
|
|
3465
|
+
if (jsonObject == null) return null
|
|
3466
|
+
var result = new PersonGroup()
|
|
3467
|
+
|
|
3468
|
+
result.name = jsonObject["name"]
|
|
3469
|
+
result.id = jsonObject["id"]
|
|
3470
|
+
result.metadata = jsonObject["metadata"]
|
|
3471
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3472
|
+
|
|
3473
|
+
return result
|
|
3474
|
+
}
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
|
|
3478
|
+
/***/ }),
|
|
3479
|
+
|
|
3480
|
+
/***/ "./src/person_database/person_image.js":
|
|
3481
|
+
/*!*********************************************!*\
|
|
3482
|
+
!*** ./src/person_database/person_image.js ***!
|
|
3483
|
+
\*********************************************/
|
|
3484
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3485
|
+
|
|
3486
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3487
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3488
|
+
/* harmony export */ PersonImage: () => (/* binding */ PersonImage)
|
|
3489
|
+
/* harmony export */ });
|
|
3490
|
+
class PersonImage {
|
|
3491
|
+
path
|
|
3492
|
+
url
|
|
3493
|
+
contentType
|
|
3494
|
+
id
|
|
3495
|
+
metadata
|
|
3496
|
+
createdAt
|
|
3497
|
+
|
|
3498
|
+
static fromJson(jsonObject) {
|
|
3499
|
+
if (jsonObject == null) return null
|
|
3500
|
+
var result = new PersonImage()
|
|
3501
|
+
|
|
3502
|
+
result.path = jsonObject["path"]
|
|
3503
|
+
result.url = jsonObject["url"]
|
|
3504
|
+
result.contentType = jsonObject["contentType"]
|
|
3505
|
+
result.id = jsonObject["id"]
|
|
3506
|
+
result.metadata = jsonObject["metadata"]
|
|
3507
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3508
|
+
|
|
3509
|
+
return result
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
/***/ }),
|
|
3515
|
+
|
|
3516
|
+
/***/ "./src/person_database/search_person.js":
|
|
3517
|
+
/*!**********************************************!*\
|
|
3518
|
+
!*** ./src/person_database/search_person.js ***!
|
|
3519
|
+
\**********************************************/
|
|
3520
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3521
|
+
|
|
3522
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3523
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3524
|
+
/* harmony export */ SearchPerson: () => (/* binding */ SearchPerson)
|
|
3525
|
+
/* harmony export */ });
|
|
3526
|
+
/* harmony import */ var _search_person_image__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./search_person_image */ "./src/person_database/search_person_image.js");
|
|
3527
|
+
/* harmony import */ var _search_person_detection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./search_person_detection */ "./src/person_database/search_person_detection.js");
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
class SearchPerson {
|
|
3532
|
+
images = []
|
|
3533
|
+
detection
|
|
3534
|
+
name
|
|
3535
|
+
updatedAt
|
|
3536
|
+
groups
|
|
3537
|
+
id
|
|
3538
|
+
metadata
|
|
3539
|
+
createdAt
|
|
3540
|
+
|
|
3541
|
+
static fromJson(jsonObject) {
|
|
3542
|
+
if (jsonObject == null) return null
|
|
3543
|
+
var result = new SearchPerson()
|
|
3544
|
+
|
|
3545
|
+
if (jsonObject["images"] != null)
|
|
3546
|
+
for (var item of jsonObject["images"])
|
|
3547
|
+
result.images.push(_search_person_image__WEBPACK_IMPORTED_MODULE_0__.SearchPersonImage.fromJson(item))
|
|
3548
|
+
result.detection = _search_person_detection__WEBPACK_IMPORTED_MODULE_1__.SearchPersonDetection.fromJson(jsonObject["detection"])
|
|
3549
|
+
result.name = jsonObject["name"]
|
|
3550
|
+
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
3551
|
+
result.groups = jsonObject["groups"]
|
|
3552
|
+
result.id = jsonObject["id"]
|
|
3553
|
+
result.metadata = jsonObject["metadata"]
|
|
3554
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3555
|
+
|
|
3556
|
+
return result
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
/***/ }),
|
|
3562
|
+
|
|
3563
|
+
/***/ "./src/person_database/search_person_detection.js":
|
|
3564
|
+
/*!********************************************************!*\
|
|
3565
|
+
!*** ./src/person_database/search_person_detection.js ***!
|
|
3566
|
+
\********************************************************/
|
|
3567
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3568
|
+
|
|
3569
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3570
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3571
|
+
/* harmony export */ SearchPersonDetection: () => (/* binding */ SearchPersonDetection)
|
|
3572
|
+
/* harmony export */ });
|
|
3573
|
+
/* harmony import */ var _image_params_point__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../image_params/point */ "./src/image_params/point.js");
|
|
3574
|
+
/* harmony import */ var _image_params_rect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../image_params/rect */ "./src/image_params/rect.js");
|
|
3575
|
+
|
|
3576
|
+
|
|
3577
|
+
|
|
3578
|
+
class SearchPersonDetection {
|
|
3579
|
+
landmarks = []
|
|
3580
|
+
rect
|
|
3581
|
+
crop
|
|
3582
|
+
rotationAngle
|
|
3583
|
+
|
|
3584
|
+
static fromJson(jsonObject) {
|
|
3585
|
+
if (jsonObject == null) return null
|
|
3586
|
+
var result = new SearchPersonDetection()
|
|
3587
|
+
|
|
3588
|
+
for (var item of jsonObject["landmarks"])
|
|
3589
|
+
result.landmarks.push(_image_params_point__WEBPACK_IMPORTED_MODULE_0__.Point.fromJson(item))
|
|
3590
|
+
result.rect = _image_params_rect__WEBPACK_IMPORTED_MODULE_1__.Rect.fromJson(jsonObject["rect"])
|
|
3591
|
+
result.crop = jsonObject["crop"]
|
|
3592
|
+
result.rotationAngle = jsonObject["rotationAngle"]
|
|
3593
|
+
|
|
3594
|
+
return result
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
/***/ }),
|
|
3600
|
+
|
|
3601
|
+
/***/ "./src/person_database/search_person_image.js":
|
|
3602
|
+
/*!****************************************************!*\
|
|
3603
|
+
!*** ./src/person_database/search_person_image.js ***!
|
|
3604
|
+
\****************************************************/
|
|
3605
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3606
|
+
|
|
3607
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3608
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3609
|
+
/* harmony export */ SearchPersonImage: () => (/* binding */ SearchPersonImage)
|
|
3610
|
+
/* harmony export */ });
|
|
3611
|
+
class SearchPersonImage {
|
|
3612
|
+
similarity
|
|
3613
|
+
distance
|
|
3614
|
+
path
|
|
3615
|
+
url
|
|
3616
|
+
contentType
|
|
3617
|
+
id
|
|
3618
|
+
metadata
|
|
3619
|
+
createdAt
|
|
3620
|
+
|
|
3621
|
+
static fromJson(jsonObject) {
|
|
3622
|
+
if (jsonObject == null) return null
|
|
3623
|
+
var result = new SearchPersonImage()
|
|
3624
|
+
|
|
3625
|
+
result.similarity = jsonObject["similarity"]
|
|
3626
|
+
result.distance = jsonObject["distance"]
|
|
3627
|
+
result.path = jsonObject["path"]
|
|
3628
|
+
result.url = jsonObject["url"]
|
|
3629
|
+
result.contentType = jsonObject["contentType"]
|
|
3630
|
+
result.id = jsonObject["id"]
|
|
3631
|
+
result.metadata = jsonObject["metadata"]
|
|
3632
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
3633
|
+
|
|
3634
|
+
return result
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
|
|
3639
|
+
/***/ }),
|
|
3640
|
+
|
|
3641
|
+
/***/ "./src/person_database/search_person_request.js":
|
|
3642
|
+
/*!******************************************************!*\
|
|
3643
|
+
!*** ./src/person_database/search_person_request.js ***!
|
|
3644
|
+
\******************************************************/
|
|
3645
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3646
|
+
|
|
3647
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3648
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3649
|
+
/* harmony export */ SearchPersonRequest: () => (/* binding */ SearchPersonRequest)
|
|
3650
|
+
/* harmony export */ });
|
|
3651
|
+
class SearchPersonRequest {
|
|
3652
|
+
imageUpload
|
|
3653
|
+
groupIdsForSearch
|
|
3654
|
+
threshold
|
|
3655
|
+
limit
|
|
3656
|
+
detectAll
|
|
3657
|
+
outputImageParams
|
|
3658
|
+
|
|
3659
|
+
constructor(image, params) {
|
|
3660
|
+
this.imageUpload = image
|
|
3661
|
+
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
3662
|
+
this.threshold = params?.threshold
|
|
3663
|
+
this.limit = params?.limit
|
|
3664
|
+
this.detectAll = params?.detectAll ?? false
|
|
3665
|
+
this.outputImageParams = params?.outputImageParams
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
/***/ })
|
|
3671
|
+
|
|
3672
|
+
/******/ });
|
|
3673
|
+
/************************************************************************/
|
|
3674
|
+
/******/ // The module cache
|
|
3675
|
+
/******/ var __webpack_module_cache__ = {};
|
|
3676
|
+
/******/
|
|
3677
|
+
/******/ // The require function
|
|
3678
|
+
/******/ function __webpack_require__(moduleId) {
|
|
3679
|
+
/******/ // Check if module is in cache
|
|
3680
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
3681
|
+
/******/ if (cachedModule !== undefined) {
|
|
3682
|
+
/******/ return cachedModule.exports;
|
|
3683
|
+
/******/ }
|
|
3684
|
+
/******/ // Create a new module (and put it into the cache)
|
|
3685
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
3686
|
+
/******/ // no module.id needed
|
|
3687
|
+
/******/ // no module.loaded needed
|
|
3688
|
+
/******/ exports: {}
|
|
3689
|
+
/******/ };
|
|
3690
|
+
/******/
|
|
3691
|
+
/******/ // Execute the module function
|
|
3692
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3693
|
+
/******/
|
|
3694
|
+
/******/ // Return the exports of the module
|
|
3695
|
+
/******/ return module.exports;
|
|
3696
|
+
/******/ }
|
|
3697
|
+
/******/
|
|
3698
|
+
/************************************************************************/
|
|
3699
|
+
/******/ /* webpack/runtime/define property getters */
|
|
3700
|
+
/******/ (() => {
|
|
3701
|
+
/******/ // define getter functions for harmony exports
|
|
3702
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
3703
|
+
/******/ for(var key in definition) {
|
|
3704
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
3705
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
3706
|
+
/******/ }
|
|
3707
|
+
/******/ }
|
|
3708
|
+
/******/ };
|
|
3709
|
+
/******/ })();
|
|
3710
|
+
/******/
|
|
3711
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
3712
|
+
/******/ (() => {
|
|
3713
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
3714
|
+
/******/ })();
|
|
3715
|
+
/******/
|
|
3716
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
3717
|
+
/******/ (() => {
|
|
3718
|
+
/******/ // define __esModule on exports
|
|
3719
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
3720
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
3721
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3722
|
+
/******/ }
|
|
3723
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
3724
|
+
/******/ };
|
|
3725
|
+
/******/ })();
|
|
3726
|
+
/******/
|
|
3727
|
+
/************************************************************************/
|
|
3728
|
+
/******/
|
|
3729
|
+
/******/ // startup
|
|
3730
|
+
/******/ // Load entry module and return exports
|
|
3731
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
3732
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/index.js");
|
|
3733
|
+
/******/ var __webpack_export_target__ = exports;
|
|
3734
|
+
/******/ for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
|
|
3735
|
+
/******/ if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
3736
|
+
/******/
|
|
3737
|
+
/******/ })()
|
|
3738
|
+
;
|