情绪分析
儿童编程
获取上课情绪分析记录
Method and URL Structure
| Method |
Resource URL |
Authorization |
| GET |
/classroom/classsrecords/${PK}/ |
YES |
Request Parameters
| Name |
Description |
Required |
| username |
用户名 |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/classsrecords/123/?username=18012345678
Response Data
| Name |
Description |
| joy |
快乐 |
| fear |
厌恶 |
| disgust |
悲伤 |
| anger |
愤怒 |
| surprise |
惊奇 |
| contempt |
蔑视 |
| simple |
微笑 |
| age |
年龄 |
| gender |
性别 |
| glasses |
戴眼镜 |
| eyeClosure |
闭眼 |
| eyeWiden |
瞪眼 |
| ethnicity |
种族 |
Reponse
[{ "TimeStamp": "4.9320" "faceId": "0" "age": "20-30", "gender": "male", "ethnicity":"east asian", "glasses": "yes", "attention": "77.8580", "url":"/media/101/15923956909/6171/9562129a24eff2b484e89971cb2c754c.webm", "cover": "/media/15040101219/9562129a24eff2b484e89971cb2c754c.jpg", "joy": "0.0008", "fear": "0.0073", "disgust": "0.4257", "sadness": "0.0737", "anger": "0.0094", "surprise": "0.0919", "contempt": "0.2468" "smiley": "0.0000", "smile": "0.0000", "eyeClosure": "0.0000", "eyeWiden": "0.0000", "yaw": "-1.6052", "pitch": "-3.9180", "interocularDistance": "65.9975",} ... ]
获取上课情绪分析失败记录
Method and URL Structure
| Method |
Resource URL |
Authorization |
| GET |
/classroom/failured_classsrecords/${PK}/ |
YES |
Request Parameters
| Name |
Description |
Required |
| username |
用户名 |
YES |
cURL Example
curl -X PUT -H 'Authorization: token 95b7b4d8fff5d76c9d3d2954fe5c7d456c110a8c' -H 'Content-Type: application/json' http://localhost/classroom/failured_classsrecords/123/?username=18012345678
Response Data
| Name |
Description |
| cover |
封面 |
| url |
视频 url |
| date |
时间 |
Reponse
`JSON
[{
"url":"/media/15040101219/5249/af1b633f2be2e2c65e20275e07b6e33f.mp4",
"date":"2018-01-02 15:57:16",
"cover":"/media/15040101219/5249/af1b633f2be2e2c65e20275e07b6e33f.jpg"
},...]