You can perform quick verification through API Explorer. After filling in relevant parameter information on the page, you can initiate an online API call.
Extended Parameter Description
ExtendedParameter reference value:
{"des":{"need_ocr":true,"only_segment":0,"text_requirement":"summary within 40 characters","dstlang":"en"}}
Note:
API Explorer will automatically convert the format. You only need to enter the corresponding ExtendedParameter in JSON format without converting it to a string. If calling the API directly, you need to escape the JSON string.
Optional parameters and their descriptions are as follows:
Parameter
Required
Type
Description
need_ocr
No
bool
Whether to use Optical Character Recognition (OCR) to assist segmentation, true means enabled. The default value is false.
If disabled, the system only recognizes the video's speech content to assist in video segmentation; if enabled, it also recognizes the text content on the video image to assist in video segmentation.
only_segment
No
int
Whether to only segment without generating a summary. The default value is 0.
1: Only segment without generating a summary.
0: Segment and generate a summary.
text_requirement
No
string
Requirements for generating a summary. For example, the character limit is "summary is within 40 characters".
dstlang
No
string
Title and summary language. The default value is "zh".
"zh": Chinese.
"en": English.
Querying Task Results
Task callbacks: When initiating an MPS task using ProcessMedia, you can set callback information through the TaskNotifyConfig parameter. After the task is completed, the task results will be called back through the configured callback information. You can parse the event notification results through ParseNotification.
Description corresponds to the entire video summary, and Paragraphs corresponds to the intelligent segmentation results of the entire video and the summary of each segment.