All Products
Search
Document Center

Video AI parameters

Last Updated: Jul 11, 2019

AITemplateInfo

Parameter Type Required Description
TemplateId String Yes The ID of the template.
TemplateType String Yes The type of the template.
TemplateName String Yes The name of the template.
TemplateConfig String Yes The detailed template configuration. The value is a JSON-formatted string. For more information, see AITemplateConfig.
Source String Yes The template source. Valid values:
System
Custom
IsDefault String No Indicates whether the template is the default one. Valid values: Default and NotDefault.
CreationTime String Yes The time when the template was created. The time is displayed in UTC.
ModifyTime String Yes The time when the template was last modified. The time is displayed in UTC.

AITemplateConfig

If TemplateType is set to AIMediaAudit

Parameter Type Required Description
AuditItem String[] Yes The review item. Valid values: terrorism and porn.
AuditRange String[] Yes The review range. Valid values: video, image-cover, and text-title.
AuditContent String[] Yes The review content. Valid value: screen.
AuditAutoBlock String Yes Indicates whether to automatically block the video if automated review determines that the video violates certain rules. Valid values: no and yes.

AIMediaAuditResult

Parameter Type Required Description
Suggestion String Yes The suggestion for the review result. Valid values: block, review, and pass.
AbnormalModules String No The review content. Separate multiple values with commas (,). Valid values: video, image-cover, and text-title.
Label String Yes The review result category. Separate multiple values with commas (,). Valid values: porn, terrorism, and normal.
VideoResult VideoAuditResult No The video review result.
ImageResult ImageAuditResult[] No The image review result.
TextResult TextAuditResult[] No The text review result.

VideoAuditResult

Parameter Type Required Description
Suggestion String Yes The suggestion for the review result. Valid values: block, review, and pass.
Label String Yes The review result category. Separate multiple values with commas (,). Valid values: porn, terrorism, and normal.
TerrorismResult TerrorismResultItem No The terrorism review result.
PornResult PornResultItem No The pornography review result.

TerrorismResultItem

Parameter Type Required Description
Suggestion String Yes The suggestion for the terrorism review result. Valid values: block, review, and pass.
Label String Yes The terrorism category. Valid values: terrorism, outfit, logo, weapon, politics, others, and normal.
MaxScore String Yes The maximum score of the images that hit the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
AverageScore String Yes The average score of the images that hit the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
CounterList TerrorismCounterListItem[] Yes The list of terrorism review result categories and the number of images in each category.
TopList TerrorismTopListItem[] Yes The top 10 images with the highest scores in the category.

TerrorismCounterListItem

Parameter Type Required Description
Label String Yes The terrorism review result. Valid values: terrorism, outfit, logo, weapon, politics, others, and normal.
Count Integer Yes The number of images.

TerrorismTopListItem

Parameter Type Required Description
Label String Yes The terrorism review result. Valid values: terrorism, outfit, logo, weapon, politics, others, and normal.
Score String Yes The score of the image that hits the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
Timestamp String Yes The location of the illegal content in the video. Unit: milliseconds.
Url String Yes The URL of the image.

PornResultItem

Parameter Type Required Description
Suggestion String Yes The suggestion for the pornography review result. Valid values: block, review, and pass.
Label String Yes The pornography review result. Valid values: porn, sexy, and normal.
MaxScore String Yes The maximum score of the images that hit the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
AverageScore String Yes The average score of the images that hit the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
CounterList PornCounterListItem[] Yes The list of pornography review result categories and the number of images in each category.
TopList PornTopListItem[] Yes The top 10 images with the highest scores in the category.

PornCounterListItem

Parameter Type Required Description
Label String Yes The pornography review result. Valid values: porn, sexy, and normal.
Count Integer Yes The number of images.

PornTopListItem

Parameter Type Required Description
Label String Yes The pornography review result. Valid values: porn, sexy, and normal.
Score String Yes The score of the image that hits the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
Timestamp String Yes The location of the illegal content in the video. Unit: milliseconds.
Url String Yes The URL of the image.

ImageAuditResult

Parameter Type Required Description
Suggestion String Yes The suggestion for the review result. Valid values: block, review, and pass.
Label String Yes The category label. Separate multiple values with commas (,). Valid values: porn, terrorism, and normal.
Type String Yes The image category. Valid value: cover.
Url String Yes The URL of the image.
Result ImageAuditResultItem[] Yes The details of the image review result.

ImageAuditResultItem

Parameter Type Required Description
Suggestion String Yes The suggestion for the review result. Valid values: block, review, and pass.
Label String Yes The category label that the review result hits. Valid values if the Scene parameter is set to porn: porn, sexy, and normal. Valid values if the Scene parameter is set to terrorism: terrorism, outfit, logo, weapon, politics, others, and normal.
Score String Yes The score of the image that hits the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
Scene String Yes The review scenario. Valid values: terrorism and porn.

TextAuditResult

Parameter Type Required Value
Suggestion String Yes The suggestion for the review result. Valid values: block, review, and pass.
Label String Yes The category label that the review result hits. Valid values: spam, ad, abuse, flood, contraband, meaningless, and normal.
Score String Yes The score of the text that hits the category label. Valid values: [0, 100]. The value is precise to ten decimal places. The value indicates the probability of matching the corresponding category label. The greater the value is, the more likely the result falls into this category.
Scene String Yes The review scenario. Valid value: antispam.
Type String Yes The text category. Valid value: title.

AIMediaDNAResult

Parameter Type Required Value
VideoDNA VideoDNA[] No The media fingerprint recognition result.

VideoDNA

Parameter Type Required Description
PrimaryKey String Yes The ID of the similar video.
Similarity String Yes The video similarity.
Detail VideoDNADetail[] Yes The details of the similar video, including the video location and duration.

VideoDNADetail

Parameter Type Required Description
Input VideoDNADetailItem Yes The start time and duration of the video mezzanine file.
Duplication VideoDNADetailItem Yes The start time and duration of the video in the media library.

VideoDNADetailItem

Parameter Type Required Description
Start String Yes The start time of the video.
Duration String Yes The duration of the video.