@regulaforensics/face-sdk 6.5.55-beta → 6.5.63-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/RNFaceSDK.podspec +1 -1
- package/examples/capacitor/README.md +4 -4
- package/examples/capacitor/package.json +4 -4
- package/examples/capacitor/scripts/android.sh +9 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +4 -0
- package/examples/cordova/README.md +4 -4
- package/examples/cordova/package.json +5 -10
- package/examples/cordova/scripts/android.sh +8 -0
- package/examples/cordova/scripts/ios.sh +8 -0
- package/examples/cordova/scripts/setup.sh +5 -0
- package/examples/ionic/README.md +4 -4
- package/examples/ionic/package.json +4 -4
- package/examples/ionic/scripts/android.sh +8 -0
- package/examples/ionic/scripts/ios.sh +8 -0
- package/examples/ionic/scripts/setup.sh +5 -0
- package/examples/react-native/README.md +4 -4
- package/examples/react-native/package.json +4 -5
- package/examples/react-native/scripts/android.sh +8 -0
- package/examples/react-native/scripts/ios.sh +8 -0
- package/examples/react-native/scripts/setup.sh +8 -0
- package/package.json +2 -1
- package/plugin.xml +1 -1
- package/www/capacitor/image_quality/image_quality_group.js +23 -8
- package/www/capacitor/index.js +3 -0
- package/www/cordova.js +26 -8
- package/www/react-native/image_quality/image_quality_group.js +23 -8
- package/www/react-native/index.js +3 -0
- package/www/types/image_quality/image_quality_group.d.ts +43 -8
- package/www/types/index.d.ts +6 -0
package/RNFaceSDK.podspec
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh",
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"build": "tsc && vite build",
|
|
12
12
|
"preview": "vite preview",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lint": "eslint"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@regulaforensics/face-sdk": "6.5.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.5.63-beta",
|
|
19
19
|
"@regulaforensics/face-core-basic": "6.3.12-beta",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -4,17 +4,12 @@
|
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"ecosystem:cordova"
|
|
13
|
-
],
|
|
14
|
-
"author": "Regula Forensics Inc.",
|
|
15
|
-
"license": "commercial",
|
|
16
11
|
"dependencies": {
|
|
17
|
-
"@regulaforensics/face-sdk": "6.5.
|
|
12
|
+
"@regulaforensics/face-sdk": "6.5.63-beta",
|
|
18
13
|
"@regulaforensics/face-core-basic": "6.3.12-beta",
|
|
19
14
|
"cordova-android": "13.0.0",
|
|
20
15
|
"cordova-ios": "7.1.1",
|
|
@@ -36,4 +31,4 @@
|
|
|
36
31
|
"ios"
|
|
37
32
|
]
|
|
38
33
|
}
|
|
39
|
-
}
|
|
34
|
+
}
|
package/examples/ionic/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"author": "Ionic Framework",
|
|
5
5
|
"homepage": "https://ionicframework.com/",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh",
|
|
10
10
|
"ng": "ng",
|
|
11
11
|
"start": "ng serve",
|
|
12
12
|
"build": "ng build",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "6.5.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.5.63-beta",
|
|
20
20
|
"@regulaforensics/face-core-basic": "6.3.12-beta",
|
|
21
21
|
"cordova-plugin-camera": "8.0.0",
|
|
22
22
|
"@awesome-cordova-plugins/camera": "6.14.0",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"setup": "
|
|
7
|
-
"
|
|
8
|
-
"android": "
|
|
9
|
-
"ios": "react-native run-ios",
|
|
6
|
+
"setup": "scripts/setup.sh",
|
|
7
|
+
"ios": "scripts/ios.sh",
|
|
8
|
+
"android": "scripts/android.sh",
|
|
10
9
|
"lint": "eslint .",
|
|
11
10
|
"start": "react-native start",
|
|
12
11
|
"test": "jest"
|
|
13
12
|
},
|
|
14
13
|
"dependencies": {
|
|
15
|
-
"@regulaforensics/face-sdk": "6.5.
|
|
14
|
+
"@regulaforensics/face-sdk": "6.5.63-beta",
|
|
16
15
|
"@regulaforensics/face-core-basic": "6.3.12-beta",
|
|
17
16
|
"react": "18.3.1",
|
|
18
17
|
"react-native": "0.76.6",
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.63-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
|
|
5
|
+
"main": "www/react-native/index.js",
|
|
5
6
|
"module": "www/capacitor/index.js",
|
|
6
7
|
"types": "www/types/index.d.ts",
|
|
7
8
|
"cordova": {
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/face-sdk" version="6.5.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="6.5.63-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>FaceSDK</name>
|
|
4
4
|
<description>Cordova plugin for Regula Face SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -306,12 +306,27 @@ export class _Background {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
export class ImageQualityGroup {
|
|
309
|
-
image
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
309
|
+
static get image() { return ImageQualityGroup._image }
|
|
310
|
+
static _image = new _Image()
|
|
311
|
+
|
|
312
|
+
static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
|
|
313
|
+
static _headSizeAndPosition = new _HeadSizeAndPosition()
|
|
314
|
+
|
|
315
|
+
static get faceImage() { return ImageQualityGroup._faceImage }
|
|
316
|
+
static _faceImage = new _FaceImage()
|
|
317
|
+
|
|
318
|
+
static get eyes() { return ImageQualityGroup._eyes }
|
|
319
|
+
static _eyes = new _Eyes()
|
|
320
|
+
|
|
321
|
+
static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
|
|
322
|
+
static _shadowsAndLightning = new _ShadowsAndLightning()
|
|
323
|
+
|
|
324
|
+
static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
|
|
325
|
+
static _poseAndExpression = new _PoseAndExpression()
|
|
326
|
+
|
|
327
|
+
static get headOcclusion() { return ImageQualityGroup._headOcclusion }
|
|
328
|
+
static _headOcclusion = new _HeadOcclusion()
|
|
329
|
+
|
|
330
|
+
static get background() { return ImageQualityGroup._background }
|
|
331
|
+
static _background = new _Background()
|
|
317
332
|
}
|
package/www/capacitor/index.js
CHANGED
|
@@ -92,6 +92,9 @@ export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase,
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
export class FaceSDK {
|
|
95
|
+
static get instance() { return FaceSDK._instance }
|
|
96
|
+
static _instance = new FaceSDK()
|
|
97
|
+
|
|
95
98
|
get version() { return this._version }
|
|
96
99
|
_version
|
|
97
100
|
|
package/www/cordova.js
CHANGED
|
@@ -1771,14 +1771,29 @@ class _Background {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
1773
|
class ImageQualityGroup {
|
|
1774
|
-
image
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1774
|
+
static get image() { return ImageQualityGroup._image }
|
|
1775
|
+
static _image = new _Image()
|
|
1776
|
+
|
|
1777
|
+
static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
|
|
1778
|
+
static _headSizeAndPosition = new _HeadSizeAndPosition()
|
|
1779
|
+
|
|
1780
|
+
static get faceImage() { return ImageQualityGroup._faceImage }
|
|
1781
|
+
static _faceImage = new _FaceImage()
|
|
1782
|
+
|
|
1783
|
+
static get eyes() { return ImageQualityGroup._eyes }
|
|
1784
|
+
static _eyes = new _Eyes()
|
|
1785
|
+
|
|
1786
|
+
static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
|
|
1787
|
+
static _shadowsAndLightning = new _ShadowsAndLightning()
|
|
1788
|
+
|
|
1789
|
+
static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
|
|
1790
|
+
static _poseAndExpression = new _PoseAndExpression()
|
|
1791
|
+
|
|
1792
|
+
static get headOcclusion() { return ImageQualityGroup._headOcclusion }
|
|
1793
|
+
static _headOcclusion = new _HeadOcclusion()
|
|
1794
|
+
|
|
1795
|
+
static get background() { return ImageQualityGroup._background }
|
|
1796
|
+
static _background = new _Background()
|
|
1782
1797
|
}
|
|
1783
1798
|
|
|
1784
1799
|
/***/ }),
|
|
@@ -2123,6 +2138,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2123
2138
|
|
|
2124
2139
|
|
|
2125
2140
|
class FaceSDK {
|
|
2141
|
+
static get instance() { return FaceSDK._instance }
|
|
2142
|
+
static _instance = new FaceSDK()
|
|
2143
|
+
|
|
2126
2144
|
get version() { return this._version }
|
|
2127
2145
|
_version
|
|
2128
2146
|
|
|
@@ -306,12 +306,27 @@ export class _Background {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
export class ImageQualityGroup {
|
|
309
|
-
image
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
309
|
+
static get image() { return ImageQualityGroup._image }
|
|
310
|
+
static _image = new _Image()
|
|
311
|
+
|
|
312
|
+
static get headSizeAndPosition() { return ImageQualityGroup._headSizeAndPosition }
|
|
313
|
+
static _headSizeAndPosition = new _HeadSizeAndPosition()
|
|
314
|
+
|
|
315
|
+
static get faceImage() { return ImageQualityGroup._faceImage }
|
|
316
|
+
static _faceImage = new _FaceImage()
|
|
317
|
+
|
|
318
|
+
static get eyes() { return ImageQualityGroup._eyes }
|
|
319
|
+
static _eyes = new _Eyes()
|
|
320
|
+
|
|
321
|
+
static get shadowsAndLightning() { return ImageQualityGroup._shadowsAndLightning }
|
|
322
|
+
static _shadowsAndLightning = new _ShadowsAndLightning()
|
|
323
|
+
|
|
324
|
+
static get poseAndExpression() { return ImageQualityGroup._poseAndExpression }
|
|
325
|
+
static _poseAndExpression = new _PoseAndExpression()
|
|
326
|
+
|
|
327
|
+
static get headOcclusion() { return ImageQualityGroup._headOcclusion }
|
|
328
|
+
static _headOcclusion = new _HeadOcclusion()
|
|
329
|
+
|
|
330
|
+
static get background() { return ImageQualityGroup._background }
|
|
331
|
+
static _background = new _Background()
|
|
317
332
|
}
|
|
@@ -92,6 +92,9 @@ export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase,
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
export class FaceSDK {
|
|
95
|
+
static get instance() { return FaceSDK._instance }
|
|
96
|
+
static _instance = new FaceSDK()
|
|
97
|
+
|
|
95
98
|
get version() { return this._version }
|
|
96
99
|
_version
|
|
97
100
|
|
|
@@ -1,15 +1,50 @@
|
|
|
1
1
|
import { ImageQualityCharacteristic } from './image_quality_characteristic'
|
|
2
2
|
import { ImageQualityRange } from './image_quality_range'
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Image Quality characteristic group
|
|
6
|
+
*/
|
|
4
7
|
export class ImageQualityGroup {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The Image characteristics group includes width, height, width to height proportions,
|
|
10
|
+
* the image RGB channels number, and padding ratio.
|
|
11
|
+
*/
|
|
12
|
+
static get image(): _Image
|
|
13
|
+
/**
|
|
14
|
+
* The Head size and position group includes the position of the "middle point"
|
|
15
|
+
* relative to the width and height of the image, the head width to the image
|
|
16
|
+
* width and height ratio, inter-eye distance, yaw, pitch, roll.
|
|
17
|
+
*/
|
|
18
|
+
static get headSizeAndPosition(): _HeadSizeAndPosition
|
|
19
|
+
/**
|
|
20
|
+
* The Face image quality group includes blur and noise levels, unnatural skin tone,
|
|
21
|
+
* and face dynamic range checks.
|
|
22
|
+
*/
|
|
23
|
+
static get faceImage(): _FaceImage
|
|
24
|
+
/**
|
|
25
|
+
* The Eyes characteristics group checks eyes closure, occlusion, hair coverage,
|
|
26
|
+
* red eye effect, and whether a person is looking directly at the camera.
|
|
27
|
+
*/
|
|
28
|
+
static get eyes(): _Eyes
|
|
29
|
+
/**
|
|
30
|
+
* The Shadows and lightning characteristics group checks whether a photo
|
|
31
|
+
* is too dark or overexposed, if there are glares or shadows on the face.
|
|
32
|
+
*/
|
|
33
|
+
static get shadowsAndLightning(): _ShadowsAndLightning
|
|
34
|
+
/**
|
|
35
|
+
* The Pose and expression characteristics group checks the shoulders pose,
|
|
36
|
+
* face expression, whether there is an open mouth or smile.
|
|
37
|
+
*/
|
|
38
|
+
static get poseAndExpression(): _PoseAndExpression
|
|
39
|
+
/**
|
|
40
|
+
* The Head occlusion group includes checks of glasses, face occlusion, and head coverage.
|
|
41
|
+
*/
|
|
42
|
+
static get headOcclusion(): _HeadOcclusion
|
|
43
|
+
/**
|
|
44
|
+
* The Background characteristics group checks the background uniformity,
|
|
45
|
+
* shadows on background, and other faces presence on the picture.
|
|
46
|
+
*/
|
|
47
|
+
static get background(): _Background
|
|
13
48
|
}
|
|
14
49
|
|
|
15
50
|
export class _Image {
|
package/www/types/index.d.ts
CHANGED
|
@@ -83,6 +83,12 @@ export { EditGroupPersonsRequest, ImageUpload, PageableItemList, PersonDatabase,
|
|
|
83
83
|
* Entry point of the Regula Face SDK.
|
|
84
84
|
*/
|
|
85
85
|
export class FaceSDK {
|
|
86
|
+
/**
|
|
87
|
+
* The only instance of singleton class {@link FaceSDK}.
|
|
88
|
+
*/
|
|
89
|
+
static get instance(): FaceSDK
|
|
90
|
+
private constructor()
|
|
91
|
+
|
|
86
92
|
/**
|
|
87
93
|
* Information about the SDK.
|
|
88
94
|
*/
|