内容审核 MODERATION-创建视频内容审核作业:请求示例

时间:2024-08-05 10:12:11

请求示例

创建视频 内容审核 作业,事件类型为默认事件,检测的风险类型为涉黄,暴恐,图文违规内容检测。

“endpoint”即调用API的请求地址,不同服务不同区域的endpoint不同,具体请参见终端节点

例如,服务部署在“华北-北京四”区域的“endpoint”“moderation.cn-north-4.myhuaweicloud.com”,请求URL为“https://moderation.cn-north-4.myhuaweicloud.com/v3/{project_id}/moderation/video/jobs”“project_id”为项目ID,获取方法请参见获取项目ID

POST https://{endpoint}/v3/{project_id}/moderation/video/jobs
{
  "data" : {
    "url" : "https://xxxx",
    "frame_interval" : 5
  },
  "event_type" : "default",
  "image_categories" : [ "porn","terrorism", "image_text" ],
  "audio_categories" : [ "porn", "ad", "moan", "abuse" ],
  "callback" : "http://xxxx"
}
support.huaweicloud.com/api-moderation/moderation_03_0071.html