Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
reactjs-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
reactjs-skyIdentification
Commits
dff3648f
Commit
dff3648f
authored
Dec 26, 2023
by
dtati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
26-12-2023
parent
38a41c6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
src/Components/SkyIdentification.js
src/Components/SkyIdentification.js
+12
-1
src/config/helperConfig.js
src/config/helperConfig.js
+10
-10
No files found.
src/Components/SkyIdentification.js
View file @
dff3648f
...
...
@@ -125,7 +125,7 @@ const SkyIdentification = () => {
const
bearToken
=
responseLogin
.
response_data
.
access_token
;
formData
.
append
(
"
doc_1_1
"
,
selectedFile
);
formData
.
append
(
"
slf_1
"
,
face_image
);
formData
.
append
(
'
guid
'
,
"
101010303
"
);
formData
.
append
(
'
guid
'
,
"
***
"
);
formData
.
append
(
"
token
"
,
helper
.
skyid_fa_sdk_token
);
formData
.
append
(
"
application_id
"
,
helper
.
skyid_fa_sdk_appId
);
axios
.
post
(
helper
.
FACE_MATCHING_url
,
formData
,
{
...
...
@@ -157,8 +157,19 @@ const SkyIdentification = () => {
skyid
.
skyid_fa_setup_sdk
();
}
const
setMessage
=
()
=>
{
skyid
.
message_variables
.
skyid_fa_sdk_access_error_message
=
"
Votre token n'est pas valide
"
;
skyid
.
message_variables
.
skyid_fa_sdk_loading_error_message
=
"
Error lors de chargement des modules
"
;
skyid
.
message_variables
.
skyid_fa_sdk_network_error_message
=
"
Error de connexion au serveur, merci de verifier votre connexion internet
"
;
skyid
.
message_variables
.
skyid_fa_sdk_camera_error_message
=
"
Impossible de demmarer votre camera, merci de verifier que votre camera et bien actif
"
;
skyid
.
message_variables
.
skyid_fa_face_start_message
=
"
SVP positionner votre visage au centre sans rotation. puis clique sur start.
"
;
skyid
.
message_variables
.
skyid_fa_face_loading_message
=
"
Chargement des modules, Patietez SVP.
"
;
skyid
.
message_variables
.
skyid_fa_mul_face_warning_msg
=
"
SVP representer un seul visage devant le camera.
"
;
}
useEffect
(()
=>
{
login
();
setMessage
();
},
[]);
return
(
...
...
src/config/helperConfig.js
View file @
dff3648f
export
default
{
// information sent after creation of applicationId by mail
OCR_url
:
"
https://saas.ms.sup1.idc.skyidentification.com:7001/extract_info_from_document
"
,
OCR_url_status
:
"
https://saas.ms.sup1.idc.skyidentification.com:7001/skyid_ocr_status
"
,
LIVENESS_url
:
"
https://saas.ms.sup1.idc.skyidentification.com:4432/check_liveness
"
,
FACE_MATCHING_url
:
"
https://saas.ms.sup1.idc.skyidentification.com:7008/compare_multi_doc_vs_selfie
"
,
skyid_fa_sdk_params_url
:
"
https://saas.ms.sup1.idc.skyidentification.com:7008/
"
,
OCR_url
:
"
***
"
,
OCR_url_status
:
"
***
"
,
LIVENESS_url
:
"
***
"
,
FACE_MATCHING_url
:
"
***
"
,
skyid_fa_sdk_params_url
:
"
***
"
,
Recover_Face_Matching_Result_URL
:
"
***
"
,
institution_id
:
"
042
"
,
skyid_fa_sdk_user
:
"
demo.skyid
"
,
skyid_fa_sdk_password
:
"
4GH1Kw@vx$*K003x
"
,
skyid_fa_sdk_token
:
"
042405620988672110134531288085084
"
,
skyid_fa_sdk_appId
:
"
demo.saas.web.skyid.idc
"
,
institution_id
:
"
***
"
,
skyid_fa_sdk_user
:
"
***
"
,
skyid_fa_sdk_password
:
"
***
"
,
skyid_fa_sdk_token
:
"
***
"
,
skyid_fa_sdk_appId
:
"
***
"
,
setFileImage
(
my_selfie_canvas
)
{
...
...
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