Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
V
vuejs-skyidentification
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ProjetDemo
vuejs-skyidentification
Commits
739d3da9
Commit
739d3da9
authored
Feb 19, 2024
by
destin tati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d68c19fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
README.md
README.md
+4
-0
src/components/HelloWorld.vue
src/components/HelloWorld.vue
+2
-2
src/store/index.js
src/store/index.js
+4
-4
No files found.
README.md
View file @
739d3da9
...
...
@@ -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/#/`
src/components/HelloWorld.vue
View file @
739d3da9
...
...
@@ -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
:
f
ile
,
bearToken
:
this
.
bearToken
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'
skyid_extract_info_from_doc_request
'
,
{
myImage
:
this
.
binaryF
ile
,
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>
...
...
src/store/index.js
View file @
739d3da9
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment