




{"AiAnalysisTask":{"Definition":28,"ExtendedParameter":"{\\"htv\\":{\\"AlgorithmType\\":2,\\"SmoothWeight\\":0.75,\\"Ratio\\":\\"9:16\\"}}"}}


ExtendedParameter is used to customize the video understanding task. Refer to the table below for all available options and descriptions. Request parameter example:{"htv": {"AlgorithmType": 2,"SmoothWeight": 0.75,"Ratio": "9:16"}}// After escaping (required when the API is called directly): {\\"htv\\": {\\"AlgorithmType\\": 2, \\"SmoothWeight\\": 0.75, \\"Ratio\\": \\"9:16\\" }}
Name | Type | Description |
AlgorithmType | Integer | Designated Algorithm Categories: 2:Supports multiple model algorithms with customized optimization. 3:Utilizes precise face detection algorithms; when two faces are detected, the screen splits vertically to display them, centering each face as much as possible. 5:Directly scales the video to center it within the portrait frame, using a gaussian-blurred version of the video as the background. 6:AIGC Mode: Generates and extends original landscape videos into a 9:16 portrait aspect ratio. 7:AIGC Mode: Generates and extends original portrait videos into a 16:9 landscape aspect ratio. |
Ratio | String | Video aspect ratio, which is a string and parsed internally. If parsing fails, the default value of 9:16 is used for cropping (for example, "9:16" indicates converting to a video with an aspect ratio of 9:16, taking the original video's height). |
FaceDetectConfig | Object | Face detection configurations. |
OutputPattern | String | For customizing the filename, timestamp and sessionId serve as available substitution parameters. For instance, "htv-{sessionId}-{timestamp}" would result in the output file being named "htv-xxxx-202412250000", where "xxxx" represents the actual sessionId of the task. If not specified, the default output filename will be "htv-{sessionId}". |
BlurWeight | Integer | Blurring parameter: the higher the value, the more pronounced the blurring effect. Excessively high parameter values may impede processing speed. |
SmoothWeight | Float | A floating-point number between 0 and 1, which controls the parameter for smoothing speed. The smaller the value, the faster the camera moves. |
Name | Type | Description |
FaceScoreThd | Integer | The recognition threshold for the face detection algorithm. A face is considered valid only when the recognition score exceeds this threshold. |
FaceAccuracy | String | Optional, the number of executions for the face detection algorithm, defaults to "Balance". Other selectable options include "Efficiency" and "Precision". |
FallbackConfig | Object | The fallback strategy for face detection includes scenarios with "NoFaceDetect" (no faces detected) and "DoubleFace" (two faces detected). |
Name | Type | Description |
NoFaceDetect | String | Options: "Scale", "ScaleWithoutBlur" (default). |
DoubleFace | String | Options: "Scale", "ScaleWithoutBlur", "SplitScreenVertical" (default). |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan