[关闭]
@fuyb1986 2018-01-02T09:27:54.000000Z 字数 1615 阅读 630

情绪分析

儿童编程


获取上课情绪分析记录

Method and URL Structure

Method Resource URL Authorization
GET /classroom/classsrecords/${PK}/ YES

Request Parameters

Name Description Required
username 用户名 YES

cURL Example

  1. 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

  1. [{
  2. "TimeStamp": "4.9320"
  3. "faceId": "0"
  4. "age": "20-30",
  5. "gender": "male",
  6. "ethnicity":"east asian",
  7. "glasses": "yes",
  8. "attention": "77.8580",
  9. "url":"/media/101/15923956909/6171/9562129a24eff2b484e89971cb2c754c.webm",
  10. "cover": "/media/15040101219/9562129a24eff2b484e89971cb2c754c.jpg",
  11. "joy": "0.0008",
  12. "fear": "0.0073",
  13. "disgust": "0.4257",
  14. "sadness": "0.0737",
  15. "anger": "0.0094",
  16. "surprise": "0.0919",
  17. "contempt": "0.2468"
  18. "smiley": "0.0000",
  19. "smile": "0.0000",
  20. "eyeClosure": "0.0000",
  21. "eyeWiden": "0.0000",
  22. "yaw": "-1.6052",
  23. "pitch": "-3.9180",
  24. "interocularDistance": "65.9975",
  25. } ... ]

获取上课情绪分析失败记录

Method and URL Structure

Method Resource URL Authorization
GET /classroom/failured_classsrecords/${PK}/ YES

Request Parameters

Name Description Required
username 用户名 YES

cURL Example

  1. 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"
},...]

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注