Skip to content

Commit 887f5b9

Browse files
committed
added v11.3.2
1 parent 79a5f93 commit 887f5b9

11 files changed

+118
-74
lines changed
13 Bytes
Binary file not shown.

ReactApp/public/AcuantImageProcessingWorker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
374 Bytes
Binary file not shown.

ReactApp/public/AcuantJavascriptWebSdk.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SimpleHTMLApp/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Acuant JavaScript Web SDK v11.3.1
1+
# Acuant JavaScript Web SDK v11.3.2
22

33

44
**March 2020**
@@ -179,6 +179,17 @@ The following may significantly increase errors or false results:
179179

180180
<video id="acuant-player" controls autoplay style="display:none;" playsinline></video>
181181
<canvas id="acuant-video-canvas" width="100%" height="auto"></canvas>
182+
183+
1. Set custom strings. (Optional)
184+
185+
var options = {
186+
text:{
187+
NONE: "ALIGN",
188+
SMALL_DOCUMENT: "MOVE CLOSER",
189+
GOOD_DOCUMENT: null,//default countdown
190+
CAPTURING: "CAPTURING"
191+
}
192+
};
182193

183194
1. Start the Camera and get result.
184195

@@ -187,7 +198,7 @@ The following may significantly increase errors or false results:
187198
//end
188199
}, (error) => {
189200
alert("Camera not supported\n" + error);
190-
});
201+
}, options);
191202
192203
1. End Camera.
193204

SimpleHTMLApp/app/index.html

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@
9898

9999

100100
<script>
101+
var Credential = {
102+
passive_username:"xxx",
103+
passive_password:"xxx",
104+
id_username: "xxx",
105+
id_password: "xxx",
106+
passive_subscriptionId:"xxx",
107+
id_endpoint:"https://services.assureid.net",
108+
liveness_endpoint:"https://preview.passlive.acuant.net"
109+
}
110+
101111
const player = document.getElementById('acuant-player');
102112

103113
const videoCanvas = document.getElementById('acuant-video-canvas');
@@ -118,24 +128,11 @@
118128

119129
const loader = document.getElementById('acuant-loader');
120130

121-
var Credential = {
122-
passive_username: "xxx",
123-
passive_password: "xxx",
124-
id_username: "xxx",
125-
id_password: "xxx",
126-
passive_subscriptionId: "xxx",
127-
id_endpoint: "xxx",
128-
liveness_endpoint: "xxx"
129-
}
130-
131131
function onAcuantSdkLoaded() {
132132
init();
133133
}
134134

135135
function openFrontCamera() {
136-
cameraBtn.style.display = "none";
137-
result.style.display = "none";
138-
resultFace.style.display = "none";
139136
AcuantPassiveLiveness.startSelfieCapture(onCapture);
140137
}
141138
function setUIValues(id, value) {
@@ -195,21 +192,33 @@
195192
}
196193

197194
function openCamera() {
198-
cameraBtn.style.display = "none";
199-
result.style.display = "none";
200-
resultFace.style.display = "none";
201-
camera.style.display = "block";
195+
if (AcuantCamera.isCameraSupported) {
196+
cameraBtn.style.display = "none";
197+
result.style.display = "none";
198+
resultFace.style.display = "none";
199+
camera.style.display = "block";
200+
}
201+
202202
startCamera();
203203
}
204204

205+
const options = {
206+
text:{
207+
NONE: "ALIGN",
208+
SMALL_DOCUMENT: "MOVE CLOSER",
209+
GOOD_DOCUMENT: null,//null countdown
210+
CAPTURING: "CAPTURING"
211+
}
212+
}
213+
205214
function startCamera() {
206215
AcuantCameraUI.start((response) => {
207216
closeCamera();
208217
drawImageOnResult(response);
209218
}, (error) => {
210219
alert("Camera not supported\n" + error);
211220
console.log(error);
212-
});
221+
}, options);
213222
}
214223

215224
function end() {
@@ -243,5 +252,4 @@
243252
}
244253
</script>
245254
<script async src="/webSdk/dist/AcuantJavascriptWebSdk.min.js"></script>
246-
247255
</html>
13 Bytes
Binary file not shown.

SimpleHTMLApp/webSdk/dist/AcuantImageProcessingWorker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
374 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)