全部产品
云市场

智能审核完成

更新时间:2019-01-17 09:53:33

事件类型

AIMediaAuditComplete

事件说明

当智能审核完成时,会产生AIMediaAuditComplete事件。

注意:审核结果的图片资源仅在点播提供的免费存储上保留2周时间,之后会自动删除。

事件内容

名称 类型 必填项 描述
EventTime String 作业完成时间。日期格式按照ISO8601标准表示,并使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ 例如,2017-01-11T12:00:00Z(为北京时间2017年1月11日20点0分0秒)
EventType String 事件类型,固定为AIMediaAuditComplete
JobId String 作业ID,与提交智能审核作业接口返回的JobId一致
MediaId String 视频ID。
Status String 作业状态。取值:success(成功),fail(失败)
Code String 作业错误码。当Status为失败时,可关注该字段
Message String 作业错误信息。当Status为失败时,可关注该字段
Data String 作业结果数据。JSON对象,具体结构见AIMediaAuditResult

回调示例

说明:

  • 对于HTTP回调,以下内容为HTTP Post Body。
  • 对于MNS回调,以下内容为消息体。
  1. {
  2. "EventTime": "2017-03-20T07:49:17Z",
  3. "EventType": "AIMediaAuditComplete",
  4. "JobId": "XXXXXXXXX",
  5. "MediaId": "XXXXXXXXX",
  6. "Status": "success",
  7. "Code": "0",
  8. "Message": "OK",
  9. "Data": {
  10. "AbnormalModules":"video",
  11. "Label":"porn",
  12. "Suggestion":"review",
  13. "VideoResult":{
  14. "Suggestion":"review",
  15. "TerrorismResult":{
  16. "TopList":[
  17. {
  18. "Score":"100.0000000000",
  19. "Label":"normal",
  20. "Timestamp":"3005",
  21. "Url":"http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/xxxxx.jpg"
  22. },
  23. {
  24. "Score":"100.0000000000",
  25. "Label":"normal",
  26. "Timestamp":"15005",
  27. "Url":"http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/xxxxx.jpg"
  28. }
  29. ],
  30. "Suggestion":"pass",
  31. "MaxScore":"100.0000000000",
  32. "AverageScore":"100.0000000000",
  33. "Label":"normal",
  34. "CounterList":[
  35. {
  36. "Label":"terrorism",
  37. "Count":0
  38. },
  39. {
  40. "Label":"outfit",
  41. "Count":0
  42. },
  43. {
  44. "Label":"logo",
  45. "Count":0
  46. },
  47. {
  48. "Label":"weapon",
  49. "Count":0
  50. },
  51. {
  52. "Label":"politics",
  53. "Count":0
  54. },
  55. {
  56. "Label":"others",
  57. "Count":0
  58. },
  59. {
  60. "Label":"normal",
  61. "Count":16
  62. }
  63. ]
  64. },
  65. "Label":"porn",
  66. "PornResult":{
  67. "TopList":[
  68. {
  69. "Score":"92.4800000000",
  70. "Label":"sexy",
  71. "Timestamp":"1005",
  72. "Url":"http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/xxxxx.jpg"
  73. },
  74. {
  75. "Score":"91.8200000000",
  76. "Label":"sexy",
  77. "Timestamp":"9005",
  78. "Url":"http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/xxxxx.jpg"
  79. }
  80. ],
  81. "Suggestion":"review",
  82. "MaxScore":"92.4800000000",
  83. "AverageScore":"81.7066666667",
  84. "Label":"sexy",
  85. "CounterList":[
  86. {
  87. "Label":"porn",
  88. "Count":0
  89. },
  90. {
  91. "Label":"sexy",
  92. "Count":6
  93. },
  94. {
  95. "Label":"normal",
  96. "Count":10
  97. }
  98. ]
  99. }
  100. },
  101. "ImageResult":[
  102. {
  103. "Suggestion":"pass",
  104. "Type":"cover",
  105. "Label":"normal",
  106. "Url":"http://www.test.com/xxxxxx.jpg",
  107. "Result":[
  108. {
  109. "Suggestion":"pass",
  110. "Score":"65.25",
  111. "Label":"normal",
  112. "Scene":"porn"
  113. },
  114. {
  115. "Suggestion":"pass",
  116. "Score":"100.0",
  117. "Label":"normal",
  118. "Scene":"terrorism"
  119. }
  120. ]
  121. }
  122. ],
  123. "TextResult":[
  124. {
  125. "Suggestion":"pass",
  126. "Type":"title",
  127. "Score":"99.91",
  128. "Content":"1111",
  129. "Label":"normal",
  130. "Scene":"antispam"
  131. }
  132. ]
  133. }
  134. }