-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.py
More file actions
22 lines (18 loc) · 678 Bytes
/
Copy pathparams.py
File metadata and controls
22 lines (18 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SQLServer = "serverName"
database = "databaseName"
uid = "userID"
pwd = "password"
EMOTIONS = ['anger', 'contempt', 'disgust', 'fear', 'happiness', 'neutral', 'sadness', 'surprise']
##This can be changed according to the location you selected
face_api_url = 'https://southcentralus.api.cognitive.microsoft.com/face/v1.0/detect'
headers = {
# Request headers
'Content-Type': 'application/octet-stream',
'Ocp-Apim-Subscription-Key': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
}
params = {
# Request parameters
'returnFaceId': 'true',
'returnFaceLandmarks': 'false',
'returnFaceAttributes': 'age,gender,emotion'
}