This topic describes the parameters for the automated review, smart thumbnail, media fingerprint, and DataQ - Smart Tag Service APIs of ApsaraVideo VOD.
AI template content information (AITemplateInfo)
Name | Type | Required | Description |
TemplateId | String | Yes | The template ID. |
TemplateType | String | Yes | The template type. Valid values:
|
TemplateName | String | Yes | The template name. |
TemplateConfig | String | Yes | The detailed template configuration. This is a JSON string. For more information, see AITemplateConfig. |
Source | String | Yes | The source of the template. Valid values:
|
IsDefault | String | No | Indicates whether the template is the default one. Valid values:
|
CreationTime | String | Yes | The time when the template was created. The time is in UTC format. |
ModifyTime | String | Yes | The time of the last modification in UTC format. |
AI template configuration (AITemplateConfig)
When TemplateType is AIMediaAudit
Field | Type | Required | Description |
AuditItem | String[] | Yes | The automated review items. Valid values:
Note
|
AuditRange | String[] | Yes | The scope of the automated review. Valid values:
|
AuditContent | String[] | Yes | The content for automated review. The value is screen. |
AuditAutoBlock | String | Yes | Indicates whether to automatically block the video if it is flagged for violations. Valid values:
|
When TemplateType is AIImage
Field name | Type | Required | Description |
Format | String | Yes | The format of the smart thumbnail. Valid values:
|
SetDefaultCover | String | Yes | Indicates whether to set the generated image as the video thumbnail. Valid values:
|
Automated review result (AIMediaAuditResult)
Field name | Type | Required | Description |
Suggestion | String | Yes | The suggested action for the review result. Valid values:
|
AbnormalModules | String | No | The content that is flagged for violations. Multiple values are separated by commas (,). Valid values:
|
Label | String | Yes | The category of the review result. Multiple values are separated by commas (,). Valid values:
|
VideoResult | No | The video review result. | |
CoverResult Note In the response to a GetMediaAuditResult request, this field is named ImageResult. | No | The video thumbnail review result. | |
TitleResult Note In the response to a GetMediaAuditResult request, this field is named TextResult. | No | The video title review result. | |
AudioResult | No | The audio review result. | |
ImageResult Note This field is returned only in the callback message for a SubmitAIMediaAuditJob request for image review. | No | The image review result. |
VideoResult
Field name | Type | Required | Description |
Suggestion | String | Yes | The suggested action for the review result. Valid values:
|
Label | String | Yes | The category of the review result. Multiple values are separated by commas (,). Valid values:
|
TerrorismResult | No | The review result for terrorism and political content. | |
PornResult | No | The review result for pornography. | |
AdResult | AdResult[] | No | The review result for advertisements. |
LiveResult | No | The review result for undesirable content. | |
LogoResult | No | The review result for logos. |
TerrorismResult
Field name | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the review of terrorism and political content. Valid values:
|
Label | String | Yes | The review result for terrorism and political content. Valid values:
|
MaxScore | String | Yes | The highest score of a video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
AverageScore | String | Yes | The average score of the video snapshots that hit the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
CounterList | Yes | The number of video snapshots for each category of terrorism and political content. | |
TopList | Yes | The information about the top 10 video snapshots with the highest scores for the label. |
TerrorismCounterList
Field name | Type | Required | Value |
Label | String | Yes | The review result for terrorism and political content. Valid values:
|
Count | Integer | Yes | The number of video snapshots. |
TerrorismTopList
Field name | Type | Required | Value |
Label | String | Yes | The review result for terrorism and political content. Valid values:
|
Score | String | Yes | The score of the video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Timestamp | String | Yes | The position of the video snapshot in the video. Unit: milliseconds. |
Url | String | Yes | The URL of the video snapshot. |
PornResult
Field name | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the pornography review. Valid values:
|
Label | String | Yes | The pornography review result. Valid values:
|
MaxScore | String | Yes | The highest score of a video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
AverageScore | String | Yes | The average score of the video snapshots that hit the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
CounterList | Yes | The number of video snapshots for each category of the review result. | |
TopList | Yes | The information about the top 10 video snapshots with the highest scores for the label. |
PornCounterList
Field | Type | Required | Value |
Label | String | Yes | The pornography review result. Valid values:
|
Count | Integer | Yes | The number of video snapshots. |
PornTopList
Field name | Type | Required | Value |
Label | String | Yes | The pornography review result. Valid values:
|
Score | String | Yes | The score of the video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Timestamp | String | Yes | The position of the video snapshot in the video. Unit: milliseconds. |
Url | String | Yes | The URL of the video snapshot. |
AdResult
Field name | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the advertisement review. Valid values:
|
Label | String | Yes | The advertisement review result. Valid values:
|
MaxScore | String | Yes | The highest score of a video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
AverageScore | String | Yes | The average score of the video snapshots that hit the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
CounterList | Yes | The number of video snapshots for each category of the advertisement review result. | |
TopList | Yes | The information about the top 10 video snapshots with the highest scores for the label. |
AdCounterList
Field | Type | Required | Value |
Label | String | Yes | The category of the advertisement review result. Valid values:
|
Count | Integer | Yes | The number of video snapshots. |
AdTopList
Field Name | Type | Required | Value |
Label | String | Yes | The category of the advertisement review result. Valid values:
|
Score | String | Yes | The score of the video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Timestamp | String | Yes | The position of the video snapshot in the video. Unit: milliseconds. |
Url | String | Yes | The URL of the video snapshot. |
LiveResult
Field name | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the review of undesirable content. Valid values:
|
Label | String | Yes | The review result for undesirable content. Valid values:
|
MaxScore | String | Yes | The highest score of a video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
AverageScore | String | Yes | The average score of the video snapshots that hit the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
CounterList | Yes | The number of video snapshots for each category of the undesirable content review result. | |
TopList | Yes | The information about the top 10 video snapshots with the highest scores for the label. |
LiveCounterList
Field | Type | Required | Value |
Label | String | Yes | The category of the undesirable content review result. Valid values:
|
Count | Integer | Yes | The number of video snapshots. |
LiveTopList
Field | Type | Required | Value |
Label | String | Yes | The category of the undesirable content review result. Valid values:
|
Score | String | Yes | The score of the video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Timestamp | String | Yes | The position of the video snapshot in the video. Unit: milliseconds. |
Url | String | Yes | The URL of the video snapshot. |
LogoResult
Field name | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the logo review. Valid values:
|
Label | String | Yes | The review result for logo content. Valid values:
|
MaxScore | String | Yes | The highest score of a video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
AverageScore | String | Yes | The average score of the video snapshots that hit the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
CounterList | Yes | The number of video snapshots for each category of the logo review result. | |
TopList | Yes | The information about the top 10 video snapshots with the highest scores for the label. |
LogoCounterList
Field | Type | Required | Value |
Label | String | Yes | The category of the logo review result. Valid values:
|
Count | Integer | Yes | The number of video snapshots. |
LogoTopList
Field name | Type | Required | Value |
Label | String | Yes | The category of the logo review result. Valid values:
|
Score | String | Yes | The score of the video snapshot that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Timestamp | String | Yes | The position of the video snapshot in the video. Unit: milliseconds. |
Url | String | Yes | The URL of the video snapshot. |
CoverResult
Field name | Type | Required | Description |
Suggestion | String | Yes | The suggested action for the video thumbnail review. Valid values:
|
Label | String | Yes | The category of the video thumbnail review result. Multiple values are separated by commas (,). Valid values:
|
Type | String | Yes | The review type. The value is cover. |
Url | String | Yes | The URL of the video thumbnail. |
Result | Yes | The details of the video thumbnail review result. |
CoverResultItem
Field | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the video thumbnail review. Valid values:
|
Label | String | Yes | The category of the video thumbnail review result. If scene is porn, valid values are:
If scene is terrorism, valid values are:
If scene is ad, valid values are:
If scene is live, valid values are:
If scene is logo, valid values are:
|
Score | String | Yes | The score of the video thumbnail that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Scene | String | Yes | The review scenario for the video thumbnail. Valid values:
|
TitleResult
Field | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the text review. Valid values:
|
Label | String | Yes | The category of the text review result. Valid values:
|
Score | String | Yes | The score for a Label hit is a value in the range of 0 to 100, with a precision of 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Scene | String | Yes | The review scenario. The value is antispam. |
Type | String | Yes | The text category. The value is title. |
AudioResult
Field | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the audio review. Valid values:
|
Label | String | Yes | The category of the audio review result. Valid values:
|
Score | String | Yes | The score of the audio that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Scene | String | Yes | The review scenario. The value is fixed to antispam. |
ImageResult
Field name | Type | Required | Description |
Suggestion | String | Yes | The suggested action for the image review. Valid values:
|
Label | String | Yes | The category of the image review result. Multiple values are separated by commas (,). Valid values:
|
Url | String | Yes | The URL of the image. |
Result | Yes | The details of the image review result. |
ImageResultItem
Field | Type | Required | Value |
Suggestion | String | Yes | The suggested action for the image review. Valid values:
|
Label | String | Yes | The category of the image review result. If scene is porn, valid values are:
If scene is terrorism, valid values are:
If scene is ad, valid values are:
If scene is live, valid values are:
If scene is logo, valid values are:
|
Score | String | Yes | The score of the image that hits the label. The value ranges from 0 to 100. The value is accurate to 10 decimal places. A higher score indicates a higher probability that the content belongs to the label. |
Scene | String | Yes | The image review scenario. Valid values:
|
Media fingerprint result (AIMediaDNAResult)
Name | Type | Required | Value |
VideoDNA | VideoDNA[] | No | The media fingerprint detection result. |
VideoDNA
Name | Type | Required | Value |
PrimaryKey | String | Yes | The ID of the similar video. |
Similarity | String | Yes | The video similarity. |
Detail | Yes | The details of the similar video, including the position and duration. |
VideoDNADetail
Name | Type | Required | Value |
Input | Yes | The start time and duration of the input video. | |
Duplication | Yes | The start time and duration of the video in the library. |
VideoDNADetailItem
Name | Type | Required | Value |
Start | String | Yes | The start time of the video. |
Duration | String | Yes | The duration of the video. |
Smart tag result (AIVideoTagResult)
Field name | Type | Required | Value |
Person | No | A collection of person tags. | |
Time | No | A collection of time tags. | |
Location | No | A collection of location tags. | |
Keyword | No | A collection of keyword tags. | |
Category | No | A collection of video categories. | |
OrigASRData | No | The raw automatic speech recognition (ASR) result. This parameter is returned only if the AnalyseTypes parameter in Config > AIVideoTag of a SubmitAIJob request includes ASR, and OrigASRData in Config > AIVideoTag is set to true. |
AIVideoTagResultItem
Field name | Type | Required | Value |
Tag | String | Yes | The tag. |
Times | String[] | No | A collection of time points. Unit: milliseconds. |
FaceUrl | String | No | The URL of the face. Note: This parameter is returned only for person tags. |
Speech recognition result (AIASRData)
Field name | Type | Required | Value |
Duration | String | Yes | The audio duration. Unit: milliseconds. |
AsrTextList | AsrText[] | No | The speech recognition result. The elements in the array are sentences. For more information, see AsrText. |
Sentence result (AsrText)
Field | Type | Required | Value |
StartTime | Long | Yes | The start time offset of the sentence. Unit: milliseconds. |
EndTime | Long | Yes | The end time offset of the sentence. Unit: milliseconds. |
Text | String | Yes | The recognized text of the sentence. |
ChannelId | Int | Yes | The sound channel ID. |
SpeechRate | Int | Yes | The average speech rate of the sentence. Unit: words per minute. |