@regulaforensics/face-sdk 6.3.3-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/RNFaceSDK.podspec +21 -0
- package/android/CVDFaceSDK.kt +34 -0
- package/android/build.gradle +48 -0
- package/android/cordova.gradle +18 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +165 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +904 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +370 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +54 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiPackage.kt +11 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +287 -0
- package/examples/capacitor/.browserslistrc +6 -0
- package/examples/capacitor/.eslintrc.js +17 -0
- package/examples/capacitor/README.md +27 -0
- package/examples/capacitor/android/app/build.gradle +54 -0
- package/examples/capacitor/android/app/capacitor.build.gradle +22 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +43 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/faceapi/MainActivity.java +5 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/examples/capacitor/android/app/src/main/res/values/strings.xml +7 -0
- package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/examples/capacitor/android/build.gradle +30 -0
- package/examples/capacitor/android/capacitor.settings.gradle +15 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/examples/capacitor/android/gradle.properties +22 -0
- package/examples/capacitor/android/gradlew +244 -0
- package/examples/capacitor/android/gradlew.bat +92 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +16 -0
- package/examples/capacitor/capacitor.config.ts +12 -0
- package/examples/capacitor/cypress/e2e/test.cy.ts +6 -0
- package/examples/capacitor/cypress/fixtures/example.json +5 -0
- package/examples/capacitor/cypress/support/commands.ts +37 -0
- package/examples/capacitor/cypress/support/e2e.ts +20 -0
- package/examples/capacitor/cypress.config.ts +10 -0
- package/examples/capacitor/index.html +106 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +5 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +49 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/examples/capacitor/ios/App/App/Info.plist +53 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +410 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/capacitor/ios/App/Podfile +27 -0
- package/examples/capacitor/package.json +64 -0
- package/examples/capacitor/public/assets/.gitkeep +0 -0
- package/examples/capacitor/public/assets/img/id.png +0 -0
- package/examples/capacitor/public/assets/img/portrait.png +0 -0
- package/examples/capacitor/public/favicon.png +0 -0
- package/examples/capacitor/public/manifest.json +21 -0
- package/examples/capacitor/src/App.test.tsx +8 -0
- package/examples/capacitor/src/App.tsx +42 -0
- package/examples/capacitor/src/components/ExploreContainer.css +24 -0
- package/examples/capacitor/src/components/ExploreContainer.tsx +14 -0
- package/examples/capacitor/src/main.tsx +11 -0
- package/examples/capacitor/src/pages/Home.tsx +159 -0
- package/examples/capacitor/src/setupTests.ts +14 -0
- package/examples/capacitor/src/theme/variables.css +242 -0
- package/examples/capacitor/src/vite-env.d.ts +1 -0
- package/examples/capacitor/tsconfig.json +21 -0
- package/examples/capacitor/tsconfig.node.json +9 -0
- package/examples/capacitor/vite.config.ts +16 -0
- package/examples/cordova/.vscode/launch.json +28 -0
- package/examples/cordova/config.xml +37 -0
- package/examples/cordova/jsconfig.json +1 -0
- package/examples/cordova/package.json +40 -0
- package/examples/cordova/www/css/index.css +107 -0
- package/examples/cordova/www/img/id.png +0 -0
- package/examples/cordova/www/img/logo.png +0 -0
- package/examples/cordova/www/img/portrait.png +0 -0
- package/examples/cordova/www/index.html +94 -0
- package/examples/cordova/www/js/index.js +154 -0
- package/examples/ionic/angular.json +187 -0
- package/examples/ionic/browserslist +12 -0
- package/examples/ionic/config.xml +114 -0
- package/examples/ionic/e2e/protractor.conf.js +28 -0
- package/examples/ionic/e2e/src/app.e2e-spec.ts +14 -0
- package/examples/ionic/e2e/src/app.po.ts +11 -0
- package/examples/ionic/e2e/tsconfig.json +13 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/karma.conf.js +31 -0
- package/examples/ionic/package.json +97 -0
- package/examples/ionic/resources/README.md +8 -0
- package/examples/ionic/resources/android/icon/drawable-hdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-ldpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-mdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/xml/network_security_config.xml +6 -0
- package/examples/ionic/resources/icon.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-1024.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-24@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-27.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-44@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-83.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-86@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-98@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon.png +0 -0
- package/examples/ionic/resources/ios/icon/icon@2x.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-667h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
- package/examples/ionic/resources/ios/splash/Default~iphone.png +0 -0
- package/examples/ionic/resources/splash.png +0 -0
- package/examples/ionic/src/app/app-routing.module.ts +15 -0
- package/examples/ionic/src/app/app.component.html +3 -0
- package/examples/ionic/src/app/app.component.scss +0 -0
- package/examples/ionic/src/app/app.component.spec.ts +47 -0
- package/examples/ionic/src/app/app.component.ts +27 -0
- package/examples/ionic/src/app/app.module.ts +23 -0
- package/examples/ionic/src/app/home/home.module.ts +29 -0
- package/examples/ionic/src/app/home/home.page.html +75 -0
- package/examples/ionic/src/app/home/home.page.scss +1 -0
- package/examples/ionic/src/app/home/home.page.spec.ts +24 -0
- package/examples/ionic/src/app/home/home.page.ts +166 -0
- package/examples/ionic/src/assets/icon/favicon.png +0 -0
- package/examples/ionic/src/assets/img/portrait.png +0 -0
- package/examples/ionic/src/assets/shapes.svg +1 -0
- package/examples/ionic/src/environments/environment.prod.ts +3 -0
- package/examples/ionic/src/environments/environment.ts +16 -0
- package/examples/ionic/src/global.scss +31 -0
- package/examples/ionic/src/index.html +25 -0
- package/examples/ionic/src/main.ts +12 -0
- package/examples/ionic/src/polyfills.ts +66 -0
- package/examples/ionic/src/test.ts +20 -0
- package/examples/ionic/src/theme/variables.scss +77 -0
- package/examples/ionic/src/zone-flags.ts +5 -0
- package/examples/ionic/tsconfig.app.json +14 -0
- package/examples/ionic/tsconfig.json +26 -0
- package/examples/ionic/tsconfig.spec.json +19 -0
- package/examples/ionic/tslint.json +88 -0
- package/examples/react-native/.vscode/launch.json +26 -0
- package/examples/react-native/.watchmanconfig +1 -0
- package/examples/react-native/App.tsx +206 -0
- package/examples/react-native/Gemfile +8 -0
- package/examples/react-native/Gemfile.lock +134 -0
- package/examples/react-native/android/app/build.gradle +123 -0
- package/examples/react-native/android/app/debug.keystore +0 -0
- package/examples/react-native/android/app/proguard-rules.pro +10 -0
- package/examples/react-native/android/app/src/debug/AndroidManifest.xml +9 -0
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/react-native/android/app/src/main/assets/.gitkeep +0 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainActivity.kt +22 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +43 -0
- package/examples/react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/values/strings.xml +3 -0
- package/examples/react-native/android/app/src/main/res/values/styles.xml +9 -0
- package/examples/react-native/android/build.gradle +21 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/react-native/android/gradle.properties +39 -0
- package/examples/react-native/android/gradlew +249 -0
- package/examples/react-native/android/gradlew.bat +92 -0
- package/examples/react-native/android/settings.gradle +6 -0
- package/examples/react-native/images/portrait.png +0 -0
- package/examples/react-native/index.js +4 -0
- package/examples/react-native/ios/.xcode.env +11 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.h +6 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.mm +31 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/Contents.json +6 -0
- package/examples/react-native/ios/FaceSDK/Info.plist +51 -0
- package/examples/react-native/ios/FaceSDK/LaunchScreen.storyboard +47 -0
- package/examples/react-native/ios/FaceSDK/PrivacyInfo.xcprivacy +38 -0
- package/examples/react-native/ios/FaceSDK/main.m +10 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/project.pbxproj +719 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/xcshareddata/xcschemes/FaceSDK.xcscheme +88 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/react-native/ios/FaceSDKTests/FaceSDKTests.m +66 -0
- package/examples/react-native/ios/FaceSDKTests/Info.plist +24 -0
- package/examples/react-native/ios/Podfile +40 -0
- package/examples/react-native/ios/Podfile.lock +1822 -0
- package/examples/react-native/ios/license/.gitkeep +0 -0
- package/examples/react-native/metro.config.js +15 -0
- package/examples/react-native/package-lock.json +13098 -0
- package/examples/react-native/package.json +42 -0
- package/ios/CVDFaceSDK.h +7 -0
- package/ios/CVDFaceSDK.m +34 -0
- package/ios/RFSWConfig.h +27 -0
- package/ios/RFSWConfig.m +189 -0
- package/ios/RFSWJSONConstructor.h +134 -0
- package/ios/RFSWJSONConstructor.m +977 -0
- package/ios/RFSWMain.h +23 -0
- package/ios/RFSWMain.m +352 -0
- package/ios/RNFaceSDK.h +8 -0
- package/ios/RNFaceSDK.m +42 -0
- package/ios-ci/.gitlab-ci.yml +41 -0
- package/ios-ci/.sample-env +22 -0
- package/ios-ci/README.md +97 -0
- package/ios-ci/RegulaDanger/Package.swift +34 -0
- package/ios-ci/RegulaDanger/Sources/RegulaDanger/RegulaDanger.swift +44 -0
- package/ios-ci/RegulaDanger/Tests/LinuxMain.swift +7 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/RegulaDangerTests.swift +15 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/XCTestManifests.swift +9 -0
- package/ios-ci/install.sh +9 -0
- package/ios-ci/ios_ci/__init__.py +8 -0
- package/ios-ci/ios_ci/cli.py +408 -0
- package/ios-ci/ios_ci/common/__init__.py +0 -0
- package/ios-ci/ios_ci/common/build_index.py +70 -0
- package/ios-ci/ios_ci/common/clean_cocoapod.sh +13 -0
- package/ios-ci/ios_ci/common/dependency.py +466 -0
- package/ios-ci/ios_ci/common/ftp.py +314 -0
- package/ios-ci/ios_ci/common/searchpod.sh +6 -0
- package/ios-ci/ios_ci/common/wait_for_cocopod.sh +21 -0
- package/ios-ci/ios_ci/inject.py +145 -0
- package/ios-ci/ios_ci/podspec/__init__.py +0 -0
- package/ios-ci/ios_ci/podspec/podspec.py +88 -0
- package/ios-ci/ios_ci/podspec/templates/BTDevice.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/Core.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/DocumentReader.podspec +19 -0
- package/ios-ci/ios_ci/podspec/templates/FaceCore.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/FaceSDK.podspec +18 -0
- package/ios-ci/ios_ci/podspec/templates/IRS.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/RegulaCommon.podspec +17 -0
- package/ios-ci/ios_ci/resolve_podfile_common.py +76 -0
- package/ios-ci/ios_ci/spm/AppleRootCA-G3.cer +0 -0
- package/ios-ci/ios_ci/spm/AppleWWDRCAG3.cer +0 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator+Common.sh +48 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator.sh +33 -0
- package/ios-ci/ios_ci/spm/XcodeSPMCollection.json +29 -0
- package/ios-ci/ios_ci/spm/__init__.py +0 -0
- package/ios-ci/ios_ci/spm/askpass.py +19 -0
- package/ios-ci/ios_ci/spm/spm.py +227 -0
- package/ios-ci/ios_ci/upload_build.py +158 -0
- package/ios-ci/ios_ci/version.py +14 -0
- package/ios-ci/poetry.lock +342 -0
- package/ios-ci/pyproject.toml +26 -0
- package/ios-ci/scripts.py +9 -0
- package/ios-ci/tests/__init__.py +0 -0
- package/ios-ci/tests/podspec/fixtures/BTDevice.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/BTDeviceBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFID.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFIDBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDK.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDKBeta.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/IRS.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/IRSBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommon.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommonBeta.podspec +17 -0
- package/ios-ci/tests/podspec/test_podspec.py +188 -0
- package/ios-ci/tests/test_build_index.py +117 -0
- package/ios-ci/tests/test_dependency.py +139 -0
- package/ios-ci/tests/test_ios_ci.py +5 -0
- package/package.json +36 -0
- package/plugin.xml +48 -0
- package/www/capacitor/customization/camera_position.js +4 -0
- package/www/capacitor/customization/customization.js +66 -0
- package/www/capacitor/customization/customization_colors.js +233 -0
- package/www/capacitor/customization/customization_fonts.js +106 -0
- package/www/capacitor/customization/customization_images.js +129 -0
- package/www/capacitor/customization/font.js +23 -0
- package/www/capacitor/customization/screen_orientation.js +4 -0
- package/www/capacitor/detect_faces/detect_face_result.js +38 -0
- package/www/capacitor/detect_faces/detect_faces_attribute.js +15 -0
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/capacitor/detect_faces/detect_faces_config.js +14 -0
- package/www/capacitor/detect_faces/detect_faces_exception.js +30 -0
- package/www/capacitor/detect_faces/detect_faces_request.js +67 -0
- package/www/capacitor/detect_faces/detect_faces_response.js +24 -0
- package/www/capacitor/detect_faces/detect_faces_scenario.js +10 -0
- package/www/capacitor/face_capture/face_capture_config.js +28 -0
- package/www/capacitor/face_capture/face_capture_exception.js +25 -0
- package/www/capacitor/face_capture/face_capture_image.js +26 -0
- package/www/capacitor/face_capture/face_capture_response.js +17 -0
- package/www/capacitor/image_params/output_image_crop.js +21 -0
- package/www/capacitor/image_params/output_image_params.js +9 -0
- package/www/capacitor/image_params/point.js +14 -0
- package/www/capacitor/image_params/rect.js +18 -0
- package/www/capacitor/image_params/size.js +9 -0
- package/www/capacitor/image_quality/image_quality_characteristic.js +24 -0
- package/www/capacitor/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/capacitor/image_quality/image_quality_group.js +332 -0
- package/www/capacitor/image_quality/image_quality_range.js +26 -0
- package/www/capacitor/image_quality/image_quality_result.js +40 -0
- package/www/capacitor/index.js +219 -0
- package/www/capacitor/init/face_sdk_version.js +16 -0
- package/www/capacitor/init/init_config.js +9 -0
- package/www/capacitor/init/init_exception.js +29 -0
- package/www/capacitor/init/license_exception.js +29 -0
- package/www/capacitor/internal/bridge.js +39 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/internal/webpack.config.js +11 -0
- package/www/capacitor/liveness/liveness_backend_exception.js +38 -0
- package/www/capacitor/liveness/liveness_config.js +54 -0
- package/www/capacitor/liveness/liveness_exception.js +35 -0
- package/www/capacitor/liveness/liveness_notification.js +34 -0
- package/www/capacitor/liveness/liveness_response.js +30 -0
- package/www/capacitor/match_faces/compared_face.js +21 -0
- package/www/capacitor/match_faces/compared_faces_pair.js +23 -0
- package/www/capacitor/match_faces/compared_faces_split.js +22 -0
- package/www/capacitor/match_faces/match_faces_backend_exception.js +14 -0
- package/www/capacitor/match_faces/match_faces_config.js +12 -0
- package/www/capacitor/match_faces/match_faces_detection.js +25 -0
- package/www/capacitor/match_faces/match_faces_detection_face.js +28 -0
- package/www/capacitor/match_faces/match_faces_exception.js +30 -0
- package/www/capacitor/match_faces/match_faces_image.js +25 -0
- package/www/capacitor/match_faces/match_faces_request.js +13 -0
- package/www/capacitor/match_faces/match_faces_response.js +28 -0
- package/www/capacitor/person_database/edit_group_persons_request.js +9 -0
- package/www/capacitor/person_database/image_upload.js +16 -0
- package/www/capacitor/person_database/pageable_item_list.js +22 -0
- package/www/capacitor/person_database/person.js +22 -0
- package/www/capacitor/person_database/person_database.js +145 -0
- package/www/capacitor/person_database/person_group.js +18 -0
- package/www/capacitor/person_database/person_image.js +22 -0
- package/www/capacitor/person_database/search_person.js +31 -0
- package/www/capacitor/person_database/search_person_detection.js +22 -0
- package/www/capacitor/person_database/search_person_image.js +26 -0
- package/www/capacitor/person_database/search_person_request.js +17 -0
- package/www/cordova.js +3738 -0
- package/www/react-native/customization/camera_position.js +4 -0
- package/www/react-native/customization/customization.js +66 -0
- package/www/react-native/customization/customization_colors.js +233 -0
- package/www/react-native/customization/customization_fonts.js +106 -0
- package/www/react-native/customization/customization_images.js +129 -0
- package/www/react-native/customization/font.js +23 -0
- package/www/react-native/customization/screen_orientation.js +4 -0
- package/www/react-native/detect_faces/detect_face_result.js +38 -0
- package/www/react-native/detect_faces/detect_faces_attribute.js +15 -0
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/react-native/detect_faces/detect_faces_config.js +14 -0
- package/www/react-native/detect_faces/detect_faces_exception.js +30 -0
- package/www/react-native/detect_faces/detect_faces_request.js +67 -0
- package/www/react-native/detect_faces/detect_faces_response.js +24 -0
- package/www/react-native/detect_faces/detect_faces_scenario.js +10 -0
- package/www/react-native/face_capture/face_capture_config.js +28 -0
- package/www/react-native/face_capture/face_capture_exception.js +25 -0
- package/www/react-native/face_capture/face_capture_image.js +26 -0
- package/www/react-native/face_capture/face_capture_response.js +17 -0
- package/www/react-native/image_params/output_image_crop.js +21 -0
- package/www/react-native/image_params/output_image_params.js +9 -0
- package/www/react-native/image_params/point.js +14 -0
- package/www/react-native/image_params/rect.js +18 -0
- package/www/react-native/image_params/size.js +9 -0
- package/www/react-native/image_quality/image_quality_characteristic.js +24 -0
- package/www/react-native/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/react-native/image_quality/image_quality_group.js +332 -0
- package/www/react-native/image_quality/image_quality_range.js +26 -0
- package/www/react-native/image_quality/image_quality_result.js +40 -0
- package/www/react-native/index.js +219 -0
- package/www/react-native/init/face_sdk_version.js +16 -0
- package/www/react-native/init/init_config.js +9 -0
- package/www/react-native/init/init_exception.js +29 -0
- package/www/react-native/init/license_exception.js +29 -0
- package/www/react-native/internal/bridge.js +39 -0
- package/www/react-native/liveness/liveness_backend_exception.js +38 -0
- package/www/react-native/liveness/liveness_config.js +54 -0
- package/www/react-native/liveness/liveness_exception.js +35 -0
- package/www/react-native/liveness/liveness_notification.js +34 -0
- package/www/react-native/liveness/liveness_response.js +30 -0
- package/www/react-native/match_faces/compared_face.js +21 -0
- package/www/react-native/match_faces/compared_faces_pair.js +23 -0
- package/www/react-native/match_faces/compared_faces_split.js +22 -0
- package/www/react-native/match_faces/match_faces_backend_exception.js +14 -0
- package/www/react-native/match_faces/match_faces_config.js +12 -0
- package/www/react-native/match_faces/match_faces_detection.js +25 -0
- package/www/react-native/match_faces/match_faces_detection_face.js +28 -0
- package/www/react-native/match_faces/match_faces_exception.js +30 -0
- package/www/react-native/match_faces/match_faces_image.js +25 -0
- package/www/react-native/match_faces/match_faces_request.js +13 -0
- package/www/react-native/match_faces/match_faces_response.js +28 -0
- package/www/react-native/person_database/edit_group_persons_request.js +9 -0
- package/www/react-native/person_database/image_upload.js +16 -0
- package/www/react-native/person_database/pageable_item_list.js +22 -0
- package/www/react-native/person_database/person.js +22 -0
- package/www/react-native/person_database/person_database.js +145 -0
- package/www/react-native/person_database/person_group.js +18 -0
- package/www/react-native/person_database/person_image.js +22 -0
- package/www/react-native/person_database/search_person.js +31 -0
- package/www/react-native/person_database/search_person_detection.js +22 -0
- package/www/react-native/person_database/search_person_image.js +26 -0
- package/www/react-native/person_database/search_person_request.js +17 -0
- package/www/types/customization/camera_position.d.ts +4 -0
- package/www/types/customization/customization.d.ts +24 -0
- package/www/types/customization/customization_colors.d.ts +31 -0
- package/www/types/customization/customization_fonts.d.ts +17 -0
- package/www/types/customization/customization_images.d.ts +18 -0
- package/www/types/customization/font.d.ts +14 -0
- package/www/types/customization/screen_orientation.d.ts +4 -0
- package/www/types/detect_faces/detect_face_result.d.ts +16 -0
- package/www/types/detect_faces/detect_faces_attribute.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_attribute_result.d.ts +11 -0
- package/www/types/detect_faces/detect_faces_backend_exception.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_config.d.ts +19 -0
- package/www/types/detect_faces/detect_faces_exception.d.ts +21 -0
- package/www/types/detect_faces/detect_faces_request.d.ts +27 -0
- package/www/types/detect_faces/detect_faces_response.d.ts +12 -0
- package/www/types/detect_faces/detect_faces_scenario.d.ts +10 -0
- package/www/types/face_capture/face_capture_config.d.ts +30 -0
- package/www/types/face_capture/face_capture_exception.d.ts +17 -0
- package/www/types/face_capture/face_capture_image.d.ts +15 -0
- package/www/types/face_capture/face_capture_response.d.ts +9 -0
- package/www/types/image_params/output_image_crop.d.ts +25 -0
- package/www/types/image_params/output_image_params.d.ts +13 -0
- package/www/types/image_params/point.d.ts +6 -0
- package/www/types/image_params/rect.d.ts +8 -0
- package/www/types/image_params/size.d.ts +6 -0
- package/www/types/image_quality/image_quality_characteristic.d.ts +4 -0
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +58 -0
- package/www/types/image_quality/image_quality_group.d.ts +155 -0
- package/www/types/image_quality/image_quality_range.d.ts +8 -0
- package/www/types/image_quality/image_quality_result.d.ts +30 -0
- package/www/types/index.d.ts +159 -0
- package/www/types/init/face_sdk_version.d.ts +7 -0
- package/www/types/init/init_config.d.ts +7 -0
- package/www/types/init/init_exception.d.ts +20 -0
- package/www/types/init/license_exception.d.ts +21 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +30 -0
- package/www/types/liveness/liveness_config.d.ts +56 -0
- package/www/types/liveness/liveness_exception.d.ts +26 -0
- package/www/types/liveness/liveness_notification.d.ts +28 -0
- package/www/types/liveness/liveness_response.d.ts +18 -0
- package/www/types/match_faces/compared_face.d.ts +11 -0
- package/www/types/match_faces/compared_faces_pair.d.ts +12 -0
- package/www/types/match_faces/compared_faces_split.d.ts +8 -0
- package/www/types/match_faces/match_faces_backend_exception.d.ts +6 -0
- package/www/types/match_faces/match_faces_config.d.ts +14 -0
- package/www/types/match_faces/match_faces_detection.d.ts +12 -0
- package/www/types/match_faces/match_faces_detection_face.d.ts +13 -0
- package/www/types/match_faces/match_faces_exception.d.ts +21 -0
- package/www/types/match_faces/match_faces_image.d.ts +16 -0
- package/www/types/match_faces/match_faces_request.d.ts +18 -0
- package/www/types/match_faces/match_faces_response.d.ts +12 -0
- package/www/types/person_database/edit_group_persons_request.d.ts +8 -0
- package/www/types/person_database/image_upload.d.ts +6 -0
- package/www/types/person_database/pageable_item_list.d.ts +7 -0
- package/www/types/person_database/person.d.ts +10 -0
- package/www/types/person_database/person_database.d.ts +92 -0
- package/www/types/person_database/person_group.d.ts +8 -0
- package/www/types/person_database/person_image.d.ts +10 -0
- package/www/types/person_database/search_person.d.ts +15 -0
- package/www/types/person_database/search_person_detection.d.ts +11 -0
- package/www/types/person_database/search_person_image.d.ts +12 -0
- package/www/types/person_database/search_person_request.d.ts +15 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CustomizationColors } from './customization_colors'
|
|
2
|
+
import { CustomizationFonts } from './customization_fonts'
|
|
3
|
+
import { CustomizationImages } from './customization_images'
|
|
4
|
+
import { _setCustomButtonTappedCompletion, exec } from '../internal/bridge'
|
|
5
|
+
import { FaceSDK } from '../index'
|
|
6
|
+
|
|
7
|
+
export class Customization {
|
|
8
|
+
get colors() { return this._colors }
|
|
9
|
+
_colors = new CustomizationColors()
|
|
10
|
+
set colors(val) {
|
|
11
|
+
(this._colors = val)._apply(this)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get fonts() { return this._fonts }
|
|
15
|
+
_fonts = new CustomizationFonts()
|
|
16
|
+
set fonts(val) {
|
|
17
|
+
(this._fonts = val)._apply(this)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get images() { return this._images }
|
|
21
|
+
_images = new CustomizationImages()
|
|
22
|
+
set images(val) {
|
|
23
|
+
(this._images = val)._apply(this)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
get uiCustomizationLayer() { return this._uiCustomizationLayer }
|
|
27
|
+
_uiCustomizationLayer
|
|
28
|
+
set uiCustomizationLayer(val) {
|
|
29
|
+
var temp = Object.assign({}, val);
|
|
30
|
+
Object.freeze(temp);
|
|
31
|
+
this._uiCustomizationLayer = temp
|
|
32
|
+
this._set({ "uiCustomizationLayer": val })
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set onCustomButtonTapped(completion) {
|
|
36
|
+
_setCustomButtonTappedCompletion(completion)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static fromJson(jsonObject) {
|
|
40
|
+
var result = new Customization()
|
|
41
|
+
|
|
42
|
+
result.colors = CustomizationColors.fromJson(jsonObject["colors"])
|
|
43
|
+
result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
44
|
+
result.images = CustomizationImages.fromJson(jsonObject["images"])
|
|
45
|
+
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"]
|
|
46
|
+
|
|
47
|
+
return result
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
toJson() {
|
|
51
|
+
return {
|
|
52
|
+
"colors": this.colors.toJson(),
|
|
53
|
+
"fonts": this.fonts.toJson(),
|
|
54
|
+
"images": this.images.toJson(),
|
|
55
|
+
"uiCustomizationLayer": this.uiCustomizationLayer
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_set(json) {
|
|
60
|
+
if (this === FaceSDK.instance.customization) {
|
|
61
|
+
exec("setCustomization", [json])
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
_apply() { this._set(toJson()) }
|
|
66
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { FaceSDK } from '../index'
|
|
2
|
+
|
|
3
|
+
export class CustomizationColors {
|
|
4
|
+
_onboardingScreenStartButtonBackground
|
|
5
|
+
set onboardingScreenStartButtonBackground(val) {
|
|
6
|
+
this._onboardingScreenStartButtonBackground = val
|
|
7
|
+
this._set({ "100": val })
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
_onboardingScreenStartButtonTitle
|
|
11
|
+
set onboardingScreenStartButtonTitle(val) {
|
|
12
|
+
this._onboardingScreenStartButtonTitle = val
|
|
13
|
+
this._set({ "101": val })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
_onboardingScreenBackground
|
|
17
|
+
set onboardingScreenBackground(val) {
|
|
18
|
+
this._onboardingScreenBackground = val
|
|
19
|
+
this._set({ "102": val })
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
_onboardingScreenTitleLabelText
|
|
23
|
+
set onboardingScreenTitleLabelText(val) {
|
|
24
|
+
this._onboardingScreenTitleLabelText = val
|
|
25
|
+
this._set({ "103": val })
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
_onboardingScreenSubtitleLabelText
|
|
29
|
+
set onboardingScreenSubtitleLabelText(val) {
|
|
30
|
+
this._onboardingScreenSubtitleLabelText = val
|
|
31
|
+
this._set({ "104": val })
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_onboardingScreenMessageLabelsText
|
|
35
|
+
set onboardingScreenMessageLabelsText(val) {
|
|
36
|
+
this._onboardingScreenMessageLabelsText = val
|
|
37
|
+
this._set({ "105": val })
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_cameraScreenStrokeNormal
|
|
41
|
+
set cameraScreenStrokeNormal(val) {
|
|
42
|
+
this._cameraScreenStrokeNormal = val
|
|
43
|
+
this._set({ "200": val })
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_cameraScreenStrokeActive
|
|
47
|
+
set cameraScreenStrokeActive(val) {
|
|
48
|
+
this._cameraScreenStrokeActive = val
|
|
49
|
+
this._set({ "201": val })
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
_cameraScreenSectorTarget
|
|
53
|
+
set cameraScreenSectorTarget(val) {
|
|
54
|
+
this._cameraScreenSectorTarget = val
|
|
55
|
+
this._set({ "202": val })
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
_cameraScreenSectorActive
|
|
59
|
+
set cameraScreenSectorActive(val) {
|
|
60
|
+
this._cameraScreenSectorActive = val
|
|
61
|
+
this._set({ "203": val })
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_cameraScreenFrontHintLabelBackground
|
|
65
|
+
set cameraScreenFrontHintLabelBackground(val) {
|
|
66
|
+
this._cameraScreenFrontHintLabelBackground = val
|
|
67
|
+
this._set({ "204": val })
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_cameraScreenFrontHintLabelText
|
|
71
|
+
set cameraScreenFrontHintLabelText(val) {
|
|
72
|
+
this._cameraScreenFrontHintLabelText = val
|
|
73
|
+
this._set({ "205": val })
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
_cameraScreenBackHintLabelBackground
|
|
77
|
+
set cameraScreenBackHintLabelBackground(val) {
|
|
78
|
+
this._cameraScreenBackHintLabelBackground = val
|
|
79
|
+
this._set({ "206": val })
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
_cameraScreenBackHintLabelText
|
|
83
|
+
set cameraScreenBackHintLabelText(val) {
|
|
84
|
+
this._cameraScreenBackHintLabelText = val
|
|
85
|
+
this._set({ "207": val })
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
_cameraScreenLightToolbarTint
|
|
89
|
+
set cameraScreenLightToolbarTint(val) {
|
|
90
|
+
this._cameraScreenLightToolbarTint = val
|
|
91
|
+
this._set({ "208": val })
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
_cameraScreenDarkToolbarTint
|
|
95
|
+
set cameraScreenDarkToolbarTint(val) {
|
|
96
|
+
this._cameraScreenDarkToolbarTint = val
|
|
97
|
+
this._set({ "209": val })
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
_retryScreenBackground
|
|
101
|
+
set retryScreenBackground(val) {
|
|
102
|
+
this._retryScreenBackground = val
|
|
103
|
+
this._set({ "300": val })
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_retryScreenRetryButtonBackground
|
|
107
|
+
set retryScreenRetryButtonBackground(val) {
|
|
108
|
+
this._retryScreenRetryButtonBackground = val
|
|
109
|
+
this._set({ "301": val })
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
_retryScreenRetryButtonTitle
|
|
113
|
+
set retryScreenRetryButtonTitle(val) {
|
|
114
|
+
this._retryScreenRetryButtonTitle = val
|
|
115
|
+
this._set({ "302": val })
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
_retryScreenTitleLabelText
|
|
119
|
+
set retryScreenTitleLabelText(val) {
|
|
120
|
+
this._retryScreenTitleLabelText = val
|
|
121
|
+
this._set({ "303": val })
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
_retryScreenSubtitleLabelText
|
|
125
|
+
set retryScreenSubtitleLabelText(val) {
|
|
126
|
+
this._retryScreenSubtitleLabelText = val
|
|
127
|
+
this._set({ "304": val })
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_retryScreenHintLabelsText
|
|
131
|
+
set retryScreenHintLabelsText(val) {
|
|
132
|
+
this._retryScreenHintLabelsText = val
|
|
133
|
+
this._set({ "305": val })
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
_processingScreenBackground
|
|
137
|
+
set processingScreenBackground(val) {
|
|
138
|
+
this._processingScreenBackground = val
|
|
139
|
+
this._set({ "400": val })
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
_processingScreenProgress
|
|
143
|
+
set processingScreenProgress(val) {
|
|
144
|
+
this._processingScreenProgress = val
|
|
145
|
+
this._set({ "401": val })
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
_processingScreenTitleLabel
|
|
149
|
+
set processingScreenTitleLabel(val) {
|
|
150
|
+
this._processingScreenTitleLabel = val
|
|
151
|
+
this._set({ "402": val })
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
_successScreenBackground
|
|
155
|
+
set successScreenBackground(val) {
|
|
156
|
+
this._successScreenBackground = val
|
|
157
|
+
this._set({ "500": val })
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static fromJson(jsonObject) {
|
|
161
|
+
var result = new CustomizationColors()
|
|
162
|
+
|
|
163
|
+
result._onboardingScreenStartButtonBackground = jsonObject["100"]
|
|
164
|
+
result._onboardingScreenStartButtonTitle = jsonObject["101"]
|
|
165
|
+
result._onboardingScreenBackground = jsonObject["102"]
|
|
166
|
+
result._onboardingScreenTitleLabelText = jsonObject["103"]
|
|
167
|
+
result._onboardingScreenSubtitleLabelText = jsonObject["104"]
|
|
168
|
+
result._onboardingScreenMessageLabelsText = jsonObject["105"]
|
|
169
|
+
result._cameraScreenStrokeNormal = jsonObject["200"]
|
|
170
|
+
result._cameraScreenStrokeActive = jsonObject["201"]
|
|
171
|
+
result._cameraScreenSectorTarget = jsonObject["202"]
|
|
172
|
+
result._cameraScreenSectorActive = jsonObject["203"]
|
|
173
|
+
result._cameraScreenFrontHintLabelBackground = jsonObject["204"]
|
|
174
|
+
result._cameraScreenFrontHintLabelText = jsonObject["205"]
|
|
175
|
+
result._cameraScreenBackHintLabelBackground = jsonObject["206"]
|
|
176
|
+
result._cameraScreenBackHintLabelText = jsonObject["207"]
|
|
177
|
+
result._cameraScreenLightToolbarTint = jsonObject["208"]
|
|
178
|
+
result._cameraScreenDarkToolbarTint = jsonObject["209"]
|
|
179
|
+
result._retryScreenBackground = jsonObject["300"]
|
|
180
|
+
result._retryScreenRetryButtonBackground = jsonObject["301"]
|
|
181
|
+
result._retryScreenRetryButtonTitle = jsonObject["302"]
|
|
182
|
+
result._retryScreenTitleLabelText = jsonObject["303"]
|
|
183
|
+
result._retryScreenSubtitleLabelText = jsonObject["304"]
|
|
184
|
+
result._retryScreenHintLabelsText = jsonObject["305"]
|
|
185
|
+
result._processingScreenBackground = jsonObject["400"]
|
|
186
|
+
result._processingScreenProgress = jsonObject["401"]
|
|
187
|
+
result._processingScreenTitleLabel = jsonObject["402"]
|
|
188
|
+
result._successScreenBackground = jsonObject["500"]
|
|
189
|
+
|
|
190
|
+
return result
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
toJson() {
|
|
194
|
+
return {
|
|
195
|
+
"100": this._onboardingScreenStartButtonBackground,
|
|
196
|
+
"101": this._onboardingScreenStartButtonTitle,
|
|
197
|
+
"102": this._onboardingScreenBackground,
|
|
198
|
+
"103": this._onboardingScreenTitleLabelText,
|
|
199
|
+
"104": this._onboardingScreenSubtitleLabelText,
|
|
200
|
+
"105": this._onboardingScreenMessageLabelsText,
|
|
201
|
+
"200": this._cameraScreenStrokeNormal,
|
|
202
|
+
"201": this._cameraScreenStrokeActive,
|
|
203
|
+
"202": this._cameraScreenSectorTarget,
|
|
204
|
+
"203": this._cameraScreenSectorActive,
|
|
205
|
+
"204": this._cameraScreenFrontHintLabelBackground,
|
|
206
|
+
"205": this._cameraScreenFrontHintLabelText,
|
|
207
|
+
"206": this._cameraScreenBackHintLabelBackground,
|
|
208
|
+
"207": this._cameraScreenBackHintLabelText,
|
|
209
|
+
"208": this._cameraScreenLightToolbarTint,
|
|
210
|
+
"209": this._cameraScreenDarkToolbarTint,
|
|
211
|
+
"300": this._retryScreenBackground,
|
|
212
|
+
"301": this._retryScreenRetryButtonBackground,
|
|
213
|
+
"302": this._retryScreenRetryButtonTitle,
|
|
214
|
+
"303": this._retryScreenTitleLabelText,
|
|
215
|
+
"304": this._retryScreenSubtitleLabelText,
|
|
216
|
+
"305": this._retryScreenHintLabelsText,
|
|
217
|
+
"400": this._processingScreenBackground,
|
|
218
|
+
"401": this._processingScreenProgress,
|
|
219
|
+
"402": this._processingScreenTitleLabel,
|
|
220
|
+
"500": this._successScreenBackground,
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
_set(json) {
|
|
225
|
+
var parentJson = { "colors": json }
|
|
226
|
+
var parent = FaceSDK.instance.customization
|
|
227
|
+
if (this === parent.colors) parent._set(parentJson)
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
_apply() {
|
|
231
|
+
this._set(this.toJson())
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { FaceSDK } from '../index'
|
|
2
|
+
import { Font} from './font'
|
|
3
|
+
|
|
4
|
+
export class CustomizationFonts {
|
|
5
|
+
_onboardingScreenStartButton
|
|
6
|
+
set onboardingScreenStartButton(val) {
|
|
7
|
+
this._onboardingScreenStartButton = val
|
|
8
|
+
this._set({ "100": val })
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_onboardingScreenTitleLabel
|
|
12
|
+
set onboardingScreenTitleLabel(val) {
|
|
13
|
+
this._onboardingScreenTitleLabel = val
|
|
14
|
+
this._set({ "101": val })
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
_onboardingScreenSubtitleLabel
|
|
18
|
+
set onboardingScreenSubtitleLabel(val) {
|
|
19
|
+
this._onboardingScreenSubtitleLabel = val
|
|
20
|
+
this._set({ "102": val })
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
_onboardingScreenMessageLabels
|
|
24
|
+
set onboardingScreenMessageLabels(val) {
|
|
25
|
+
this._onboardingScreenMessageLabels = val
|
|
26
|
+
this._set({ "103": val })
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_cameraScreenHintLabel
|
|
30
|
+
set cameraScreenHintLabel(val) {
|
|
31
|
+
this._cameraScreenHintLabel = val
|
|
32
|
+
this._set({ "200": val })
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_retryScreenRetryButton
|
|
36
|
+
set retryScreenRetryButton(val) {
|
|
37
|
+
this._retryScreenRetryButton = val
|
|
38
|
+
this._set({ "300": val })
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
_retryScreenTitleLabel
|
|
42
|
+
set retryScreenTitleLabel(val) {
|
|
43
|
+
this._retryScreenTitleLabel = val
|
|
44
|
+
this._set({ "301": val })
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
_retryScreenSubtitleLabel
|
|
48
|
+
set retryScreenSubtitleLabel(val) {
|
|
49
|
+
this._retryScreenSubtitleLabel = val
|
|
50
|
+
this._set({ "302": val })
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_retryScreenHintLabels
|
|
54
|
+
set retryScreenHintLabels(val) {
|
|
55
|
+
this._retryScreenHintLabels = val
|
|
56
|
+
this._set({ "303": val })
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_processingScreenLabel
|
|
60
|
+
set processingScreenLabel(val) {
|
|
61
|
+
this._processingScreenLabel = val
|
|
62
|
+
this._set({ "400": val })
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static fromJson(jsonObject) {
|
|
66
|
+
var result = new CustomizationFonts()
|
|
67
|
+
|
|
68
|
+
result._onboardingScreenStartButton = Font.fromJson(jsonObject["100"])
|
|
69
|
+
result._onboardingScreenTitleLabel = Font.fromJson(jsonObject["101"])
|
|
70
|
+
result._onboardingScreenSubtitleLabel = Font.fromJson(jsonObject["102"])
|
|
71
|
+
result._onboardingScreenMessageLabels = Font.fromJson(jsonObject["103"])
|
|
72
|
+
result._cameraScreenHintLabel = Font.fromJson(jsonObject["200"])
|
|
73
|
+
result._retryScreenRetryButton = Font.fromJson(jsonObject["300"])
|
|
74
|
+
result._retryScreenTitleLabel = Font.fromJson(jsonObject["301"])
|
|
75
|
+
result._retryScreenSubtitleLabel = Font.fromJson(jsonObject["302"])
|
|
76
|
+
result._retryScreenHintLabels = Font.fromJson(jsonObject["303"])
|
|
77
|
+
result._processingScreenLabel = Font.fromJson(jsonObject["400"])
|
|
78
|
+
|
|
79
|
+
return result
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
toJson() {
|
|
83
|
+
return {
|
|
84
|
+
"100": this._onboardingScreenStartButton,
|
|
85
|
+
"101": this._onboardingScreenTitleLabel,
|
|
86
|
+
"102": this._onboardingScreenSubtitleLabel,
|
|
87
|
+
"103": this._onboardingScreenMessageLabels,
|
|
88
|
+
"200": this._cameraScreenHintLabel,
|
|
89
|
+
"300": this._retryScreenRetryButton,
|
|
90
|
+
"301": this._retryScreenTitleLabel,
|
|
91
|
+
"302": this._retryScreenSubtitleLabel,
|
|
92
|
+
"303": this._retryScreenHintLabels,
|
|
93
|
+
"400": this._processingScreenLabel,
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
_set(json) {
|
|
98
|
+
var parentJson = { "fonts": json }
|
|
99
|
+
var parent = FaceSDK.instance.customization
|
|
100
|
+
if (this === parent.fonts) parent._set(parentJson)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
_apply() {
|
|
104
|
+
this._set(toJson())
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { FaceSDK } from '../index'
|
|
2
|
+
|
|
3
|
+
export class CustomizationImages {
|
|
4
|
+
_onboardingScreenCloseButton
|
|
5
|
+
set onboardingScreenCloseButton(val) {
|
|
6
|
+
this._onboardingScreenCloseButton = val
|
|
7
|
+
this._set({ "100": val })
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
_onboardingScreenIllumination
|
|
11
|
+
set onboardingScreenIllumination(val) {
|
|
12
|
+
this._onboardingScreenIllumination = val
|
|
13
|
+
this._set({ "101": val })
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
_onboardingScreenAccessories
|
|
17
|
+
set onboardingScreenAccessories(val) {
|
|
18
|
+
this._onboardingScreenAccessories = val
|
|
19
|
+
this._set({ "102": val })
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
_onboardingScreenCameraLevel
|
|
23
|
+
set onboardingScreenCameraLevel(val) {
|
|
24
|
+
this._onboardingScreenCameraLevel = val
|
|
25
|
+
this._set({ "103": val })
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
_cameraScreenCloseButton
|
|
29
|
+
set cameraScreenCloseButton(val) {
|
|
30
|
+
this._cameraScreenCloseButton = val
|
|
31
|
+
this._set({ "200": val })
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_cameraScreenLightOnButton
|
|
35
|
+
set cameraScreenLightOnButton(val) {
|
|
36
|
+
this._cameraScreenLightOnButton = val
|
|
37
|
+
this._set({ "201": val })
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
_cameraScreenLightOffButton
|
|
41
|
+
set cameraScreenLightOffButton(val) {
|
|
42
|
+
this._cameraScreenLightOffButton = val
|
|
43
|
+
this._set({ "202": val })
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_cameraScreenSwitchButton
|
|
47
|
+
set cameraScreenSwitchButton(val) {
|
|
48
|
+
this._cameraScreenSwitchButton = val
|
|
49
|
+
this._set({ "203": val })
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
_retryScreenCloseButton
|
|
53
|
+
set retryScreenCloseButton(val) {
|
|
54
|
+
this._retryScreenCloseButton = val
|
|
55
|
+
this._set({ "300": val })
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
_retryScreenHintEnvironment
|
|
59
|
+
set retryScreenHintEnvironment(val) {
|
|
60
|
+
this._retryScreenHintEnvironment = val
|
|
61
|
+
this._set({ "301": val })
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_retryScreenHintSubject
|
|
65
|
+
set retryScreenHintSubject(val) {
|
|
66
|
+
this._retryScreenHintSubject = val
|
|
67
|
+
this._set({ "302": val })
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_processingScreenCloseButton
|
|
71
|
+
set processingScreenCloseButton(val) {
|
|
72
|
+
this._processingScreenCloseButton = val
|
|
73
|
+
this._set({ "400": val })
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
_successScreenImage
|
|
77
|
+
set successScreenImage(val) {
|
|
78
|
+
this._successScreenImage = val
|
|
79
|
+
this._set({ "500": val })
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static fromJson(jsonObject) {
|
|
83
|
+
var result = new CustomizationImages()
|
|
84
|
+
|
|
85
|
+
result._onboardingScreenCloseButton = jsonObject["100"]
|
|
86
|
+
result._onboardingScreenIllumination = jsonObject["101"]
|
|
87
|
+
result._onboardingScreenAccessories = jsonObject["102"]
|
|
88
|
+
result._onboardingScreenCameraLevel = jsonObject["103"]
|
|
89
|
+
result._cameraScreenCloseButton = jsonObject["200"]
|
|
90
|
+
result._cameraScreenLightOnButton = jsonObject["201"]
|
|
91
|
+
result._cameraScreenLightOffButton = jsonObject["202"]
|
|
92
|
+
result._cameraScreenSwitchButton = jsonObject["203"]
|
|
93
|
+
result._retryScreenCloseButton = jsonObject["300"]
|
|
94
|
+
result._retryScreenHintEnvironment = jsonObject["301"]
|
|
95
|
+
result._retryScreenHintSubject = jsonObject["302"]
|
|
96
|
+
result._processingScreenCloseButton = jsonObject["400"]
|
|
97
|
+
result._successScreenImage = jsonObject["500"]
|
|
98
|
+
|
|
99
|
+
return result
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
toJson() {
|
|
103
|
+
return {
|
|
104
|
+
"100": this._onboardingScreenCloseButton,
|
|
105
|
+
"101": this._onboardingScreenIllumination,
|
|
106
|
+
"102": this._onboardingScreenAccessories,
|
|
107
|
+
"103": this._onboardingScreenCameraLevel,
|
|
108
|
+
"200": this._cameraScreenCloseButton,
|
|
109
|
+
"201": this._cameraScreenLightOnButton,
|
|
110
|
+
"202": this._cameraScreenLightOffButton,
|
|
111
|
+
"203": this._cameraScreenSwitchButton,
|
|
112
|
+
"300": this._retryScreenCloseButton,
|
|
113
|
+
"301": this._retryScreenHintEnvironment,
|
|
114
|
+
"302": this._retryScreenHintSubject,
|
|
115
|
+
"400": this._processingScreenCloseButton,
|
|
116
|
+
"500": this._successScreenImage,
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
_set(json) {
|
|
121
|
+
var parentJson = { "images": json }
|
|
122
|
+
var parent = FaceSDK.instance.customization
|
|
123
|
+
if (this === parent.images) parent._set(parentJson)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
_apply() {
|
|
127
|
+
this._set(toJson())
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class Font {
|
|
2
|
+
name
|
|
3
|
+
style
|
|
4
|
+
size
|
|
5
|
+
|
|
6
|
+
static fromJson(jsonObject) {
|
|
7
|
+
if (jsonObject == null) return null
|
|
8
|
+
const result = new Font()
|
|
9
|
+
|
|
10
|
+
result.name = jsonObject["name"]
|
|
11
|
+
result.style = jsonObject["style"]
|
|
12
|
+
result.size = jsonObject["size"]
|
|
13
|
+
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const FontStyle = {
|
|
19
|
+
NORMAL: 0,
|
|
20
|
+
BOLD: 1,
|
|
21
|
+
ITALIC: 2,
|
|
22
|
+
BOLD_ITALIC: 3,
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DetectFacesAttributeResult } from './detect_faces_attribute_result'
|
|
2
|
+
import { ImageQualityResult } from '../image_quality/image_quality_result'
|
|
3
|
+
import { Rect } from '../image_params/rect'
|
|
4
|
+
import { Point } from '../image_params/point'
|
|
5
|
+
|
|
6
|
+
export class DetectFaceResult {
|
|
7
|
+
quality
|
|
8
|
+
attributes
|
|
9
|
+
crop
|
|
10
|
+
faceRect
|
|
11
|
+
originalRect
|
|
12
|
+
landmarks
|
|
13
|
+
isQualityCompliant
|
|
14
|
+
|
|
15
|
+
static fromJson(jsonObject) {
|
|
16
|
+
if (jsonObject == null) return null
|
|
17
|
+
const result = new DetectFaceResult()
|
|
18
|
+
|
|
19
|
+
result.quality = []
|
|
20
|
+
if (jsonObject["quality"] != null)
|
|
21
|
+
for (const item of jsonObject["quality"])
|
|
22
|
+
result.quality.push(ImageQualityResult.fromJson(item))
|
|
23
|
+
result.attributes = []
|
|
24
|
+
if (jsonObject["attributes"] != null)
|
|
25
|
+
for (const item of jsonObject["attributes"])
|
|
26
|
+
result.attributes.push(DetectFacesAttributeResult.fromJson(item))
|
|
27
|
+
result.crop = jsonObject["crop"]
|
|
28
|
+
result.faceRect = Rect.fromJson(jsonObject["faceRect"])
|
|
29
|
+
result.originalRect = Rect.fromJson(jsonObject["originalRect"])
|
|
30
|
+
result.landmarks = []
|
|
31
|
+
if (jsonObject["landmarks"] != null)
|
|
32
|
+
for (const item of jsonObject["landmarks"])
|
|
33
|
+
result.landmarks.push(Point.fromJson(item))
|
|
34
|
+
result.isQualityCompliant = jsonObject["isQualityCompliant"]
|
|
35
|
+
|
|
36
|
+
return result
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const DetectFacesAttribute = {
|
|
2
|
+
AGE: "Age",
|
|
3
|
+
EYE_RIGHT: "EyeRight",
|
|
4
|
+
EYE_LEFT: "EyeLeft",
|
|
5
|
+
EMOTION: "Emotion",
|
|
6
|
+
SMILE: "Smile",
|
|
7
|
+
GLASSES: "Glasses",
|
|
8
|
+
HEAD_COVERING: "HeadCovering",
|
|
9
|
+
FOREHEAD_COVERING: "ForeheadCovering",
|
|
10
|
+
MOUTH: "Mouth",
|
|
11
|
+
MEDICAL_MASK: "MedicalMask",
|
|
12
|
+
OCCLUSION: "Occlusion",
|
|
13
|
+
STRONG_MAKEUP: "StrongMakeup",
|
|
14
|
+
HEADPHONES: "Headphones",
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ImageQualityRange } from '../image_quality/image_quality_range'
|
|
2
|
+
|
|
3
|
+
export class DetectFacesAttributeResult {
|
|
4
|
+
attribute
|
|
5
|
+
value
|
|
6
|
+
range
|
|
7
|
+
confidence
|
|
8
|
+
|
|
9
|
+
static fromJson(jsonObject) {
|
|
10
|
+
if (jsonObject == null) return null
|
|
11
|
+
const result = new DetectFacesAttributeResult()
|
|
12
|
+
|
|
13
|
+
result.attribute = jsonObject["attribute"]
|
|
14
|
+
result.value = jsonObject["value"]
|
|
15
|
+
result.range = ImageQualityRange.fromJson(jsonObject["range"])
|
|
16
|
+
result.confidence = jsonObject["confidence"]
|
|
17
|
+
|
|
18
|
+
return result
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class DetectFacesBackendException {
|
|
2
|
+
code
|
|
3
|
+
message
|
|
4
|
+
|
|
5
|
+
static fromJson(jsonObject) {
|
|
6
|
+
if (jsonObject == null) return null
|
|
7
|
+
const result = new DetectFacesBackendException()
|
|
8
|
+
|
|
9
|
+
result.code = jsonObject["code"]
|
|
10
|
+
result.message = jsonObject["message"] ?? ""
|
|
11
|
+
|
|
12
|
+
return result
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const DetectFacesBackendErrorCode = {
|
|
17
|
+
FR_FACE_NOT_DETECTED: 2,
|
|
18
|
+
FACER_NO_LICENSE: 200,
|
|
19
|
+
FACER_IS_NOT_INITIALIZED: 201,
|
|
20
|
+
FACER_COMMAND_IS_NOT_SUPPORTED: 202,
|
|
21
|
+
FACER_COMMAND_PARAMS_READ_ERROR: 203,
|
|
22
|
+
UNDEFINED: -1,
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class DetectFacesConfig {
|
|
2
|
+
attributes
|
|
3
|
+
customQuality
|
|
4
|
+
outputImageParams
|
|
5
|
+
onlyCentralFace
|
|
6
|
+
|
|
7
|
+
constructor(params) {
|
|
8
|
+
this.onlyCentralFace = false
|
|
9
|
+
this.attributes = params?.attributes
|
|
10
|
+
this.customQuality = params?.customQuality
|
|
11
|
+
this.outputImageParams = params?.outputImageParams
|
|
12
|
+
this.onlyCentralFace = params?.onlyCentralFace ?? this.onlyCentralFace
|
|
13
|
+
}
|
|
14
|
+
}
|