Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임연수
/
FaceDetection
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임연수
2018-12-11 19:37:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ae14c48958cc05ebfde9aaba91892edb240019a
2ae14c48
1 parent
d9b33c47
update .gitignore,
connect api with new key
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
.gitignore
views/facedetection.html
.gitignore
View file @
2ae14c4
node_modules/
.idea/
\ No newline at end of file
.idea/
package-lock.json
uploads/mypic.jpg
\ No newline at end of file
...
...
views/facedetection.html
View file @
2ae14c4
...
...
@@ -26,13 +26,13 @@
// NOTE: You must use the same location in your REST call as you used to obtain your subscription keys.
// For example, if you obtained your subscription keys from westus, replace "westcentralus" in the
// URL below with "westus".
url
:
"https://
westcentralus
.api.cognitive.microsoft.com/face/v1.0/detect?"
+
$
.
param
(
params
),
url
:
"https://
eastasia
.api.cognitive.microsoft.com/face/v1.0/detect?"
+
$
.
param
(
params
),
beforeSend
:
function
(
xhrObj
){
// Request headers
xhrObj
.
setRequestHeader
(
"Content-Type"
,
"application/json"
);
// NOTE: Replace the "Ocp-Apim-Subscription-Key" value with a valid subscription key.
xhrObj
.
setRequestHeader
(
"Ocp-Apim-Subscription-Key"
,
"
39716df1b81349fdabb0931c039eeaf2
"
);
xhrObj
.
setRequestHeader
(
"Ocp-Apim-Subscription-Key"
,
"
61650f4a2941462ea2dba74eabefd114
"
);
},
type
:
"POST"
,
...
...
Please
register
or
login
to post a comment