@regulaforensics/face-sdk 7.2.433-rc → 7.2.444-rc
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 +2 -3
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +18 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +2 -2
- package/examples/capacitor/index.html +2 -7
- package/examples/capacitor/index.tsx +53 -0
- package/examples/capacitor/package-lock.json +12 -162
- package/examples/capacitor/package.json +4 -4
- package/examples/capacitor/scripts/setup.sh +4 -2
- package/examples/capacitor/src/main.css +60 -6
- package/examples/capacitor/src/main.html +1 -1
- package/examples/capacitor/src/main.tsx +51 -87
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/angular.json +3 -3
- package/examples/ionic/config.xml +4 -2
- package/examples/ionic/index.tsx +68 -0
- package/examples/ionic/package-lock.json +42 -68
- package/examples/ionic/package.json +2 -2
- package/examples/ionic/src/main.css +60 -6
- package/examples/ionic/src/main.html +1 -1
- package/examples/ionic/src/{main.ts → main.tsx} +52 -97
- package/examples/ionic/tsconfig.json +3 -2
- package/examples/react_native/README.md +1 -0
- package/examples/react_native/app.config.ts +1 -1
- package/examples/react_native/index.tsx +49 -7
- package/examples/react_native/package-lock.json +594 -597
- package/examples/react_native/package.json +9 -9
- package/examples/react_native/src/main.css +60 -6
- package/examples/react_native/src/main.html +1 -1
- package/examples/react_native/src/main.tsx +54 -77
- package/ios/RFSWJSONConstructor.h +0 -1
- package/ios/RFSWJSONConstructor.m +5 -14
- package/ios/RFSWMain.m +30 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +375 -0
- package/test/package-lock.json +584 -0
- package/test/package.json +9 -0
- package/test/test.tsx +61 -0
- package/test/utils.tsx +38 -0
- package/www/capacitor/customization/customization_fonts.js +1 -1
- package/www/capacitor/customization/customization_images.js +1 -1
- package/www/capacitor/customization/font.js +8 -0
- package/www/capacitor/detect_faces/detect_face_result.js +12 -0
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +9 -0
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +7 -0
- package/www/capacitor/detect_faces/detect_faces_config.js +34 -0
- package/www/capacitor/detect_faces/detect_faces_exception.js +8 -0
- package/www/capacitor/detect_faces/detect_faces_request.js +22 -0
- package/www/capacitor/detect_faces/detect_faces_response.js +9 -0
- package/www/capacitor/face_capture/face_capture_config.js +37 -0
- package/www/capacitor/face_capture/face_capture_exception.js +7 -0
- package/www/capacitor/face_capture/face_capture_image.js +8 -0
- package/www/capacitor/face_capture/face_capture_response.js +7 -0
- package/www/capacitor/image_params/output_image_crop.js +23 -0
- package/www/capacitor/image_params/output_image_params.js +19 -0
- package/www/capacitor/image_params/point.js +7 -0
- package/www/capacitor/image_params/rect.js +9 -0
- package/www/capacitor/image_params/size.js +12 -0
- package/www/capacitor/image_quality/image_quality_characteristic.js +22 -0
- package/www/capacitor/image_quality/image_quality_range.js +7 -0
- package/www/capacitor/image_quality/image_quality_result.js +10 -0
- package/www/capacitor/index.js +48 -0
- package/www/capacitor/init/face_sdk_version.js +8 -0
- package/www/capacitor/init/init_config.js +19 -0
- package/www/capacitor/init/init_exception.js +8 -0
- package/www/capacitor/init/license_exception.js +7 -0
- package/www/capacitor/internal/bridge.js +20 -1
- package/www/capacitor/liveness/liveness_backend_exception.js +7 -0
- package/www/capacitor/liveness/liveness_config.js +43 -0
- package/www/capacitor/liveness/liveness_exception.js +8 -0
- package/www/capacitor/liveness/liveness_notification.js +7 -0
- package/www/capacitor/liveness/liveness_response.js +11 -0
- package/www/capacitor/match_faces/compared_face.js +9 -0
- package/www/capacitor/match_faces/compared_faces_pair.js +10 -0
- package/www/capacitor/match_faces/compared_faces_split.js +7 -0
- package/www/capacitor/match_faces/match_faces_backend_exception.js +7 -0
- package/www/capacitor/match_faces/match_faces_config.js +19 -0
- package/www/capacitor/match_faces/match_faces_detection.js +9 -0
- package/www/capacitor/match_faces/match_faces_detection_face.js +11 -0
- package/www/capacitor/match_faces/match_faces_exception.js +8 -0
- package/www/capacitor/match_faces/match_faces_image.js +9 -0
- package/www/capacitor/match_faces/match_faces_request.js +27 -0
- package/www/capacitor/match_faces/match_faces_response.js +9 -0
- package/www/capacitor/person_database/edit_group_persons_request.js +15 -0
- package/www/capacitor/person_database/image_upload.js +17 -0
- package/www/capacitor/person_database/pageable_item_list.js +8 -0
- package/www/capacitor/person_database/person.js +13 -0
- package/www/capacitor/person_database/person_group.js +11 -0
- package/www/capacitor/person_database/person_image.js +13 -0
- package/www/capacitor/person_database/search_person.js +14 -0
- package/www/capacitor/person_database/search_person_detection.js +9 -0
- package/www/capacitor/person_database/search_person_image.js +15 -0
- package/www/capacitor/person_database/search_person_request.js +29 -0
- package/www/cordova.js +753 -6
- package/www/react-native/customization/customization_fonts.js +1 -1
- package/www/react-native/customization/customization_images.js +1 -1
- package/www/react-native/customization/font.js +8 -0
- package/www/react-native/detect_faces/detect_face_result.js +12 -0
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +9 -0
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +7 -0
- package/www/react-native/detect_faces/detect_faces_config.js +34 -0
- package/www/react-native/detect_faces/detect_faces_exception.js +8 -0
- package/www/react-native/detect_faces/detect_faces_request.js +22 -0
- package/www/react-native/detect_faces/detect_faces_response.js +9 -0
- package/www/react-native/face_capture/face_capture_config.js +37 -0
- package/www/react-native/face_capture/face_capture_exception.js +7 -0
- package/www/react-native/face_capture/face_capture_image.js +8 -0
- package/www/react-native/face_capture/face_capture_response.js +7 -0
- package/www/react-native/image_params/output_image_crop.js +23 -0
- package/www/react-native/image_params/output_image_params.js +19 -0
- package/www/react-native/image_params/point.js +7 -0
- package/www/react-native/image_params/rect.js +9 -0
- package/www/react-native/image_params/size.js +12 -0
- package/www/react-native/image_quality/image_quality_characteristic.js +22 -0
- package/www/react-native/image_quality/image_quality_range.js +7 -0
- package/www/react-native/image_quality/image_quality_result.js +10 -0
- package/www/react-native/index.js +48 -0
- package/www/react-native/init/face_sdk_version.js +8 -0
- package/www/react-native/init/init_config.js +19 -0
- package/www/react-native/init/init_exception.js +8 -0
- package/www/react-native/init/license_exception.js +7 -0
- package/www/react-native/internal/bridge.js +20 -1
- package/www/react-native/liveness/liveness_backend_exception.js +7 -0
- package/www/react-native/liveness/liveness_config.js +43 -0
- package/www/react-native/liveness/liveness_exception.js +8 -0
- package/www/react-native/liveness/liveness_notification.js +7 -0
- package/www/react-native/liveness/liveness_response.js +11 -0
- package/www/react-native/match_faces/compared_face.js +9 -0
- package/www/react-native/match_faces/compared_faces_pair.js +10 -0
- package/www/react-native/match_faces/compared_faces_split.js +7 -0
- package/www/react-native/match_faces/match_faces_backend_exception.js +7 -0
- package/www/react-native/match_faces/match_faces_config.js +19 -0
- package/www/react-native/match_faces/match_faces_detection.js +9 -0
- package/www/react-native/match_faces/match_faces_detection_face.js +11 -0
- package/www/react-native/match_faces/match_faces_exception.js +8 -0
- package/www/react-native/match_faces/match_faces_image.js +9 -0
- package/www/react-native/match_faces/match_faces_request.js +27 -0
- package/www/react-native/match_faces/match_faces_response.js +9 -0
- package/www/react-native/person_database/edit_group_persons_request.js +15 -0
- package/www/react-native/person_database/image_upload.js +17 -0
- package/www/react-native/person_database/pageable_item_list.js +8 -0
- package/www/react-native/person_database/person.js +13 -0
- package/www/react-native/person_database/person_group.js +11 -0
- package/www/react-native/person_database/person_image.js +13 -0
- package/www/react-native/person_database/search_person.js +14 -0
- package/www/react-native/person_database/search_person_detection.js +9 -0
- package/www/react-native/person_database/search_person_image.js +15 -0
- package/www/react-native/person_database/search_person_request.js +29 -0
- package/www/types/index.d.ts +12 -0
- package/www/types/match_faces/match_faces_config.d.ts +2 -0
- package/www/types/person_database/search_person_request.d.ts +4 -0
- package/examples/cordova/.vscode/launch.json +0 -28
- package/examples/cordova/README.md +0 -25
- package/examples/cordova/config.xml +0 -26
- package/examples/cordova/package-lock.json +0 -1327
- package/examples/cordova/package.json +0 -30
- package/examples/cordova/scripts/android.sh +0 -8
- package/examples/cordova/scripts/ios.sh +0 -8
- package/examples/cordova/scripts/setup.sh +0 -8
- package/examples/cordova/www/images/logo.png +0 -0
- package/examples/cordova/www/index.html +0 -21
- package/examples/cordova/www/src/main.css +0 -83
- package/examples/cordova/www/src/main.html +0 -25
- package/examples/cordova/www/src/main.js +0 -152
- package/examples/ionic/index.ts +0 -17
- package/examples/ionic/src/images/portrait.png +0 -0
- /package/examples/ionic/{src/assets → assets}/.gitkeep +0 -0
- /package/examples/ionic/{src/images → images}/icon.png +0 -0
- /package/examples/{cordova/www → ionic}/images/portrait.png +0 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import '@ionic/react/css/core.css'
|
|
2
|
-
import './main.css'
|
|
3
|
-
import { setupIonicReact } from '@ionic/react'
|
|
4
|
-
import { StatusBar, Style } from '@capacitor/status-bar'
|
|
5
|
-
import { File } from '@awesome-cordova-plugins/file'
|
|
6
|
-
import { Dialog } from '@capacitor/dialog'
|
|
7
|
-
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera'
|
|
8
1
|
import { FaceSDK, MatchFacesRequest, MatchFacesImage, InitConfig, LivenessSkipStep, ImageType, LivenessStatus, LivenessConfig } from '@regulaforensics/face-sdk'
|
|
2
|
+
import { loadAssetIfExists, chooseOption, pickImage } from '../index'
|
|
3
|
+
|
|
4
|
+
var faceSdk = FaceSDK.instance
|
|
5
|
+
var image1: MatchFacesImage | null
|
|
6
|
+
var image2: MatchFacesImage | null
|
|
9
7
|
|
|
10
8
|
async function init() {
|
|
11
9
|
if (!await initializeReader()) return
|
|
12
10
|
setStatus("Ready")
|
|
13
11
|
}
|
|
14
12
|
|
|
13
|
+
async function startFaceCapture(position: number) {
|
|
14
|
+
var image = (await faceSdk.startFaceCapture()).image
|
|
15
|
+
if (image == null) return
|
|
16
|
+
setImage("data:image/png;base64," + image.image, image.imageType, position)
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
async function startLiveness() {
|
|
16
20
|
var response = await faceSdk.startLiveness({
|
|
17
21
|
config: new LivenessConfig({
|
|
@@ -42,30 +46,15 @@ async function matchFaces() {
|
|
|
42
46
|
setStatus("Ready")
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// If 'regula.license' exists, init using license(enables offline match)
|
|
55
|
-
// otherwise init without license.
|
|
56
|
-
async function initializeReader() {
|
|
57
|
-
setStatus("Initializing...")
|
|
58
|
-
|
|
59
|
-
var license = await loadAssetIfExists("regula.license")
|
|
60
|
-
var config: InitConfig | undefined
|
|
61
|
-
if (license != null) config = new InitConfig(license)
|
|
62
|
-
var [success, error] = await faceSdk.initialize({ config: config })
|
|
63
|
-
|
|
64
|
-
if (!success && error != null) {
|
|
65
|
-
setStatus(error.message)
|
|
66
|
-
console.log(error.code + ": " + error.message)
|
|
49
|
+
async function getImage(position: number) {
|
|
50
|
+
var source = await chooseOption()
|
|
51
|
+
if (source == null) return
|
|
52
|
+
if (source) startFaceCapture(position)
|
|
53
|
+
else {
|
|
54
|
+
var image = await pickImage()
|
|
55
|
+
if (image == null) return
|
|
56
|
+
setImage(image, ImageType.PRINTED, position)
|
|
67
57
|
}
|
|
68
|
-
return success
|
|
69
58
|
}
|
|
70
59
|
|
|
71
60
|
function setImage(base64: string, type: number, position: number) {
|
|
@@ -82,71 +71,46 @@ function setImage(base64: string, type: number, position: number) {
|
|
|
82
71
|
}
|
|
83
72
|
}
|
|
84
73
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
setImage("data:image/png;base64," + image.image, image.imageType, position)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
async function useGallery(position: number) {
|
|
93
|
-
var image = await Camera.getPicture({
|
|
94
|
-
destinationType: DestinationType.DATA_URL,
|
|
95
|
-
mediaType: MediaType.PICTURE,
|
|
96
|
-
sourceType: PictureSourceType.PHOTOLIBRARY
|
|
97
|
-
})
|
|
98
|
-
setImage(image, ImageType.PRINTED, position)
|
|
99
|
-
}
|
|
74
|
+
// If 'regula.license' exists, init using license(enables offline match)
|
|
75
|
+
// otherwise init without license.
|
|
76
|
+
async function initializeReader() {
|
|
77
|
+
setStatus("Initializing...")
|
|
100
78
|
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
cancelButtonTitle: "Use gallery"
|
|
106
|
-
})
|
|
107
|
-
if (response.value) useCamera(position)
|
|
108
|
-
else useGallery(position)
|
|
109
|
-
}
|
|
79
|
+
var license = await loadAssetIfExists("regula.license")
|
|
80
|
+
var config: InitConfig | undefined
|
|
81
|
+
if (license != null) config = new InitConfig(license)
|
|
82
|
+
var [success, error] = await faceSdk.initialize({ config: config })
|
|
110
83
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
var fileEntry = await File.getFile(dir, path, null)
|
|
115
|
-
var result = await new Promise<string | null>((resolve, _) => {
|
|
116
|
-
fileEntry.file(file => {
|
|
117
|
-
var reader = new FileReader()
|
|
118
|
-
reader.onloadend = (_) => resolve(reader.result as string)
|
|
119
|
-
reader.readAsDataURL(file)
|
|
120
|
-
}, _ => resolve(null))
|
|
121
|
-
})
|
|
122
|
-
return result
|
|
123
|
-
} catch (_) {
|
|
124
|
-
return null
|
|
84
|
+
if (error != null) {
|
|
85
|
+
setStatus(error.message)
|
|
86
|
+
console.log(error.code + ": " + error.message)
|
|
125
87
|
}
|
|
88
|
+
return success
|
|
126
89
|
}
|
|
127
90
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
91
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
92
|
+
|
|
93
|
+
export function main() {
|
|
94
|
+
document.getElementById("first-image")!.onclick = () => getImage(1)
|
|
95
|
+
document.getElementById("second-image")!.onclick = () => getImage(2)
|
|
96
|
+
document.getElementById("match-faces")!.onclick = () => matchFaces()
|
|
97
|
+
document.getElementById("start-liveness")!.onclick = () => startLiveness()
|
|
98
|
+
document.getElementById("clear-results")!.onclick = () => clearResults()
|
|
131
99
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
100
|
+
init()
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var setStatus = (data: string) => document.getElementById("status")!.innerHTML = data
|
|
104
|
+
var setLivenessStatus = (data: string) => document.getElementById("liveness-status")!.innerHTML = data
|
|
105
|
+
var setSimilarityStatus = (data: string) => document.getElementById("similarity-status")!.innerHTML = data
|
|
135
106
|
var setUiImage1 = (data: string) => (document.getElementById("first-image") as HTMLImageElement).src = data
|
|
136
107
|
var setUiImage2 = (data: string) => (document.getElementById("second-image") as HTMLImageElement).src = data
|
|
137
|
-
var
|
|
108
|
+
var clearResults = () => {
|
|
109
|
+
setStatus("Ready")
|
|
110
|
+
setSimilarityStatus("null")
|
|
111
|
+
setLivenessStatus("null")
|
|
138
112
|
setUiImage1("images/portrait.png")
|
|
139
113
|
setUiImage2("images/portrait.png")
|
|
114
|
+
image1 = null
|
|
115
|
+
image2 = null
|
|
140
116
|
}
|
|
141
|
-
|
|
142
|
-
setupIonicReact()
|
|
143
|
-
StatusBar.setStyle({ style: Style.Light })
|
|
144
|
-
document.addEventListener('deviceready', () => {
|
|
145
|
-
document.getElementById("first-image").onclick = () => pickImage(1)
|
|
146
|
-
document.getElementById("second-image").onclick = () => pickImage(2)
|
|
147
|
-
document.getElementById("match-faces").onclick = () => matchFaces()
|
|
148
|
-
document.getElementById("start-liveness").onclick = () => startLiveness()
|
|
149
|
-
document.getElementById("clear-results").onclick = () => clearResults()
|
|
150
|
-
|
|
151
|
-
init()
|
|
152
|
-
})
|
package/examples/ionic/README.md
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"options": {
|
|
12
12
|
"outputPath": "www",
|
|
13
13
|
"index": "index.html",
|
|
14
|
-
"main": "index.
|
|
14
|
+
"main": "index.tsx",
|
|
15
15
|
"tsConfig": "tsconfig.json",
|
|
16
16
|
"assets": [
|
|
17
17
|
{
|
|
18
18
|
"glob": "**/*",
|
|
19
|
-
"input": "
|
|
19
|
+
"input": "assets",
|
|
20
20
|
"output": "assets"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"glob": "**/*",
|
|
24
|
-
"input": "
|
|
24
|
+
"input": "images",
|
|
25
25
|
"output": "images"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<widget android-packageName="com.regula.documentreader.api.androidtest" ios-CFBundleIdentifier="com.regula.documentreader.qa" version="1.0.0"
|
|
2
|
+
<widget android-packageName="com.regula.documentreader.api.androidtest" ios-CFBundleIdentifier="com.regula.documentreader.qa" version="1.0.0"
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
4
|
<name>FaceSDK</name>
|
|
4
|
-
<icon src="
|
|
5
|
+
<icon src="images/icon.png" />
|
|
5
6
|
<platform name="android">
|
|
6
7
|
<preference name="orientation" value="portrait" />
|
|
7
8
|
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
13
14
|
</platform>
|
|
14
15
|
<platform name="ios">
|
|
16
|
+
<preference name="deployment-target" value="14.0" />
|
|
15
17
|
<preference name="orientation" value="portrait" />
|
|
16
18
|
<allow-intent href="itms:*" />
|
|
17
19
|
<allow-intent href="itms-apps:*" />
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import 'zone.js';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
|
|
3
|
+
import { BrowserModule } from '@angular/platform-browser'
|
|
4
|
+
import { IonicModule, Platform } from '@ionic/angular'
|
|
5
|
+
import { NgModule } from '@angular/core'
|
|
6
|
+
|
|
7
|
+
import { Component } from '@angular/core'
|
|
8
|
+
import { File } from '@awesome-cordova-plugins/file'
|
|
9
|
+
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera/ngx'
|
|
10
|
+
import { Dialogs } from '@awesome-cordova-plugins/dialogs/ngx'
|
|
11
|
+
|
|
12
|
+
import { main } from './src/main'
|
|
13
|
+
|
|
14
|
+
export async function loadAssetIfExists(path: string): Promise<string | null> {
|
|
15
|
+
try {
|
|
16
|
+
var dir = await File.resolveDirectoryUrl(File.applicationDirectory + "www/assets")
|
|
17
|
+
var fileEntry = await File.getFile(dir, path, null)
|
|
18
|
+
var result = await new Promise<string | null>((resolve, _) => {
|
|
19
|
+
fileEntry.file(file => {
|
|
20
|
+
var reader = new FileReader()
|
|
21
|
+
reader.onloadend = (_) => resolve(reader.result as string)
|
|
22
|
+
reader.readAsDataURL(file)
|
|
23
|
+
}, _ => resolve(null))
|
|
24
|
+
})
|
|
25
|
+
return result
|
|
26
|
+
} catch (_) {
|
|
27
|
+
return null
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export async function pickImage(): Promise<string | null> {
|
|
32
|
+
return await cameraInstance.getPicture({
|
|
33
|
+
destinationType: DestinationType.DATA_URL,
|
|
34
|
+
mediaType: MediaType.PICTURE,
|
|
35
|
+
sourceType: PictureSourceType.PHOTOLIBRARY
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export async function chooseOption(): Promise<boolean | null> {
|
|
40
|
+
return await dialogsInstance.confirm("", "Select option", [
|
|
41
|
+
"Use camera",
|
|
42
|
+
"Use gallery"
|
|
43
|
+
]) == 1
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var cameraInstance: Camera
|
|
47
|
+
var dialogsInstance: Dialogs
|
|
48
|
+
@Component({
|
|
49
|
+
selector: 'app-root',
|
|
50
|
+
templateUrl: 'src/main.html',
|
|
51
|
+
styleUrl: 'src/main.css'
|
|
52
|
+
})
|
|
53
|
+
class Main {
|
|
54
|
+
constructor(platform: Platform, camera: Camera, dialogs: Dialogs) {
|
|
55
|
+
cameraInstance = camera
|
|
56
|
+
dialogsInstance = dialogs
|
|
57
|
+
platform.ready().then(main)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@NgModule({
|
|
62
|
+
bootstrap: [Main],
|
|
63
|
+
providers: [Platform, Camera, Dialogs],
|
|
64
|
+
imports: [BrowserModule, IonicModule.forRoot()]
|
|
65
|
+
})
|
|
66
|
+
class MainModule { }
|
|
67
|
+
|
|
68
|
+
platformBrowserDynamic().bootstrapModule(MainModule)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "face-sdk",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/build-angular": "
|
|
9
|
+
"@angular-devkit/build-angular": "19.2.15",
|
|
10
10
|
"@angular/cli": "19.2.10",
|
|
11
11
|
"@angular/common": "19.2.9",
|
|
12
12
|
"@angular/compiler-cli": "19.2.9",
|
|
@@ -3161,13 +3161,13 @@
|
|
|
3161
3161
|
}
|
|
3162
3162
|
},
|
|
3163
3163
|
"node_modules/@inquirer/core": {
|
|
3164
|
-
"version": "10.
|
|
3165
|
-
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.
|
|
3166
|
-
"integrity": "sha512-
|
|
3164
|
+
"version": "10.2.0",
|
|
3165
|
+
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.2.0.tgz",
|
|
3166
|
+
"integrity": "sha512-NyDSjPqhSvpZEMZrLCYUquWNl+XC/moEcVFqS55IEYIYsY0a1cUCevSqk7ctOlnm/RaSBU5psFryNlxcmGrjaA==",
|
|
3167
3167
|
"license": "MIT",
|
|
3168
3168
|
"dependencies": {
|
|
3169
|
-
"@inquirer/figures": "^1.0.
|
|
3170
|
-
"@inquirer/type": "^3.0.
|
|
3169
|
+
"@inquirer/figures": "^1.0.13",
|
|
3170
|
+
"@inquirer/type": "^3.0.8",
|
|
3171
3171
|
"ansi-escapes": "^4.3.2",
|
|
3172
3172
|
"cli-width": "^4.1.0",
|
|
3173
3173
|
"mute-stream": "^2.0.0",
|
|
@@ -3188,14 +3188,14 @@
|
|
|
3188
3188
|
}
|
|
3189
3189
|
},
|
|
3190
3190
|
"node_modules/@inquirer/editor": {
|
|
3191
|
-
"version": "4.2.
|
|
3192
|
-
"resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.
|
|
3193
|
-
"integrity": "sha512-
|
|
3191
|
+
"version": "4.2.18",
|
|
3192
|
+
"resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.18.tgz",
|
|
3193
|
+
"integrity": "sha512-yeQN3AXjCm7+Hmq5L6Dm2wEDeBRdAZuyZ4I7tWSSanbxDzqM0KqzoDbKM7p4ebllAYdoQuPJS6N71/3L281i6w==",
|
|
3194
3194
|
"license": "MIT",
|
|
3195
3195
|
"dependencies": {
|
|
3196
|
-
"@inquirer/core": "^10.
|
|
3197
|
-
"@inquirer/
|
|
3198
|
-
"
|
|
3196
|
+
"@inquirer/core": "^10.2.0",
|
|
3197
|
+
"@inquirer/external-editor": "^1.0.1",
|
|
3198
|
+
"@inquirer/type": "^3.0.8"
|
|
3199
3199
|
},
|
|
3200
3200
|
"engines": {
|
|
3201
3201
|
"node": ">=18"
|
|
@@ -3231,10 +3231,31 @@
|
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
3233
|
},
|
|
3234
|
+
"node_modules/@inquirer/external-editor": {
|
|
3235
|
+
"version": "1.0.1",
|
|
3236
|
+
"resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.1.tgz",
|
|
3237
|
+
"integrity": "sha512-Oau4yL24d2B5IL4ma4UpbQigkVhzPDXLoqy1ggK4gnHg/stmkffJE4oOXHXF3uz0UEpywG68KcyXsyYpA1Re/Q==",
|
|
3238
|
+
"license": "MIT",
|
|
3239
|
+
"dependencies": {
|
|
3240
|
+
"chardet": "^2.1.0",
|
|
3241
|
+
"iconv-lite": "^0.6.3"
|
|
3242
|
+
},
|
|
3243
|
+
"engines": {
|
|
3244
|
+
"node": ">=18"
|
|
3245
|
+
},
|
|
3246
|
+
"peerDependencies": {
|
|
3247
|
+
"@types/node": ">=18"
|
|
3248
|
+
},
|
|
3249
|
+
"peerDependenciesMeta": {
|
|
3250
|
+
"@types/node": {
|
|
3251
|
+
"optional": true
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
},
|
|
3234
3255
|
"node_modules/@inquirer/figures": {
|
|
3235
|
-
"version": "1.0.
|
|
3236
|
-
"resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.
|
|
3237
|
-
"integrity": "sha512-
|
|
3256
|
+
"version": "1.0.13",
|
|
3257
|
+
"resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.13.tgz",
|
|
3258
|
+
"integrity": "sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==",
|
|
3238
3259
|
"license": "MIT",
|
|
3239
3260
|
"engines": {
|
|
3240
3261
|
"node": ">=18"
|
|
@@ -3403,9 +3424,9 @@
|
|
|
3403
3424
|
}
|
|
3404
3425
|
},
|
|
3405
3426
|
"node_modules/@inquirer/type": {
|
|
3406
|
-
"version": "3.0.
|
|
3407
|
-
"resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.
|
|
3408
|
-
"integrity": "sha512
|
|
3427
|
+
"version": "3.0.8",
|
|
3428
|
+
"resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.8.tgz",
|
|
3429
|
+
"integrity": "sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==",
|
|
3409
3430
|
"license": "MIT",
|
|
3410
3431
|
"engines": {
|
|
3411
3432
|
"node": ">=18"
|
|
@@ -6388,9 +6409,9 @@
|
|
|
6388
6409
|
}
|
|
6389
6410
|
},
|
|
6390
6411
|
"node_modules/chardet": {
|
|
6391
|
-
"version": "
|
|
6392
|
-
"resolved": "https://registry.npmjs.org/chardet/-/chardet-
|
|
6393
|
-
"integrity": "sha512-
|
|
6412
|
+
"version": "2.1.0",
|
|
6413
|
+
"resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
|
|
6414
|
+
"integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==",
|
|
6394
6415
|
"license": "MIT"
|
|
6395
6416
|
},
|
|
6396
6417
|
"node_modules/cheerio": {
|
|
@@ -7801,32 +7822,6 @@
|
|
|
7801
7822
|
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
|
7802
7823
|
"license": "MIT"
|
|
7803
7824
|
},
|
|
7804
|
-
"node_modules/external-editor": {
|
|
7805
|
-
"version": "3.1.0",
|
|
7806
|
-
"resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
|
|
7807
|
-
"integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
|
|
7808
|
-
"license": "MIT",
|
|
7809
|
-
"dependencies": {
|
|
7810
|
-
"chardet": "^0.7.0",
|
|
7811
|
-
"iconv-lite": "^0.4.24",
|
|
7812
|
-
"tmp": "^0.0.33"
|
|
7813
|
-
},
|
|
7814
|
-
"engines": {
|
|
7815
|
-
"node": ">=4"
|
|
7816
|
-
}
|
|
7817
|
-
},
|
|
7818
|
-
"node_modules/external-editor/node_modules/iconv-lite": {
|
|
7819
|
-
"version": "0.4.24",
|
|
7820
|
-
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
|
7821
|
-
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
|
7822
|
-
"license": "MIT",
|
|
7823
|
-
"dependencies": {
|
|
7824
|
-
"safer-buffer": ">= 2.1.2 < 3"
|
|
7825
|
-
},
|
|
7826
|
-
"engines": {
|
|
7827
|
-
"node": ">=0.10.0"
|
|
7828
|
-
}
|
|
7829
|
-
},
|
|
7830
7825
|
"node_modules/extsprintf": {
|
|
7831
7826
|
"version": "1.4.1",
|
|
7832
7827
|
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz",
|
|
@@ -10508,15 +10503,6 @@
|
|
|
10508
10503
|
"license": "MIT",
|
|
10509
10504
|
"optional": true
|
|
10510
10505
|
},
|
|
10511
|
-
"node_modules/os-tmpdir": {
|
|
10512
|
-
"version": "1.0.2",
|
|
10513
|
-
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
|
10514
|
-
"integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
|
|
10515
|
-
"license": "MIT",
|
|
10516
|
-
"engines": {
|
|
10517
|
-
"node": ">=0.10.0"
|
|
10518
|
-
}
|
|
10519
|
-
},
|
|
10520
10506
|
"node_modules/p-finally": {
|
|
10521
10507
|
"version": "1.0.0",
|
|
10522
10508
|
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
|
|
@@ -12730,18 +12716,6 @@
|
|
|
12730
12716
|
"url": "https://github.com/sponsors/SuperchupuDev"
|
|
12731
12717
|
}
|
|
12732
12718
|
},
|
|
12733
|
-
"node_modules/tmp": {
|
|
12734
|
-
"version": "0.0.33",
|
|
12735
|
-
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
|
|
12736
|
-
"integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
|
|
12737
|
-
"license": "MIT",
|
|
12738
|
-
"dependencies": {
|
|
12739
|
-
"os-tmpdir": "~1.0.2"
|
|
12740
|
-
},
|
|
12741
|
-
"engines": {
|
|
12742
|
-
"node": ">=0.6.0"
|
|
12743
|
-
}
|
|
12744
|
-
},
|
|
12745
12719
|
"node_modules/to-regex-range": {
|
|
12746
12720
|
"version": "5.0.1",
|
|
12747
12721
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.2.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.2.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.2.444-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.2.260-rc",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.16.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.16.0",
|
|
13
13
|
"@awesome-cordova-plugins/dialogs": "6.16.0",
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
html,
|
|
2
2
|
body {
|
|
3
|
-
|
|
3
|
+
margin: 0;
|
|
4
|
+
width: 100%;
|
|
4
5
|
height: 99vh;
|
|
5
6
|
display: flex;
|
|
7
|
+
overflow: hidden;
|
|
6
8
|
flex-direction: column;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/* Prevent text selection */
|
|
12
|
+
* {
|
|
13
|
+
user-select: none !important;
|
|
14
|
+
-webkit-user-select: none !important;
|
|
15
|
+
-webkit-user-drag: none !important;
|
|
16
|
+
-webkit-touch-callout: none !important;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
.column {
|
|
@@ -52,10 +56,14 @@ body {
|
|
|
52
56
|
margin-top: 13px;
|
|
53
57
|
}
|
|
54
58
|
|
|
59
|
+
.scroll {
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
55
64
|
.no-scroll {
|
|
56
65
|
flex-grow: 1;
|
|
57
66
|
overflow-y: hidden;
|
|
58
|
-
overflow-x: hidden;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
.button {
|
|
@@ -67,6 +75,7 @@ body {
|
|
|
67
75
|
color: white;
|
|
68
76
|
border: none;
|
|
69
77
|
padding: 10px 20px;
|
|
78
|
+
justify-content: center;
|
|
70
79
|
font-size: 16px;
|
|
71
80
|
border-radius: 100px;
|
|
72
81
|
cursor: pointer;
|
|
@@ -80,4 +89,49 @@ body {
|
|
|
80
89
|
.button:active {
|
|
81
90
|
position: relative;
|
|
82
91
|
top: 1px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.text-button {
|
|
95
|
+
background: none;
|
|
96
|
+
border: none;
|
|
97
|
+
color: #2196f3;
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
padding: 5px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.text-button:active {
|
|
104
|
+
position: relative;
|
|
105
|
+
top: 1px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.radio {
|
|
109
|
+
align-items: baseline;
|
|
110
|
+
padding: 15px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
input[type="checkbox"] {
|
|
114
|
+
width: 20px;
|
|
115
|
+
height: 20px;
|
|
116
|
+
border: 2px solid black;
|
|
117
|
+
background-color: white;
|
|
118
|
+
display: inline-block;
|
|
119
|
+
position: relative;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.progress-bar {
|
|
124
|
+
width: 75%;
|
|
125
|
+
padding: 3px;
|
|
126
|
+
margin-top: 40px;
|
|
127
|
+
background-color: #eee;
|
|
128
|
+
border-radius: 8px;
|
|
129
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
#progress {
|
|
133
|
+
width: 0%;
|
|
134
|
+
height: 20px;
|
|
135
|
+
background-color: #4285F4;
|
|
136
|
+
border-radius: 5px;
|
|
83
137
|
}
|