@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,145 @@
|
|
|
1
|
+
import { exec } from '../internal/bridge'
|
|
2
|
+
import { Person } from './person'
|
|
3
|
+
import { PersonImage } from './person_image'
|
|
4
|
+
import { PageableItemList } from './pageable_item_list'
|
|
5
|
+
import { PersonGroup } from './person_group'
|
|
6
|
+
import { SearchPerson } from './search_person'
|
|
7
|
+
|
|
8
|
+
export class PersonDatabase {
|
|
9
|
+
async createPerson(name, params) {
|
|
10
|
+
var response = await exec("createPerson", [name, params?.groupIds, params?.metadata])
|
|
11
|
+
return this._itemResponseFromJson(response, Person.fromJson)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async updatePerson(person) {
|
|
15
|
+
var response = await exec("updatePerson", [person])
|
|
16
|
+
return this._successResponseFromJson(response)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
async deletePerson(personId) {
|
|
20
|
+
var response = await exec("deletePerson", [personId])
|
|
21
|
+
return this._successResponseFromJson(response)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async getPerson(personId) {
|
|
25
|
+
var response = await exec("getPerson", [personId])
|
|
26
|
+
return this._itemResponseFromJson(response, Person.fromJson)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async addPersonImage(personId, image) {
|
|
30
|
+
var response = await exec("addPersonImage", [personId, image])
|
|
31
|
+
return this._itemResponseFromJson(response, PersonImage.fromJson)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async deletePersonImage(personId, imageId) {
|
|
35
|
+
var response = await exec("deletePersonImage", [personId, imageId])
|
|
36
|
+
return this._successResponseFromJson(response)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async getPersonImage(personId, imageId) {
|
|
40
|
+
var response = await exec("getPersonImage", [personId, imageId])
|
|
41
|
+
return this._itemResponseFromJson(response, PersonImage.fromJson)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async getPersonImages(personId) {
|
|
45
|
+
var response = await exec("getPersonImages", [personId])
|
|
46
|
+
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
async getPersonImagesForPage(personId, page, size) {
|
|
50
|
+
var response = await exec("getPersonImagesForPage", [personId, page, size])
|
|
51
|
+
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async createGroup(name, params) {
|
|
55
|
+
var response = await exec("createGroup", [name, params?.metadata])
|
|
56
|
+
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async updateGroup(group) {
|
|
60
|
+
var response = await exec("updateGroup", [group])
|
|
61
|
+
return this._successResponseFromJson(response)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async editPersonsInGroup(groupId, request) {
|
|
65
|
+
var response = await exec("editPersonsInGroup", [groupId, request])
|
|
66
|
+
return this._successResponseFromJson(response)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async deleteGroup(groupId) {
|
|
70
|
+
var response = await exec("deleteGroup", [groupId])
|
|
71
|
+
return this._successResponseFromJson(response)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async getGroup(groupId) {
|
|
75
|
+
var response = await exec("getGroup", [groupId])
|
|
76
|
+
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async getGroups() {
|
|
80
|
+
var response = await exec("getGroups", [])
|
|
81
|
+
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async getGroupsForPage(page, size) {
|
|
85
|
+
var response = await exec("getGroupsForPage", [page, size])
|
|
86
|
+
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async getPersonGroups(personId) {
|
|
90
|
+
var response = await exec("getPersonGroups", [personId])
|
|
91
|
+
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async getPersonGroupsForPage(personId, page, size) {
|
|
95
|
+
var response = await exec("getPersonGroupsForPage", [personId, page, size])
|
|
96
|
+
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async getPersonsInGroup(groupId) {
|
|
100
|
+
var response = await exec("getPersonsInGroup", [groupId])
|
|
101
|
+
return this._listResponseFromJson(response, Person.fromJson)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
async getPersonsInGroupForPage(groupId, page, size) {
|
|
105
|
+
var response = await exec("getPersonsInGroupForPage", [groupId, page, size])
|
|
106
|
+
return this._listResponseFromJson(response, Person.fromJson)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
async searchPerson(request) {
|
|
110
|
+
var response = await exec("searchPerson", [request])
|
|
111
|
+
|
|
112
|
+
var jsonObject = JSON.parse(response)
|
|
113
|
+
var data = null
|
|
114
|
+
if (jsonObject["data"] != null) {
|
|
115
|
+
data = []
|
|
116
|
+
for (var item of jsonObject["data"])
|
|
117
|
+
data.push(SearchPerson.fromJson(item))
|
|
118
|
+
}
|
|
119
|
+
var error = jsonObject["error"]
|
|
120
|
+
|
|
121
|
+
return [data, error]
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
_successResponseFromJson(jsonString) {
|
|
125
|
+
var jsonObject = JSON.parse(jsonString)
|
|
126
|
+
var data = jsonObject["data"]
|
|
127
|
+
var error = jsonObject["error"]
|
|
128
|
+
var success = data ?? false
|
|
129
|
+
return [success, error]
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
_itemResponseFromJson(jsonString, fromJSON) {
|
|
133
|
+
var jsonObject = JSON.parse(jsonString)
|
|
134
|
+
var data = fromJSON(jsonObject["data"])
|
|
135
|
+
var error = jsonObject["error"]
|
|
136
|
+
return [data, error]
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
_listResponseFromJson(jsonString, fromJSON) {
|
|
140
|
+
var jsonObject = JSON.parse(jsonString)
|
|
141
|
+
var data = PageableItemList.fromJson(jsonObject["data"], fromJSON)
|
|
142
|
+
var error = jsonObject["error"]
|
|
143
|
+
return [data, error]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class PersonGroup {
|
|
2
|
+
name
|
|
3
|
+
id
|
|
4
|
+
metadata
|
|
5
|
+
createdAt
|
|
6
|
+
|
|
7
|
+
static fromJson(jsonObject) {
|
|
8
|
+
if (jsonObject == null) return null
|
|
9
|
+
var result = new PersonGroup()
|
|
10
|
+
|
|
11
|
+
result.name = jsonObject["name"]
|
|
12
|
+
result.id = jsonObject["id"]
|
|
13
|
+
result.metadata = jsonObject["metadata"]
|
|
14
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
15
|
+
|
|
16
|
+
return result
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class PersonImage {
|
|
2
|
+
path
|
|
3
|
+
url
|
|
4
|
+
contentType
|
|
5
|
+
id
|
|
6
|
+
metadata
|
|
7
|
+
createdAt
|
|
8
|
+
|
|
9
|
+
static fromJson(jsonObject) {
|
|
10
|
+
if (jsonObject == null) return null
|
|
11
|
+
var result = new PersonImage()
|
|
12
|
+
|
|
13
|
+
result.path = jsonObject["path"]
|
|
14
|
+
result.url = jsonObject["url"]
|
|
15
|
+
result.contentType = jsonObject["contentType"]
|
|
16
|
+
result.id = jsonObject["id"]
|
|
17
|
+
result.metadata = jsonObject["metadata"]
|
|
18
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
19
|
+
|
|
20
|
+
return result
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SearchPersonImage } from './search_person_image'
|
|
2
|
+
import { SearchPersonDetection } from './search_person_detection'
|
|
3
|
+
|
|
4
|
+
export class SearchPerson {
|
|
5
|
+
images = []
|
|
6
|
+
detection
|
|
7
|
+
name
|
|
8
|
+
updatedAt
|
|
9
|
+
groups
|
|
10
|
+
id
|
|
11
|
+
metadata
|
|
12
|
+
createdAt
|
|
13
|
+
|
|
14
|
+
static fromJson(jsonObject) {
|
|
15
|
+
if (jsonObject == null) return null
|
|
16
|
+
var result = new SearchPerson()
|
|
17
|
+
|
|
18
|
+
if (jsonObject["images"] != null)
|
|
19
|
+
for (var item of jsonObject["images"])
|
|
20
|
+
result.images.push(SearchPersonImage.fromJson(item))
|
|
21
|
+
result.detection = SearchPersonDetection.fromJson(jsonObject["detection"])
|
|
22
|
+
result.name = jsonObject["name"]
|
|
23
|
+
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
24
|
+
result.groups = jsonObject["groups"]
|
|
25
|
+
result.id = jsonObject["id"]
|
|
26
|
+
result.metadata = jsonObject["metadata"]
|
|
27
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
28
|
+
|
|
29
|
+
return result
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Point } from "../image_params/point"
|
|
2
|
+
import { Rect } from "../image_params/rect"
|
|
3
|
+
|
|
4
|
+
export class SearchPersonDetection {
|
|
5
|
+
landmarks = []
|
|
6
|
+
rect
|
|
7
|
+
crop
|
|
8
|
+
rotationAngle
|
|
9
|
+
|
|
10
|
+
static fromJson(jsonObject) {
|
|
11
|
+
if (jsonObject == null) return null
|
|
12
|
+
var result = new SearchPersonDetection()
|
|
13
|
+
|
|
14
|
+
for (var item of jsonObject["landmarks"])
|
|
15
|
+
result.landmarks.push(Point.fromJson(item))
|
|
16
|
+
result.rect = Rect.fromJson(jsonObject["rect"])
|
|
17
|
+
result.crop = jsonObject["crop"]
|
|
18
|
+
result.rotationAngle = jsonObject["rotationAngle"]
|
|
19
|
+
|
|
20
|
+
return result
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class SearchPersonImage {
|
|
2
|
+
similarity
|
|
3
|
+
distance
|
|
4
|
+
path
|
|
5
|
+
url
|
|
6
|
+
contentType
|
|
7
|
+
id
|
|
8
|
+
metadata
|
|
9
|
+
createdAt
|
|
10
|
+
|
|
11
|
+
static fromJson(jsonObject) {
|
|
12
|
+
if (jsonObject == null) return null
|
|
13
|
+
var result = new SearchPersonImage()
|
|
14
|
+
|
|
15
|
+
result.similarity = jsonObject["similarity"]
|
|
16
|
+
result.distance = jsonObject["distance"]
|
|
17
|
+
result.path = jsonObject["path"]
|
|
18
|
+
result.url = jsonObject["url"]
|
|
19
|
+
result.contentType = jsonObject["contentType"]
|
|
20
|
+
result.id = jsonObject["id"]
|
|
21
|
+
result.metadata = jsonObject["metadata"]
|
|
22
|
+
result.createdAt = new Date(jsonObject["createdAt"])
|
|
23
|
+
|
|
24
|
+
return result
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class SearchPersonRequest {
|
|
2
|
+
imageUpload
|
|
3
|
+
groupIdsForSearch
|
|
4
|
+
threshold
|
|
5
|
+
limit
|
|
6
|
+
detectAll
|
|
7
|
+
outputImageParams
|
|
8
|
+
|
|
9
|
+
constructor(image, params) {
|
|
10
|
+
this.imageUpload = image
|
|
11
|
+
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
|
+
this.threshold = params?.threshold
|
|
13
|
+
this.limit = params?.limit
|
|
14
|
+
this.detectAll = params?.detectAll ?? false
|
|
15
|
+
this.outputImageParams = params?.outputImageParams
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CustomizationColors } from './customization_colors'
|
|
2
|
+
import { CustomizationFonts } from './customization_fonts'
|
|
3
|
+
import { CustomizationImages } from './customization_images'
|
|
4
|
+
|
|
5
|
+
export class Customization {
|
|
6
|
+
get colors(): CustomizationColors
|
|
7
|
+
set colors(val: CustomizationColors)
|
|
8
|
+
|
|
9
|
+
get fonts(): CustomizationFonts
|
|
10
|
+
set fonts(val: CustomizationFonts)
|
|
11
|
+
|
|
12
|
+
get images(): CustomizationImages
|
|
13
|
+
set images(val: CustomizationImages)
|
|
14
|
+
|
|
15
|
+
get uiCustomizationLayer(): Record<string, any> | null
|
|
16
|
+
set uiCustomizationLayer(val: Record<string, any> | null)
|
|
17
|
+
|
|
18
|
+
set onCustomButtonTapped(completion: CustomButtonTappedCompletion)
|
|
19
|
+
|
|
20
|
+
static fromJson(jsonObject: Record<string, any>): Customization
|
|
21
|
+
toJson(): Record<string, any>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type CustomButtonTappedCompletion = (tag: number) => void
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export class CustomizationColors {
|
|
2
|
+
set onboardingScreenStartButtonBackground(val: number)
|
|
3
|
+
set onboardingScreenStartButtonTitle(val: number)
|
|
4
|
+
set onboardingScreenBackground(val: number)
|
|
5
|
+
set onboardingScreenTitleLabelText(val: number)
|
|
6
|
+
set onboardingScreenSubtitleLabelText(val: number)
|
|
7
|
+
set onboardingScreenMessageLabelsText(val: number)
|
|
8
|
+
set cameraScreenStrokeNormal(val: number)
|
|
9
|
+
set cameraScreenStrokeActive(val: number)
|
|
10
|
+
set cameraScreenSectorTarget(val: number)
|
|
11
|
+
set cameraScreenSectorActive(val: number)
|
|
12
|
+
set cameraScreenFrontHintLabelBackground(val: number)
|
|
13
|
+
set cameraScreenFrontHintLabelText(val: number)
|
|
14
|
+
set cameraScreenBackHintLabelBackground(val: number)
|
|
15
|
+
set cameraScreenBackHintLabelText(val: number)
|
|
16
|
+
set cameraScreenLightToolbarTint(val: number)
|
|
17
|
+
set cameraScreenDarkToolbarTint(val: number)
|
|
18
|
+
set retryScreenBackground(val: number)
|
|
19
|
+
set retryScreenRetryButtonBackground(val: number)
|
|
20
|
+
set retryScreenRetryButtonTitle(val: number)
|
|
21
|
+
set retryScreenTitleLabelText(val: number)
|
|
22
|
+
set retryScreenSubtitleLabelText(val: number)
|
|
23
|
+
set retryScreenHintLabelsText(val: number)
|
|
24
|
+
set processingScreenBackground(val: number)
|
|
25
|
+
set processingScreenProgress(val: number)
|
|
26
|
+
set processingScreenTitleLabel(val: number)
|
|
27
|
+
set successScreenBackground(val: number)
|
|
28
|
+
|
|
29
|
+
static fromJson(jsonObject: Record<string, number>): CustomizationColors
|
|
30
|
+
toJson(): Record<string, number>
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Font} from './font'
|
|
2
|
+
|
|
3
|
+
export class CustomizationFonts {
|
|
4
|
+
set onboardingScreenStartButton(val: Font | null)
|
|
5
|
+
set onboardingScreenTitleLabel(val: Font | null)
|
|
6
|
+
set onboardingScreenSubtitleLabel(val: Font | null)
|
|
7
|
+
set onboardingScreenMessageLabels(val: Font | null)
|
|
8
|
+
set cameraScreenHintLabel(val: Font | null)
|
|
9
|
+
set retryScreenRetryButton(val: Font | null)
|
|
10
|
+
set retryScreenTitleLabel(val: Font | null)
|
|
11
|
+
set retryScreenSubtitleLabel(val: Font | null)
|
|
12
|
+
set retryScreenHintLabels(val: Font | null)
|
|
13
|
+
set processingScreenLabel(val: Font | null)
|
|
14
|
+
|
|
15
|
+
static fromJson(jsonObject: Record<string, any>): CustomizationFonts
|
|
16
|
+
toJson(): Record<string, any>
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class CustomizationImages {
|
|
2
|
+
set onboardingScreenCloseButton(val: string)
|
|
3
|
+
set onboardingScreenIllumination(val: string)
|
|
4
|
+
set onboardingScreenAccessories(val: string)
|
|
5
|
+
set onboardingScreenCameraLevel(val: string)
|
|
6
|
+
set cameraScreenCloseButton(val: string)
|
|
7
|
+
set cameraScreenLightOnButton(val: string)
|
|
8
|
+
set cameraScreenLightOffButton(val: string)
|
|
9
|
+
set cameraScreenSwitchButton(val: string)
|
|
10
|
+
set retryScreenCloseButton(val: string)
|
|
11
|
+
set retryScreenHintEnvironment(val: string)
|
|
12
|
+
set retryScreenHintSubject(val: string)
|
|
13
|
+
set processingScreenCloseButton(val: string)
|
|
14
|
+
set successScreenImage(val: string)
|
|
15
|
+
|
|
16
|
+
static fromJson(jsonObject: Record<string, string>): CustomizationImages
|
|
17
|
+
toJson(): Record<string, string>
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
get quality(): Array<ImageQualityResult> | null
|
|
8
|
+
get attributes(): Array<DetectFacesAttributeResult> | null
|
|
9
|
+
get crop(): string | null
|
|
10
|
+
get faceRect(): Rect | null
|
|
11
|
+
get originalRect(): Rect | null
|
|
12
|
+
get landmarks(): Array<Point> | null
|
|
13
|
+
get isQualityCompliant(): boolean
|
|
14
|
+
|
|
15
|
+
private constructor()
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DetectFacesAttribute } from './detect_faces_attribute'
|
|
2
|
+
import { ImageQualityRange } from '../image_quality/image_quality_range'
|
|
3
|
+
|
|
4
|
+
export class DetectFacesAttributeResult {
|
|
5
|
+
get attribute(): DetectFacesAttribute
|
|
6
|
+
get confidence(): number | null
|
|
7
|
+
get value(): string | null
|
|
8
|
+
get range(): ImageQualityRange | null
|
|
9
|
+
|
|
10
|
+
private constructor()
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class DetectFacesBackendException {
|
|
2
|
+
get code(): DetectFacesBackendErrorCode
|
|
3
|
+
get message(): string
|
|
4
|
+
|
|
5
|
+
private constructor()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum DetectFacesBackendErrorCode {
|
|
9
|
+
FR_FACE_NOT_DETECTED,
|
|
10
|
+
FACER_NO_LICENSE,
|
|
11
|
+
FACER_IS_NOT_INITIALIZED,
|
|
12
|
+
FACER_COMMAND_IS_NOT_SUPPORTED,
|
|
13
|
+
FACER_COMMAND_PARAMS_READ_ERROR,
|
|
14
|
+
UNDEFINED
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DetectFacesAttribute } from './detect_faces_attribute'
|
|
2
|
+
import { ImageQualityCharacteristic } from '../image_quality/image_quality_characteristic'
|
|
3
|
+
import { OutputImageParams } from '../image_params/output_image_params'
|
|
4
|
+
|
|
5
|
+
export class DetectFacesConfig {
|
|
6
|
+
attributes?: Array<DetectFacesAttribute>
|
|
7
|
+
customQuality?: Array<ImageQualityCharacteristic>
|
|
8
|
+
outputImageParams?: OutputImageParams
|
|
9
|
+
onlyCentralFace: boolean
|
|
10
|
+
|
|
11
|
+
constructor(
|
|
12
|
+
params?: {
|
|
13
|
+
attributes?: Array<DetectFacesAttribute>,
|
|
14
|
+
customQuality?: Array<ImageQualityCharacteristic>,
|
|
15
|
+
outputImageParams?: OutputImageParams,
|
|
16
|
+
onlyCentralFace?: boolean
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DetectFacesBackendException } from "./detect_faces_backend_exception"
|
|
2
|
+
|
|
3
|
+
export class DetectFacesException {
|
|
4
|
+
get code(): DetectFacesErrorCode
|
|
5
|
+
get message(): string
|
|
6
|
+
get underlyingError(): DetectFacesBackendException | null
|
|
7
|
+
|
|
8
|
+
private constructor()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum DetectFacesErrorCode {
|
|
12
|
+
IMAGE_EMPTY,
|
|
13
|
+
FR_FACE_NOT_DETECTED,
|
|
14
|
+
FACER_NO_LICENSE,
|
|
15
|
+
FACER_IS_NOT_INITIALIZED,
|
|
16
|
+
FACER_COMMAND_IS_NOT_SUPPORTED,
|
|
17
|
+
FACER_COMMAND_PARAMS_READ_ERROR,
|
|
18
|
+
PROCESSING_FAILED,
|
|
19
|
+
REQUEST_FAILED,
|
|
20
|
+
API_CALL_FAILED
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DetectFacesConfig } from './detect_faces_config'
|
|
2
|
+
|
|
3
|
+
export class DetectFacesRequest {
|
|
4
|
+
constructor(
|
|
5
|
+
image: string,
|
|
6
|
+
config: DetectFacesConfig,
|
|
7
|
+
params?: {
|
|
8
|
+
tag?: string,
|
|
9
|
+
}
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
static qualityFull(image: string): DetectFacesRequest
|
|
13
|
+
|
|
14
|
+
static qualityICAO(image: string): DetectFacesRequest
|
|
15
|
+
|
|
16
|
+
static qualityVisaSchengen(image: string): DetectFacesRequest
|
|
17
|
+
|
|
18
|
+
static qualityVisaUSA(image: string): DetectFacesRequest
|
|
19
|
+
|
|
20
|
+
static cropCentralFace(image: string): DetectFacesRequest
|
|
21
|
+
|
|
22
|
+
static cropAllFaces(image: string): DetectFacesRequest
|
|
23
|
+
|
|
24
|
+
static thumbnail(image: string): DetectFacesRequest
|
|
25
|
+
|
|
26
|
+
static allAttributes(image: string): DetectFacesRequest
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DetectFaceResult } from './detect_face_result'
|
|
2
|
+
import { DetectFacesException } from './detect_faces_exception'
|
|
3
|
+
import { DetectFacesScenario } from './detect_faces_scenario'
|
|
4
|
+
|
|
5
|
+
export class DetectFacesResponse {
|
|
6
|
+
get detection(): DetectFaceResult | null
|
|
7
|
+
get allDetections(): Array<DetectFaceResult> | null
|
|
8
|
+
get scenario(): DetectFacesScenario | null
|
|
9
|
+
get error(): DetectFacesException | null
|
|
10
|
+
|
|
11
|
+
private constructor()
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
+
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
+
|
|
4
|
+
export class FaceCaptureConfig {
|
|
5
|
+
copyright: boolean
|
|
6
|
+
cameraSwitchEnabled: boolean
|
|
7
|
+
closeButtonEnabled: boolean
|
|
8
|
+
torchButtonEnabled: boolean
|
|
9
|
+
vibrateOnSteps: boolean
|
|
10
|
+
cameraPositionAndroid?: number
|
|
11
|
+
cameraPositionIOS: CameraPosition
|
|
12
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
13
|
+
timeout?: number
|
|
14
|
+
holdStillDuration?: number
|
|
15
|
+
|
|
16
|
+
constructor(
|
|
17
|
+
params?: {
|
|
18
|
+
copyright?: boolean
|
|
19
|
+
cameraSwitchEnabled?: boolean
|
|
20
|
+
closeButtonEnabled?: boolean
|
|
21
|
+
torchButtonEnabled?: boolean
|
|
22
|
+
vibrateOnSteps?: boolean
|
|
23
|
+
cameraPositionAndroid?: number
|
|
24
|
+
cameraPositionIOS?: CameraPosition
|
|
25
|
+
screenOrientation?: Array<ScreenOrientation>
|
|
26
|
+
timeout?: number
|
|
27
|
+
holdStillDuration?: number
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class FaceCaptureException {
|
|
2
|
+
get code(): FaceCaptureErrorCode
|
|
3
|
+
get message(): string
|
|
4
|
+
|
|
5
|
+
private constructor()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum FaceCaptureErrorCode {
|
|
9
|
+
CANCEL,
|
|
10
|
+
TIMEOUT,
|
|
11
|
+
NOT_INITIALIZED,
|
|
12
|
+
SESSION_START_FAILED,
|
|
13
|
+
CAMERA_NOT_AVAILABLE,
|
|
14
|
+
CAMERA_NO_PERMISSION,
|
|
15
|
+
IN_PROGRESS_ALREADY,
|
|
16
|
+
CONTEXT_IS_NULL
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FaceCaptureImage } from './face_capture_image'
|
|
2
|
+
import { FaceCaptureException } from './face_capture_exception'
|
|
3
|
+
|
|
4
|
+
export class FaceCaptureResponse {
|
|
5
|
+
get image(): FaceCaptureImage | null
|
|
6
|
+
get error(): FaceCaptureException | null
|
|
7
|
+
|
|
8
|
+
private constructor()
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Size } from './size'
|
|
2
|
+
|
|
3
|
+
export class OutputImageCrop {
|
|
4
|
+
get type(): OutputImageCropAspectRatio
|
|
5
|
+
get size(): Size | null
|
|
6
|
+
get padColor(): number | null
|
|
7
|
+
get returnOriginalRect(): boolean
|
|
8
|
+
|
|
9
|
+
constructor(
|
|
10
|
+
type: OutputImageCropAspectRatio,
|
|
11
|
+
params?: {
|
|
12
|
+
size?: Size,
|
|
13
|
+
padColor?: number,
|
|
14
|
+
returnOriginalRect?: boolean,
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum OutputImageCropAspectRatio {
|
|
20
|
+
RATIO_3X4,
|
|
21
|
+
RATIO_4X5,
|
|
22
|
+
RATIO_2X3,
|
|
23
|
+
RATIO_1X1,
|
|
24
|
+
RATIO_7X9
|
|
25
|
+
}
|