You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SimpleHTMLApp/README.md
+24-14Lines changed: 24 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Acuant JavaScript Web SDK v11.6.3
1
+
# Acuant JavaScript Web SDK v11.6.4
2
2
3
-
**April 2022**
3
+
**May 2022**
4
4
5
5
See [https://github.com/Acuant/JavascriptWebSDKV11/releases](https://github.com/Acuant/JavascriptWebSDKV11/releases) for release notes.
6
6
@@ -98,6 +98,8 @@ The SDK includes the following modules:
98
98
- **AcuantMetricsService.js**
99
99
- **AcuantMetricsService.wasm**
100
100
101
+
**Note** To ensure that SDK can instantiate WebAssembly modules efficiently, make sure the hosting server is serving `.wasm` files with the correct mime type `application/wasm`.
102
+
101
103
1. Load the main script files, excluding ones that will not be used:
**Prerequisite:** To use the face capture and FaceID API, credentials with FaceID must be enabled.
467
+
## Face Capture with real-time face detection and Acuant Passive Liveness
468
468
469
-
Acuant recommends using the **LiveAssessment** property rather than the score) to evaluate response. **AcuantPassiveLiveness.start** will return a rescaled image in onCaptured callback. The module supports real-time face detection only Android.
469
+
Acuant recommends using the **LiveAssessment** property rather than the score to evaluate response. **AcuantPassiveLiveness.start** will return a rescaled image in onCaptured callback.
470
470
471
471
Follow these recommendations to effectively process an image for passive liveness:
472
472
#### Image requirements
@@ -489,8 +489,6 @@ The following may significantly increase errors or false results:
489
489
- A spotlight on the face and nearest surroundings
490
490
- An environment with poor lighting or colored light
491
491
492
-
**Note**: On iOS, real-time face detection is not supported, only manual capture is available. Also, the use of fish-eye lenses is not supported by this API.
493
-
494
492
### Start face capture and send Passive Liveness request
495
493
496
494
**Important:** Do not use this module for face capture if you are not using the Acuant FaceID API.
@@ -545,24 +543,23 @@ The following may significantly increase errors or false results:
**Note:** On iOS calling ```AcuantPassiveLiveness.start``` will launch the native camera. Alternatively, the module exposes ```startManualCapture``` method that launches the native camera and returns the image taken in base64.
553
+
**Note:** The module also exposes ```startManualCapture``` method that launches the native camera and returns the image taken in base64.
557
554
558
-
1.Upload face image and send request for Passive Liveness result:
555
+
1.Get the passive liveness result for the face image:
@@ -592,6 +589,16 @@ The following may significantly increase errors or false results:
592
589
})
593
590
```
594
591
592
+
**Note:** To get the liveness result, credentials with FaceID must be enabled.
593
+
594
+
1. End Live capture:
595
+
596
+
The camera closes automatically after the user takes a selfie or when the user taps Close. However, you also can close the live camera by calling the ```end``` function.
597
+
598
+
```
599
+
AcuantPassiveLiveness.end()
600
+
```
601
+
595
602
----------
596
603
597
604
## Use of CDNs (Content Delivery Networks)
@@ -734,6 +741,9 @@ Starting and stopping Workers is a very slow operation, so you will see performa
734
741
735
742
Then add the regular HTML content to the page embedded in the iframe.
736
743
744
+
1. My browser console displays GET tiny_face_detector_model-shard1 404.
745
+
746
+
Make sure your hosting server is configured to serve extensionless files correctly. By default, IIS, and possibly other servers, are not configured to correctly serve extensionless files.
0 commit comments