调用GetAIMediaAuditJob查询智能审核作业,在提交AI作业后,会进行异步处理,通过此接口可以实时查询作业信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetAIMediaAuditJob |
系统规定参数。取值:GetAIMediaAuditJob。 |
JobId | String | 是 | bdbc266af6894*****943a70176d92e9 |
智能审核作业ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | EAA3E96A-02E2-41*****85-08E1D568ED3A |
请求ID。 |
MediaAuditJob | Object |
智能审核作业信息。 |
|
CreationTime | String | 2017-01-11T12:00:00Z |
作业开始时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。 |
Type | String | AIMediaAudit |
目前仅支持一种类型,作业类型。 |
Status | String | success |
作业状态。取值:
|
CompleteTime | String | 2017-01-11T13:00:00Z |
作业结束时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。 |
JobId | String | bdbc266af6894*****943a70176d92e9 |
作业ID。 |
Code | String | 0 |
作业错误码。当Status为失败时,可关注该字段。 |
Message | String | OK |
作业错误信息。当Status为失败时,可关注该字段。 |
MediaId | String | fe028d09441d*****d1afffb138cd7e |
视频ID。 |
Data | Object |
作业结果数据。 |
|
Suggestion | String | pass |
审核结果建议。取值:
|
AbnormalModules | String | video |
违规的审核内容。多个使用英文逗号(,)分隔,取值:
|
Label | String | normal |
审核结果分类。多个使用英文逗号(,)分隔,取值:
|
ImageResult | Array of ImageResult |
图片审核结果。 |
|
Type | String | cover |
图片分类。取值:cover(封面)。 |
Url | String | http://www.test.com/****.jpg |
图片的地址。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | normal |
审核结果分类。多个使用英文逗号(,)分隔,取值:
|
Result | Array of Result |
图片审结结果详情。 |
|
Score | String | 0 |
命中Label的图片的分数。取值范围: |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | porn |
审核结果分类。 当scene为porn时,取值:
当scene为terrorism时,取值:
当scene为ad时,取值:
当scene为live时,取值:
当scene为logo时,取值:
|
Scene | String | porn |
审核场景。取值:
|
TextResult | Array of TextResult |
文本审核结果。 |
|
Type | String | title |
文本分类。取值:title(标题)。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Score | String | 100 |
命中Label的图片的分数。取值范围: |
Label | String | ad |
审核结果分类。取值:
|
Content | String | 测试 |
文本内容。 |
Scene | String | antispam |
审核场景。取值:antispam(文本反垃圾)。 |
AudioResult | Array of AudioResult |
音频审核结果。 |
|
Score | String | 99.91 |
结果分数。 |
Suggestion | String | pass |
审核结果建议。取值:
|
Label | String | normal |
审核结果分类:
|
Scene | String | antispam |
审核场景。取固定值:antispam。 |
VideoResult | Object |
视频审核结果。 |
|
Label | String | normal |
审核结果分类。取值范围:
|
Suggestion | String | pass |
鉴黄审核建议。取值范围:
|
TerrorismResult | Object |
暴恐涉政审核结果。 |
|
Suggestion | String | pass |
暴恐涉政审核建议。取值范围:
|
AverageScore | String | 100 |
命中Label的图片平均分值。取值范围: |
Label | String | normal |
暴恐涉政审核结果。取值范围:
|
MaxScore | String | 100 |
命中Label的图片最大分值。取值范围: |
CounterList | Array of CounterList |
包括暴恐涉政结果各分类及其图片张数。 |
|
Label | String | terrorism |
暴恐涉政审核结果。取值:
|
Count | Integer | 0 |
图片张数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://ali*****.com/aivideocensor/yytysursrutyrxuq/****.jpg |
图片的地址。 |
Score | String | 100 |
命中Label的图片的分数。取值范围: |
Timestamp | String | 5 |
视频中的位置。单位:毫秒。 |
Label | String | normal |
暴恐涉政审核结果。取值范围:
|
PornResult | Object |
鉴黄审核结果。 |
|
Suggestion | String | pass |
鉴黄审核建议。取值范围:
|
AverageScore | String | 100 |
命中Label的图片平均分值。取值范围: |
Label | String | porn |
鉴黄审核结果。取值范围:
|
MaxScore | String | 100 |
命中Label的图片最大分值。取值范围: |
CounterList | Array of CounterList |
审核结果各分类及其图片张数。 |
|
Label | String | porn |
鉴黄审核结果。取值范围:
|
Count | Integer | 0 |
图片张数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100 |
命中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 | 10 |
图片张数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片地址。 |
Score | String | 100 |
命中Label的图片的分数。 |
Timestamp | String | 500 |
视频中的位置。单位:毫秒。 |
Label | String | ad |
广告审核结果分类。取值:
|
LiveResult | Object |
不良内容审核结果。 |
|
Suggestion | String | block |
审核结果建议。取值:
|
AverageScore | String | 100 |
审核结果平均分数。 |
Label | String | live |
审核结果分类。取值:
|
MaxScore | String | 100 |
最高审核分数。 |
CounterList | Array of CounterList |
审核结果各分类及其图片张数。 |
|
Label | String | live |
审核结果分类。取值:
|
Count | Integer | 0 |
图片张数。 |
TopList | Array of TopList |
命中Label下分数最高的图片信息。 |
|
Url | String | http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg |
图片的地址。 |
Score | String | 100 |
命中Label的图片的分数。 |
Timestamp | String | 500 |
视频中的位置。单位:毫秒。 |
Label | String | live |
审核结果分类。取值范围:
|
LogoResult | Object |
Logo审核结果。 |
|
Suggestion | String | block |
Logo审核建议。取值:
|
AverageScore | String | 100 |
命中Label的图片平均分值。 |
Label | String | logo |
logo审核结果分类。取值:
|
MaxScore | String | 100 |
命中Label的图片最大分值。 |
CounterList | Array of CounterList |
审核结果各分类及其图片张数。 |
|
Label | String | logo |
logo审核结果分类。取值:
|
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 | 5000 |
视频中的位置。单位:毫秒。 |
Label | String | logo |
logo审核结果分类。取值:
|
示例
请求示例
https://vod.{ApiRegion}.aliyuncs.com/?Action=GetAIMediaAuditJob
&JobId=bdbc266af6894*****943a70176d92e9
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetAIMediaAuditJobResponse>
<RequestId>EAA3E96A-02E2-41*****85-08E1D568ED3A</RequestId>
<MediaAuditJob>
<Status>success</Status>
<Type>AIMediaAudit</Type>
<Message>OK</Message>
<MediaId>fe028d09441d*****d1afffb138cd7e</MediaId>
<CreationTime>2017-01-11T12:00:00Z</CreationTime>
<Data>
<Suggestion>pass</Suggestion>
<TextResult>
<Suggestion>pass</Suggestion>
<Type>title</Type>
<Score>100</Score>
<Content>测试</Content>
<Label>ad</Label>
<Scene>antispam</Scene>
</TextResult>
<AbnormalModules>video</AbnormalModules>
<ImageResult>
<Label>normal</Label>
<Suggestion>pass</Suggestion>
<Type>cover</Type>
<Url>http://www.test.com/****.jpg</Url>
</ImageResult>
<ImageResult>
<Result>
<Label>porn</Label>
<Suggestion>pass</Suggestion>
<Score>0</Score>
<Scene>porn</Scene>
</Result>
</ImageResult>
<VideoResult>
<Suggestion>pass</Suggestion>
<LogoResult>
<TopList>
<Label>logo</Label>
<Score>100</Score>
<Timestamp>5000</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>2</Count>
</CounterList>
</LogoResult>
<Label>normal</Label>
<TerrorismResult>
<TopList>
<Label>normal</Label>
<Score>100</Score>
<Timestamp>5</Timestamp>
<Url>http://ali*****.com/aivideocensor/yytysursrutyrxuq/****.jpg</Url>
</TopList>
<Suggestion>pass</Suggestion>
<MaxScore>100</MaxScore>
<AverageScore>100</AverageScore>
<Label>normal</Label>
<CounterList>
<Label>terrorism</Label>
<Count>0</Count>
</CounterList>
</TerrorismResult>
<LiveResult>
<TopList>
<Label>live</Label>
<Score>100</Score>
<Timestamp>500</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>0</Count>
</CounterList>
</LiveResult>
<PornResult>
<TopList>
<Label>porn</Label>
<Score>100</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>0</Count>
</CounterList>
</PornResult>
<AdResult>
<TopList>
<Label>ad</Label>
<Score>100</Score>
<Timestamp>500</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>10</Count>
</CounterList>
</AdResult>
</VideoResult>
<Label>normal</Label>
</Data>
<CompleteTime>2017-01-11T13:00:00Z</CompleteTime>
<Code>0</Code>
<JobId>bdbc266af6894*****943a70176d92e9</JobId>
</MediaAuditJob>
</GetAIMediaAuditJobResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "EAA3E96A-02E2-41*****85-08E1D568ED3A",
"MediaAuditJob" : {
"Status" : "success",
"Type" : "AIMediaAudit",
"Message" : "OK",
"MediaId" : "fe028d09441d*****d1afffb138cd7e",
"CreationTime" : "2017-01-11T12:00:00Z",
"Data" : {
"Suggestion" : "pass",
"TextResult" : [ {
"Suggestion" : "pass",
"Type" : "title",
"Score" : "100",
"Content" : "测试",
"Label" : "ad",
"Scene" : "antispam"
} ],
"AbnormalModules" : "video",
"ImageResult" : [ {
"Label" : "normal",
"Suggestion" : "pass",
"Type" : "cover",
"Url" : "http://www.test.com/****.jpg"
}, {
"Result" : [ {
"Label" : "porn",
"Suggestion" : "pass",
"Score" : "0",
"Scene" : "porn"
} ]
} ],
"VideoResult" : {
"Suggestion" : "pass",
"LogoResult" : {
"TopList" : [ {
"Label" : "logo",
"Score" : "100",
"Timestamp" : "5000",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "logo",
"CounterList" : [ {
"Label" : "logo",
"Count" : "2"
} ]
},
"Label" : "normal",
"TerrorismResult" : {
"TopList" : [ {
"Label" : "normal",
"Score" : "100",
"Timestamp" : "5",
"Url" : "http://ali*****.com/aivideocensor/yytysursrutyrxuq/****.jpg"
} ],
"Suggestion" : "pass",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "normal",
"CounterList" : [ {
"Label" : "terrorism",
"Count" : "0"
} ]
},
"LiveResult" : {
"TopList" : [ {
"Label" : "live",
"Score" : "100",
"Timestamp" : "500",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "live",
"CounterList" : [ {
"Label" : "live",
"Count" : "0"
} ]
},
"PornResult" : {
"TopList" : [ {
"Label" : "porn",
"Score" : "100",
"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" : "0"
} ]
},
"AdResult" : {
"TopList" : [ {
"Label" : "ad",
"Score" : "100",
"Timestamp" : "500",
"Url" : "http://temp-testbucket.oss-cn-shanghai.aliyuncs.com/aivideocensor/****.jpg"
} ],
"Suggestion" : "block",
"MaxScore" : "100",
"AverageScore" : "100",
"Label" : "ad",
"CounterList" : [ {
"Label" : "ad",
"Count" : "10"
} ]
}
},
"Label" : "normal"
},
"CompleteTime" : "2017-01-11T13:00:00Z",
"Code" : "0",
"JobId" : "bdbc266af6894*****943a70176d92e9"
}
}
错误码
访问错误中心查看更多错误码。
SDK示例
建议使用服务端SDK来调用API,此API各语言调用的示例代码,请参见: