All Products
Search
Document Center

AIMediaAuditComplete

Last Updated: Jul 11, 2019

Event type

AIMediaAuditComplete

Event description

An AIMediaAuditComplete event is generated after automated review is completed.

Note: The image resources in the review result are stored in the free storage provided by ApsaraVideo for VOD for two weeks. After two weeks, they are automatically deleted.

Event content

Parameter Type Required Description
EventTime String Yes The time when the job is completed. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. For example, a value of 2017-01-11T12:00:00Z indicates 20:00:00 on January 11, 2017, China Standard Time.
EventType String Yes The type of the event. Set this parameter to AIMediaAuditComplete.
JobId String Yes The ID of the job. The value is the same as the JobId value returned by the SubmitAIMediaAuditJob operation.
MediaId String Yes The video ID.
Status String Yes The status of the job. Valid values: success and fail.
Code String No The error code of the job. Pay attention to this parameter when the value of the Status parameter is fail.
Message String No The error message of the job. Pay attention to this parameter when the value of the Status parameter is fail.
Data String Yes The result of the job. The value is a JSON object. For more information about the structure, seeAIMediaAuditResult.

Callback example

Note:

  • For an HTTP callback, write the following code as the HTTP POST request body.
  • For an MNS callback, write the following code as the message body.
  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. }