sonic-widget 2.6.8 → 2.6.9
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 +8 -5
- package/dist/index.js +1365 -1365
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Use this script tag to get access to the widget:
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.9/dist/index.min.js"></script>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
or
|
|
@@ -39,7 +39,7 @@ and adding path in `angular.json`
|
|
|
39
39
|
2. Use this script tag to get access to the widget at initial html page:
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.
|
|
42
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.9/dist/index.min.js"></script>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
or
|
|
@@ -97,6 +97,7 @@ ngOnInit(): void {
|
|
|
97
97
|
branchId: string, //used to identify the bank branch
|
|
98
98
|
sendLogsEmail: boolean, //used to send logs through email
|
|
99
99
|
blinkThreshold: number, // used for blink threshold
|
|
100
|
+
eyeOpenThreshold: number, // used for eye open threshold
|
|
100
101
|
objectPersonThreshold: number, // used for object Person score threshold
|
|
101
102
|
objectPhoneThreshold: number, // used for object Phone score threshold
|
|
102
103
|
grayscalePercentageThreshold: number, // used for black&white percentage score threshold
|
|
@@ -234,7 +235,7 @@ it can be added in `angular.json` by installing the npm package
|
|
|
234
235
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
235
236
|
|
|
236
237
|
```html
|
|
237
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.
|
|
238
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.9/dist/index.min.js"></script>
|
|
238
239
|
```
|
|
239
240
|
|
|
240
241
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -264,7 +265,8 @@ it can be added in `angular.json` by installing the npm package
|
|
|
264
265
|
isMalay: boolean, //used to change the default language english to malay
|
|
265
266
|
branchId: string, // branch id to identify the branch of the bank
|
|
266
267
|
sendLogsEmail: boolean, //used to send logs through email
|
|
267
|
-
blinkThreshold: number, // threshold used to calculate the user blinked or not, with range limit 0-1(default value is 0.
|
|
268
|
+
blinkThreshold: number, // threshold used to calculate the user's eye blinked or not, with range limit 0-1(default value is 0.35)
|
|
269
|
+
eyeOpenThreshold: number, // threshold used to calculate the user's eye open or not, with range limit 0-1(default value is 0.2)
|
|
268
270
|
objectPersonThreshold: number, // used for object Person score threshold with range limit 0-1(default value is 0.925)
|
|
269
271
|
objectPhoneThreshold: number, // used for object Phone score threshold with range limit 0-1(default value is 0.5)
|
|
270
272
|
grayscalePercentageThreshold: number, // used for black&white percentage score threshold with range limit 0-100(default value is 80)
|
|
@@ -317,7 +319,8 @@ Check with **`data.code`**_
|
|
|
317
319
|
- _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
318
320
|
- _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
319
321
|
- _**`sendLogsEmail`** is used to pass a boolean value. It is used to send logs to client email address._
|
|
320
|
-
- _**`blinkThreshold`** is used to pass a numerical value. It is used to check the user
|
|
322
|
+
- _**`blinkThreshold`** is used to pass a numerical value. It is used to check the user blinking (range 0-1 and default 0.35). Above the threshold consider to be blinking or eye closed._
|
|
323
|
+
- _**`eyeOpenThreshold`** is used to pass a numerical value. It is used to check the user eyes are open (range 0-1 and default 0.2). Below the threshold consider to be eyes are open._
|
|
321
324
|
- _**`objectPersonThreshold`** is used to pass a numerical value. It is used to check the image person as object found with required score as threshold (range 0-1 and default 0.925)._
|
|
322
325
|
- _**`objectPhoneThreshold`** is used to pass a numerical value. It is used to check the image phone/laptop as object found with required score as threshold (range 0-1 and default 0.5)._
|
|
323
326
|
- _**`grayscalePercentageThreshold`** is used to pass a numerical value for percentage. It is used to check the image color as black&white found with required percentage as threshold (range 0-100 and default 80)._
|