Commit 739d3da9 authored by destin tati's avatar destin tati

update

parent d68c19fe
......@@ -22,4 +22,8 @@ npm run lint
## More Informations
please modify the helperConfig.js file with the information sent by email.
Please add the various services in the index.js file, according to the documents you wish to scan.
Please refere to our platform `https://platform.skyidentification.com/#/`
......@@ -31,7 +31,7 @@ export default {
};
reader.readAsDataURL(file);
this.binaryFile = await Helper.resizeImage(file);
this.$store.dispatch('skyid_extract_info_from_doc_request', {myImage : file, bearToken: this.bearToken}).then(() => {
this.$store.dispatch('skyid_extract_info_from_doc_request', {myImage : this.binaryFile, bearToken: this.bearToken}).then(() => {
if(this.response_ocr){
this.isLoading = false;
this.init()
......@@ -98,7 +98,7 @@ export default {
margin-bottom: 50px;
margin-top: 0px;
text-align: center;
">Download your national card (CIN - recto )</h2>
">Download your document</h2>
<input style="margin-top: 1%;" type="file" @change="handleImageChange" name="file" accept="image/*">
<div id="skyid_liveness" style="justify-content: center; display: flex; margin-top: 1%;" ></div>
<button class="smart_ocr_get_info" @click="startScanFace" v-if="response_ocr">Start Scan Face</button>
......
......@@ -93,10 +93,10 @@ export default createStore({
formData.append("document", myImage);
formData.append('institution_id',Helper.institution_id);
formData.append('application_id', Helper.skyid_fa_sdk_appId);
formData.append('channel_id',"**");
formData.append('service_id',"**");
formData.append('sub_service_id',"***");
formData.append("request_data",'{"doc_type":"***"}');
formData.append('channel_id',"02");
formData.append('service_id',"09");
formData.append('sub_service_id',"0005");
formData.append("request_data",'{"doc_type":"09"}');
return new Promise((resolve, reject) => {
axios.post(Helper.OCR_url, formData, {
headers: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment