@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 CHANGED
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNFaceSDK'
8
- s.version = '6.5.55-beta'
8
+ s.version = '6.5.63-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -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. Run `npm run setup` within this directory.
6
+ 2. Execute `npm run setup` within this directory.
7
7
 
8
8
  3. Run the app:
9
- * Android: use command `ionic cap run android`.
10
- * IOS: use command `ionic cap run ios`.
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 run it directly from Xcode and Android Studio, but in this case make sure to run `ionic cap sync` before building if any changes were make to the project.
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": "npm install",
8
- "android": "ionic cap run android --open",
9
- "ios": "ionic cap run ios --open",
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.55-beta",
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",
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ ionic cap sync android
6
+ studio android || open -a 'Android Studio' android
7
+ else
8
+ ionic cap run android
9
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ ionic cap run ios --open
6
+ else
7
+ ionic cap run ios
8
+ fi
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
@@ -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. Run `npm run setup` within this directory.
6
+ 2. Execute `npm run setup` within this directory.
7
7
 
8
8
  3. Run the app:
9
- * Android: use command `npm run android`.
10
- * IOS: use command `npm run ios`.
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 run it directly from Xcode and Android Studio, but in this case make sure to run `cordova prepare ios` and `cordova prepare android` before building if any changes were make to the project.
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": "npm install && cordova prepare",
8
- "android": "cordova run android",
9
- "ios": "cordova run ios"
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.55-beta",
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
+ }
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
4
+ cordova prepare android
5
+ studio platforms/android || open -a 'Android Studio' platforms/android
6
+ else
7
+ cordova run android
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
4
+ cordova prepare ios
5
+ open platforms/ios/FaceSDK.xcworkspace
6
+ else
7
+ cordova run ios
8
+ fi
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
5
+ cordova prepare
@@ -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. Run `npm run setup` within this directory.
6
+ 2. Execute `npm run setup` within this directory.
7
7
 
8
8
  3. Run the app:
9
- * Android: use command `npm run android`.
10
- * IOS: use command `npm run ios`.
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 run it directly from Xcode and Android Studio, but in this case make sure to run `ionic cordova prepare ios` and `ionic cordova prepare android` before building if any changes were make to the project.
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": "npm install && ionic cordova prepare",
8
- "android": "ionic cordova run android",
9
- "ios": "ionic cordova run ios",
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.55-beta",
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",
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
4
+ ionic cordova prepare android
5
+ studio platforms/android || open -a 'Android Studio' platforms/android
6
+ else
7
+ ionic cordova run android
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
4
+ ionic cordova prepare ios
5
+ open platforms/ios/FaceSDK.xcworkspace
6
+ else
7
+ ionic cordova run ios
8
+ fi
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
5
+ ionic cordova prepare
@@ -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. Run `npm run setup` within this directory.
6
+ 2. Execute `npm run setup` within this directory.
7
7
 
8
8
  3. Run the app:
9
- * Android: use command `npm run android`.
10
- * IOS: use command `npm run ios`.
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 run it directly from Xcode and Android Studio, but in this case make sure that Metro Bundler is running(`npm start`).
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": "npm install && (cd ios && bundle install) && npm run pod-install",
7
- "pod-install": "cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod update",
8
- "android": "react-native run-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.55-beta",
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",
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ studio android || open -a 'Android Studio' android
6
+ else
7
+ react-native run-android
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
+ open ios/FaceSDK.xcworkspace
6
+ else
7
+ react-native run-ios
8
+ fi
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
5
+ cd ios
6
+ bundle install
7
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod install ||
8
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod update
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "6.5.55-beta",
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.55-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
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 = new _Image()
310
- headSizeAndPosition = new _HeadSizeAndPosition()
311
- faceImage = new _FaceImage()
312
- eyes = new _Eyes()
313
- shadowsAndLightning = new _ShadowsAndLightning()
314
- poseAndExpression = new _PoseAndExpression()
315
- headOcclusion = new _HeadOcclusion()
316
- background = new _Background()
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
 
package/www/cordova.js CHANGED
@@ -1771,14 +1771,29 @@ class _Background {
1771
1771
  }
1772
1772
 
1773
1773
  class ImageQualityGroup {
1774
- image = new _Image()
1775
- headSizeAndPosition = new _HeadSizeAndPosition()
1776
- faceImage = new _FaceImage()
1777
- eyes = new _Eyes()
1778
- shadowsAndLightning = new _ShadowsAndLightning()
1779
- poseAndExpression = new _PoseAndExpression()
1780
- headOcclusion = new _HeadOcclusion()
1781
- background = new _Background()
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 = new _Image()
310
- headSizeAndPosition = new _HeadSizeAndPosition()
311
- faceImage = new _FaceImage()
312
- eyes = new _Eyes()
313
- shadowsAndLightning = new _ShadowsAndLightning()
314
- poseAndExpression = new _PoseAndExpression()
315
- headOcclusion = new _HeadOcclusion()
316
- background = new _Background()
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
- image: _Image
6
- headSizeAndPosition: _HeadSizeAndPosition
7
- faceImage: _FaceImage
8
- eyes: _Eyes
9
- shadowsAndLightning: _ShadowsAndLightning
10
- poseAndExpression: _PoseAndExpression
11
- headOcclusion: _HeadOcclusion
12
- background: _Background
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 {
@@ -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
  */