调用GetMediaAuditResult获取智能审核结果摘要信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetMediaAuditResult |
系统规定参数。取值:GetMediaAuditResult。 |
MediaId | String | 是 | 93ab850b4f6f*****54b6e91d24d81d4 |
支持查询视频ID和图片ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | CB7D7232-1AB2-40FE-B8D5-**** |
请求ID。 |
MediaAuditResult | Object |
审核结果。 |
|
Suggestion | String | pass |
审核结果建议。取值:
|
AbnormalModules | String | video |
违规的审核内容。多个使用英文逗号(,)分隔,取值:
|
Label | String | porn |
审核结果分类。多个使用英文逗号(,)分隔,取值:
|
AudioResult | Array of AudioResult |
音频审核结果。 |
|
Score | String | 99.91 |
结果分数。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | normal |
审核结果分类:
|
Scene | String | antispam |
审核场景。取固定值:antispam。 |
ImageResult | Array of ImageResult |
图片审核结果。 |
|
Type | String | cover |
图片分类。取值:cover(封面)。 |
Url | String | http://www.test.com/****.jpg |
图片的地址。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | porn |
审核结果分类。多个使用英文逗号(,)分隔,取值:
|
Result | Array of Result |
图片审结结果详情。 |
|
Score | String | 100.00000 |
命中Label的图片的分数。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | porn |
审核结果分类。 当scene为porn时,取值:
当scene为terrorism时,可取值:
|
Scene | String | porn |
审核场景。取值:
|
TextResult | Array of TextResult |
文本审核结果。 |
|
Type | String | title |
文本分类。取值:title(标题)。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Score | String | 100.00000 |
命中Label的图片的分数。 |
Label | String | ad |
审核结果分类。取值:
|
Content | String | 热线电话123**** |
审核文本内容。 |
Scene | String | antispam |
审核场景。取固定值:antispam(文本反垃圾)。 |
VideoResult | Object |
视频审核结果。 |
|
Label | String | porn |
审核结果分类。多个使用英文逗号(,)分隔,取值:
|
Suggestion | String | pass |
审核结果建议。取值:
|
PornResult | Object |
鉴黄审核结果。 |
|
Suggestion | String | pass |
审核结果建议。 |
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | porn |
鉴黄审核结果。取值:
|
MaxScore | String | 100 |
最高审核分数。 |
CounterList | Array of CounterList |
结果多标签帧数统计。 |
|
Label | String | porn |
鉴黄审核结果。取值:
|
Count | Integer | 1 |
帧数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100.0000 |
命中Label的图片的分数。 |
Timestamp | String | 3005 |
视频中的位置。单位:毫秒。 |
Label | String | porn |
鉴黄审核结果。取值:
|
AdResult | Object |
广告审核结果。 |
|
Suggestion | String | block |
审核结果建议。取值:
|
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | ad |
审核结果分类。取值:
|
MaxScore | String | 100 |
最高审核分数。 |
CounterList | Array of CounterList |
结果多标签帧数统计。 |
|
Label | String | ad |
审核结果分类。取值:
|
Count | Integer | 12 |
帧数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100 |
命中Label的图片的分数。 |
Timestamp | String | 10 |
视频中的位置。单位:毫秒。 |
Label | String | ad |
审核结果分类。
|
LogoResult | Object |
Logo审核结果。 |
|
Suggestion | String | block |
审核结果建议。取值:
|
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | logo |
审核结果分类。取值:
|
MaxScore | String | 100 |
最高审核分数 |
CounterList | Array of CounterList |
结果多标签帧数统计。 |
|
Label | String | logo |
审核结果分类。取值:
|
Count | Integer | 1 |
帧数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100 |
命中Label的图片的分数。 |
Timestamp | String | 16 |
视频中的位置。单位:毫秒。 |
Label | String | logo |
审核结果分类:
|
LiveResult | Object |
不良内容审核结果。 |
|
Suggestion | String | block |
审核结果建议。取值:
|
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | live |
审核结果分类。取值:
|
MaxScore | String | 100 |
最高审核分数。 |
CounterList | Array of CounterList |
结果多标签帧数统计。 |
|
Label | String | live |
审核结果分类。取值:
|
Count | Integer | 2 |
帧数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100 |
命中Label的图片的分数。 |
Timestamp | String | 10 |
视频中的位置。单位:毫秒。 |
Label | String | normal |
审核结果分类。取值:
|
TerrorismResult | Object |
暴恐涉政审核结果。 |
|
Suggestion | String | pass |
暴恐涉政审核建议。取值:
|
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | normal |
暴恐涉政审核结果。取值:
|
MaxScore | String | 100 |
最高审核分数。 |
CounterList | Array of CounterList |
结果多标签帧数统计。 |
|
Label | String | outfit |
暴恐涉政审核结果。取值:
|
Count | Integer | 1 |
帧数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100.000 |
命中Label的图片的分数。 |
Timestamp | String | 3005 |
视频中的位置。单位:毫秒。 |
Label | String | normal |
暴恐涉政审核结果。取值:
|
示例
请求示例
https://vod.{ApiRegion}.aliyuncs.com/?Action=GetMediaAuditResult
&MediaId=93ab850b4f6f*****54b6e91d24d81d4
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetMediaAuditResultResponse>
<RequestId>CB7D7232-1AB2-40FE-B8D5-****</RequestId>
<MediaAuditResult>
<Suggestion>pass</Suggestion>
<TextResult>
<Suggestion>pass</Suggestion>
<Type>title</Type>
<Score>100.00000</Score>
<Content>热线电话123****</Content>
<Label>ad</Label>
<Scene>antispam</Scene>
</TextResult>
<AbnormalModules>video</AbnormalModules>
<ImageResult>
<Label>porn</Label>
<Suggestion>pass</Suggestion>
<Type>cover</Type>
<Url>http://www.test.com/****.jpg</Url>
</ImageResult>
<ImageResult>
<Result>
<Label>porn</Label>
<Suggestion>pass</Suggestion>
<Score>100.00000</Score>
<Scene>porn</Scene>
</Result>
</ImageResult>
<VideoResult>
<Suggestion>pass</Suggestion>
<LogoResult>
<TopList>
<Label>logo</Label>
<Score>100</Score>
<Timestamp>16</Timestamp>
<Url>http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</Url>
</TopList>
<Suggestion>block</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>logo</Label>
<CounterList>
<Label>logo</Label>
<Count>1</Count>
</CounterList>
</LogoResult>
<Label>porn</Label>
<LiveResult>
<TopList>
<Label>normal</Label>
<Score>100</Score>
<Timestamp>10</Timestamp>
<Url>http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</Url>
</TopList>
<Suggestion>block</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>live</Label>
<CounterList>
<Label>live</Label>
<Count>2</Count>
</CounterList>
</LiveResult>
<TerrorismResult>
<TopList>
<Label>normal</Label>
<Score>100.000</Score>
<Timestamp>3005</Timestamp>
<Url>http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</Url>
</TopList>
<Suggestion>pass</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>normal</Label>
<CounterList>
<Label>outfit</Label>
<Count>1</Count>
</CounterList>
</TerrorismResult>
<PornResult>
<TopList>
<Label>porn</Label>
<Score>100.0000</Score>
<Timestamp>3005</Timestamp>
<Url>http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</Url>
</TopList>
<Suggestion>pass</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>porn</Label>
<CounterList>
<Label>porn</Label>
<Count>1</Count>
</CounterList>
</PornResult>
<AdResult>
<TopList>
<Label>ad</Label>
<Score>100</Score>
<Timestamp>10</Timestamp>
<Url>http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg</Url>
</TopList>
<Suggestion>block</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>ad</Label>
<CounterList>
<Label>ad</Label>
<Count>12</Count>
</CounterList>
</AdResult>
</VideoResult>
<Label>porn</Label>
<AudioResult>
<Label>normal</Label>
<Suggestion>pass</Suggestion>
<Score>99.91</Score>
<Scene>antispam</Scene>
</AudioResult>
</MediaAuditResult>
</GetMediaAuditResultResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "CB7D7232-1AB2-40FE-B8D5-****",
"MediaAuditResult" : {
"Suggestion" : "pass",
"TextResult" : [ {
"Suggestion" : "pass",
"Type" : "title",
"Score" : "100.00000",
"Content" : "热线电话123****",
"Label" : "ad",
"Scene" : "antispam"
} ],
"AbnormalModules" : "video",
"ImageResult" : [ {
"Label" : "porn",
"Suggestion" : "pass",
"Type" : "cover",
"Url" : "http://www.test.com/****.jpg"
}, {
"Result" : [ {
"Label" : "porn",
"Suggestion" : "pass",
"Score" : "100.00000",
"Scene" : "porn"
} ]
} ],
"VideoResult" : {
"Suggestion" : "pass",
"LogoResult" : {
"TopList" : [ {
"Label" : "logo",
"Score" : "100",
"Timestamp" : "16",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "logo",
"CounterList" : [ {
"Label" : "logo",
"Count" : "1"
} ]
},
"Label" : "porn",
"LiveResult" : {
"TopList" : [ {
"Label" : "normal",
"Score" : "100",
"Timestamp" : "10",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "live",
"CounterList" : [ {
"Label" : "live",
"Count" : "2"
} ]
},
"TerrorismResult" : {
"TopList" : [ {
"Label" : "normal",
"Score" : "100.000",
"Timestamp" : "3005",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "pass",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "normal",
"CounterList" : [ {
"Label" : "outfit",
"Count" : "1"
} ]
},
"PornResult" : {
"TopList" : [ {
"Label" : "porn",
"Score" : "100.0000",
"Timestamp" : "3005",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "pass",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "porn",
"CounterList" : [ {
"Label" : "porn",
"Count" : "1"
} ]
},
"AdResult" : {
"TopList" : [ {
"Label" : "ad",
"Score" : "100",
"Timestamp" : "10",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "ad",
"CounterList" : [ {
"Label" : "ad",
"Count" : "12"
} ]
}
},
"Label" : "porn",
"AudioResult" : [ {
"Label" : "normal",
"Suggestion" : "pass",
"Score" : "99.91",
"Scene" : "antispam"
} ]
}
}
错误码
访问错误中心查看更多错误码。
SDK示例
建议使用服务端SDK来调用API,此API各语言调用的示例代码,请参见: