@alicloud/aidge20260428 5.9.0 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +324 -264
- package/dist/client.js +488 -264
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
- package/dist/models/ImageMattingAsyncRequest.js +2 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
- package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
- package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
- package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
- package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
- package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +12 -12
- package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +59 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -268
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/ImageMattingAsyncRequest.ts +11 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
- package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
- package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
- package/src/models/ImageRemoveAsyncRequest.ts +27 -6
- package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
- package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
- package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
- package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
- package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
- package/src/models/TextTranslateAsyncRequest.ts +28 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoTranslationRequest.ts +12 -12
- package/src/models/VideoTranslationResponseBody.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +12 -12
- package/src/models/model.ts +26 -0
package/dist/client.js
CHANGED
|
@@ -62,31 +62,78 @@ class Client extends openapi_core_1.default {
|
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
66
|
+
*
|
|
67
|
+
* @param tmpReq - AddDisplayKnowledgeRequest
|
|
68
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
69
|
+
* @returns AddDisplayKnowledgeResponse
|
|
70
|
+
*/
|
|
71
|
+
async addDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
72
|
+
tmpReq.validate();
|
|
73
|
+
let request = new $_model.AddDisplayKnowledgeShrinkRequest({});
|
|
74
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
75
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
76
|
+
request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
77
|
+
}
|
|
78
|
+
let query = {};
|
|
79
|
+
if (!$dara.isNull(request.ragId)) {
|
|
80
|
+
query["RagId"] = request.ragId;
|
|
81
|
+
}
|
|
82
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
83
|
+
query["Records"] = request.recordsShrink;
|
|
84
|
+
}
|
|
85
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
86
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
87
|
+
});
|
|
88
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
89
|
+
action: "AddDisplayKnowledge",
|
|
90
|
+
version: "2026-04-28",
|
|
91
|
+
protocol: "HTTPS",
|
|
92
|
+
pathname: "/",
|
|
93
|
+
method: "POST",
|
|
94
|
+
authType: "AK",
|
|
95
|
+
style: "RPC",
|
|
96
|
+
reqBodyType: "formData",
|
|
97
|
+
bodyType: "json",
|
|
98
|
+
});
|
|
99
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddDisplayKnowledgeResponse({}));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Synchronously adds content to a display knowledge base in batches.
|
|
103
|
+
*
|
|
104
|
+
* @param request - AddDisplayKnowledgeRequest
|
|
105
|
+
* @returns AddDisplayKnowledgeResponse
|
|
106
|
+
*/
|
|
107
|
+
async addDisplayKnowledge(request) {
|
|
108
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
109
|
+
return await this.addDisplayKnowledgeWithOptions(request, runtime);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
|
|
66
113
|
*
|
|
67
114
|
* @remarks
|
|
68
115
|
* ## Scenarios
|
|
69
|
-
* - **Virtual try-on for clothing
|
|
70
|
-
* Supports
|
|
116
|
+
* - **Virtual try-on for clothing:**
|
|
117
|
+
* Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
|
|
71
118
|
* - **Virtual try-on for shoes and hats:**
|
|
72
|
-
* Supports virtual try-on for shoes
|
|
119
|
+
* Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
|
|
73
120
|
* - **E-commerce product display and marketing:**
|
|
74
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
121
|
+
* Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
|
|
75
122
|
* - **Online shopping experience optimization:**
|
|
76
|
-
*
|
|
123
|
+
* Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
|
|
77
124
|
* ## Features
|
|
78
|
-
* - **
|
|
79
|
-
* - a. Model image: The person
|
|
80
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
81
|
-
* - **
|
|
82
|
-
* - a. Specify product type:
|
|
83
|
-
* - b. Automatic type recognition: If
|
|
84
|
-
* - **
|
|
85
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
86
|
-
* - b. Maintain
|
|
87
|
-
* - c. Generate try-on
|
|
88
|
-
* ##
|
|
89
|
-
* | **Type** | **Model image** | **
|
|
125
|
+
* - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
|
|
126
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
127
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
128
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
129
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
130
|
+
* - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
|
|
131
|
+
* - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
|
|
132
|
+
* - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
|
|
133
|
+
* - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
|
|
134
|
+
* - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
|
|
135
|
+
* ## Examples
|
|
136
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
90
137
|
* | --- | --- | --- | --- |
|
|
91
138
|
* | Tops |  |  |  |
|
|
92
139
|
* | Bottoms |  |  |  |
|
|
@@ -131,31 +178,31 @@ class Client extends openapi_core_1.default {
|
|
|
131
178
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AiTryOnResponse({}));
|
|
132
179
|
}
|
|
133
180
|
/**
|
|
134
|
-
*
|
|
181
|
+
* Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
|
|
135
182
|
*
|
|
136
183
|
* @remarks
|
|
137
184
|
* ## Scenarios
|
|
138
|
-
* - **Virtual try-on for clothing
|
|
139
|
-
* Supports
|
|
185
|
+
* - **Virtual try-on for clothing:**
|
|
186
|
+
* Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
|
|
140
187
|
* - **Virtual try-on for shoes and hats:**
|
|
141
|
-
* Supports virtual try-on for shoes
|
|
188
|
+
* Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
|
|
142
189
|
* - **E-commerce product display and marketing:**
|
|
143
|
-
* Helps merchants quickly generate model try-on images for different products
|
|
190
|
+
* Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
|
|
144
191
|
* - **Online shopping experience optimization:**
|
|
145
|
-
*
|
|
192
|
+
* Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
|
|
146
193
|
* ## Features
|
|
147
|
-
* - **
|
|
148
|
-
* - a. Model image: The person
|
|
149
|
-
* - b. Product image: The clothing, shoes, or hat
|
|
150
|
-
* - **
|
|
151
|
-
* - a. Specify product type:
|
|
152
|
-
* - b. Automatic type recognition: If
|
|
153
|
-
* - **
|
|
154
|
-
* - a. Preserve model details: The generation process does not alter the
|
|
155
|
-
* - b. Maintain
|
|
156
|
-
* - c. Generate try-on
|
|
157
|
-
* ##
|
|
158
|
-
* | **Type** | **Model image** | **
|
|
194
|
+
* - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
|
|
195
|
+
* - a. Model image: The image of the person who will wear the garment in the virtual try-on.
|
|
196
|
+
* - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
|
|
197
|
+
* - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
|
|
198
|
+
* - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
|
|
199
|
+
* - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
|
|
200
|
+
* - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
|
|
201
|
+
* - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
|
|
202
|
+
* - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
|
|
203
|
+
* - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
|
|
204
|
+
* ## Examples
|
|
205
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
159
206
|
* | --- | --- | --- | --- |
|
|
160
207
|
* | Tops |  |  |  |
|
|
161
208
|
* | Bottoms |  |  |  |
|
|
@@ -607,6 +654,53 @@ class Client extends openapi_core_1.default {
|
|
|
607
654
|
let runtime = new $dara.RuntimeOptions({});
|
|
608
655
|
return await this.categoryMatchWithOptions(request, runtime);
|
|
609
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
659
|
+
*
|
|
660
|
+
* @param tmpReq - DeleteDisplayKnowledgeRequest
|
|
661
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
662
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
663
|
+
*/
|
|
664
|
+
async deleteDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
665
|
+
tmpReq.validate();
|
|
666
|
+
let request = new $_model.DeleteDisplayKnowledgeShrinkRequest({});
|
|
667
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
668
|
+
if (!$dara.isNull(tmpReq.recordIds)) {
|
|
669
|
+
request.recordIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json");
|
|
670
|
+
}
|
|
671
|
+
let query = {};
|
|
672
|
+
if (!$dara.isNull(request.ragId)) {
|
|
673
|
+
query["RagId"] = request.ragId;
|
|
674
|
+
}
|
|
675
|
+
if (!$dara.isNull(request.recordIdsShrink)) {
|
|
676
|
+
query["RecordIds"] = request.recordIdsShrink;
|
|
677
|
+
}
|
|
678
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
679
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
680
|
+
});
|
|
681
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
682
|
+
action: "DeleteDisplayKnowledge",
|
|
683
|
+
version: "2026-04-28",
|
|
684
|
+
protocol: "HTTPS",
|
|
685
|
+
pathname: "/",
|
|
686
|
+
method: "POST",
|
|
687
|
+
authType: "AK",
|
|
688
|
+
style: "RPC",
|
|
689
|
+
reqBodyType: "formData",
|
|
690
|
+
bodyType: "json",
|
|
691
|
+
});
|
|
692
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDisplayKnowledgeResponse({}));
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Deletes display knowledge base content in batches synchronously.
|
|
696
|
+
*
|
|
697
|
+
* @param request - DeleteDisplayKnowledgeRequest
|
|
698
|
+
* @returns DeleteDisplayKnowledgeResponse
|
|
699
|
+
*/
|
|
700
|
+
async deleteDisplayKnowledge(request) {
|
|
701
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
702
|
+
return await this.deleteDisplayKnowledgeWithOptions(request, runtime);
|
|
703
|
+
}
|
|
610
704
|
/**
|
|
611
705
|
* Calculates the edge lengths and floor area of a floor display based on the floor display image and product detection boxes.
|
|
612
706
|
*
|
|
@@ -1196,13 +1290,13 @@ class Client extends openapi_core_1.default {
|
|
|
1196
1290
|
return await this.imageMattingWithOptions(request, runtime);
|
|
1197
1291
|
}
|
|
1198
1292
|
/**
|
|
1199
|
-
* Extracts the salient subject from an image
|
|
1293
|
+
* Extracts the salient subject from an image by separating it from the background and returns the subject image with the background removed. It also provides multiple background options and custom size options to optimize product display.
|
|
1200
1294
|
*
|
|
1201
1295
|
* @remarks
|
|
1202
1296
|
* # Scenarios
|
|
1203
|
-
* * Supports secondary editing of materials: After the image subject
|
|
1297
|
+
* * Supports secondary editing of materials: After separating the image subject from the background, you can further edit the image.
|
|
1204
1298
|
*
|
|
1205
|
-
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement,
|
|
1299
|
+
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, thereby improving the production efficiency of advertising images and marketing posters.
|
|
1206
1300
|
* # Features.
|
|
1207
1301
|
* #### 1. One-click precise subject recognition
|
|
1208
1302
|
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
@@ -1211,9 +1305,9 @@ class Client extends openapi_core_1.default {
|
|
|
1211
1305
|
* #### 2. Intelligent edge optimization
|
|
1212
1306
|
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1213
1307
|
* #### 3. Multi-format output and background operations
|
|
1214
|
-
* * **Transparent background export**: Directly generates PNG images with transparent
|
|
1308
|
+
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, adapting to e-commerce and design scenarios.
|
|
1215
1309
|
*
|
|
1216
|
-
* * **
|
|
1310
|
+
* * **Custom background color support**
|
|
1217
1311
|
* # Effect comparison
|
|
1218
1312
|
* | **Original image (input)** | **Result image (output)** |
|
|
1219
1313
|
* | --- | --- |
|
|
@@ -1234,6 +1328,9 @@ class Client extends openapi_core_1.default {
|
|
|
1234
1328
|
if (!$dara.isNull(request.bgColor)) {
|
|
1235
1329
|
query["BgColor"] = request.bgColor;
|
|
1236
1330
|
}
|
|
1331
|
+
if (!$dara.isNull(request.bizId)) {
|
|
1332
|
+
query["BizId"] = request.bizId;
|
|
1333
|
+
}
|
|
1237
1334
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1238
1335
|
query["ImageUrl"] = request.imageUrl;
|
|
1239
1336
|
}
|
|
@@ -1260,13 +1357,13 @@ class Client extends openapi_core_1.default {
|
|
|
1260
1357
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageMattingAsyncResponse({}));
|
|
1261
1358
|
}
|
|
1262
1359
|
/**
|
|
1263
|
-
* Extracts the salient subject from an image
|
|
1360
|
+
* Extracts the salient subject from an image by separating it from the background and returns the subject image with the background removed. It also provides multiple background options and custom size options to optimize product display.
|
|
1264
1361
|
*
|
|
1265
1362
|
* @remarks
|
|
1266
1363
|
* # Scenarios
|
|
1267
|
-
* * Supports secondary editing of materials: After the image subject
|
|
1364
|
+
* * Supports secondary editing of materials: After separating the image subject from the background, you can further edit the image.
|
|
1268
1365
|
*
|
|
1269
|
-
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement,
|
|
1366
|
+
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, thereby improving the production efficiency of advertising images and marketing posters.
|
|
1270
1367
|
* # Features.
|
|
1271
1368
|
* #### 1. One-click precise subject recognition
|
|
1272
1369
|
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
@@ -1275,9 +1372,9 @@ class Client extends openapi_core_1.default {
|
|
|
1275
1372
|
* #### 2. Intelligent edge optimization
|
|
1276
1373
|
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1277
1374
|
* #### 3. Multi-format output and background operations
|
|
1278
|
-
* * **Transparent background export**: Directly generates PNG images with transparent
|
|
1375
|
+
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, adapting to e-commerce and design scenarios.
|
|
1279
1376
|
*
|
|
1280
|
-
* * **
|
|
1377
|
+
* * **Custom background color support**
|
|
1281
1378
|
* # Effect comparison
|
|
1282
1379
|
* | **Original image (input)** | **Result image (output)** |
|
|
1283
1380
|
* | --- | --- |
|
|
@@ -1497,12 +1594,12 @@ class Client extends openapi_core_1.default {
|
|
|
1497
1594
|
return await this.imageRecognitionWithOptions(request, runtime);
|
|
1498
1595
|
}
|
|
1499
1596
|
/**
|
|
1500
|
-
* Identifies specific elements in e-commerce images. It
|
|
1597
|
+
* Identifies specific elements in e-commerce images. It extracts image details to help users quickly identify text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
|
|
1501
1598
|
*
|
|
1502
1599
|
* @remarks
|
|
1503
1600
|
* # Scenarios
|
|
1504
1601
|
* 1. Intelligent image filtering and optimization:
|
|
1505
|
-
* Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can
|
|
1602
|
+
* Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
|
|
1506
1603
|
* 2. Automated image processing and efficiency improvement:
|
|
1507
1604
|
* Through the intelligent element recognition API, merchants and platforms can automate the image processing workflow and automatically identify and mark image elements that need to be optimized. This workflow reduces manual intervention and improves the efficiency of image processing.
|
|
1508
1605
|
* # Features
|
|
@@ -1515,14 +1612,14 @@ class Client extends openapi_core_1.default {
|
|
|
1515
1612
|
*
|
|
1516
1613
|
* * Logo: A logo or trademark.
|
|
1517
1614
|
*
|
|
1518
|
-
* * Watermark: Monochrome transparent text, logos, images, URLs,
|
|
1615
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, store names, etc.
|
|
1519
1616
|
*
|
|
1520
1617
|
* * Text-containing color block: A color block containing text outside the subject.
|
|
1521
1618
|
*
|
|
1522
|
-
* **2. The
|
|
1619
|
+
* **2. The intelligent element recognition API provides the following features:**
|
|
1523
1620
|
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1524
1621
|
*
|
|
1525
|
-
* * Workflow collaboration: Used in combination with the intelligent elimination API.
|
|
1622
|
+
* * Workflow collaboration: Used in combination with the intelligent elimination API. First, the intelligent element recognition API identifies the elements to be removed, and then the intelligent elimination API effectively removes them to ensure the accuracy and efficiency of image processing.
|
|
1526
1623
|
*
|
|
1527
1624
|
* **3. Technical advantages:**
|
|
1528
1625
|
* * Synchronous batch processing: As a synchronous API, the intelligent element recognition API can process a large number of images while maintaining fast response, adapting to business needs of different scales.
|
|
@@ -1581,6 +1678,9 @@ class Client extends openapi_core_1.default {
|
|
|
1581
1678
|
request.objectDetectElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
|
|
1582
1679
|
}
|
|
1583
1680
|
let query = {};
|
|
1681
|
+
if (!$dara.isNull(request.bizId)) {
|
|
1682
|
+
query["BizId"] = request.bizId;
|
|
1683
|
+
}
|
|
1584
1684
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1585
1685
|
query["ImageUrl"] = request.imageUrl;
|
|
1586
1686
|
}
|
|
@@ -1622,12 +1722,12 @@ class Client extends openapi_core_1.default {
|
|
|
1622
1722
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRecognitionAsyncResponse({}));
|
|
1623
1723
|
}
|
|
1624
1724
|
/**
|
|
1625
|
-
* Identifies specific elements in e-commerce images. It
|
|
1725
|
+
* Identifies specific elements in e-commerce images. It extracts image details to help users quickly identify text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
|
|
1626
1726
|
*
|
|
1627
1727
|
* @remarks
|
|
1628
1728
|
* # Scenarios
|
|
1629
1729
|
* 1. Intelligent image filtering and optimization:
|
|
1630
|
-
* Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can
|
|
1730
|
+
* Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
|
|
1631
1731
|
* 2. Automated image processing and efficiency improvement:
|
|
1632
1732
|
* Through the intelligent element recognition API, merchants and platforms can automate the image processing workflow and automatically identify and mark image elements that need to be optimized. This workflow reduces manual intervention and improves the efficiency of image processing.
|
|
1633
1733
|
* # Features
|
|
@@ -1640,14 +1740,14 @@ class Client extends openapi_core_1.default {
|
|
|
1640
1740
|
*
|
|
1641
1741
|
* * Logo: A logo or trademark.
|
|
1642
1742
|
*
|
|
1643
|
-
* * Watermark: Monochrome transparent text, logos, images, URLs,
|
|
1743
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, store names, etc.
|
|
1644
1744
|
*
|
|
1645
1745
|
* * Text-containing color block: A color block containing text outside the subject.
|
|
1646
1746
|
*
|
|
1647
|
-
* **2. The
|
|
1747
|
+
* **2. The intelligent element recognition API provides the following features:**
|
|
1648
1748
|
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1649
1749
|
*
|
|
1650
|
-
* * Workflow collaboration: Used in combination with the intelligent elimination API.
|
|
1750
|
+
* * Workflow collaboration: Used in combination with the intelligent elimination API. First, the intelligent element recognition API identifies the elements to be removed, and then the intelligent elimination API effectively removes them to ensure the accuracy and efficiency of image processing.
|
|
1651
1751
|
*
|
|
1652
1752
|
* **3. Technical advantages:**
|
|
1653
1753
|
* * Synchronous batch processing: As a synchronous API, the intelligent element recognition API can process a large number of images while maintaining fast response, adapting to business needs of different scales.
|
|
@@ -1789,27 +1889,27 @@ class Client extends openapi_core_1.default {
|
|
|
1789
1889
|
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1790
1890
|
}
|
|
1791
1891
|
/**
|
|
1792
|
-
*
|
|
1892
|
+
* Removes objects from e-commerce images by automatically identifying and erasing text, specific names, transparent text blocks, and watermarks. Allows you to specify objects to remove as needed, enabling efficient and accurate processing of large batches of images and simplifying image editing.
|
|
1793
1893
|
*
|
|
1794
1894
|
* @remarks
|
|
1795
1895
|
* ## Scenarios
|
|
1796
|
-
* * **Efficient e-commerce
|
|
1896
|
+
* * **Efficient processing of e-commerce images:**
|
|
1797
1897
|
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1798
|
-
* * **
|
|
1799
|
-
*
|
|
1898
|
+
* * **Product information synchronization across multiple platforms:**
|
|
1899
|
+
* Quickly removes specific text and watermarks when merchants list products on different e-commerce platforms to comply with the image specifications of each platform.
|
|
1800
1900
|
* ## Features
|
|
1801
|
-
* 1. First,
|
|
1901
|
+
* 1. First, understand the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, you can choose to remove objects from the image subject or the image background. Both API and editor integration methods are supported to meet different requirements.
|
|
1802
1902
|
*
|
|
1803
1903
|
* 1. Image subject: the core product area in the image.
|
|
1804
1904
|
*
|
|
1805
|
-
* 2. Image background: the rest of the image
|
|
1905
|
+
* 2. Image background: the rest of the image except the product subject.
|
|
1806
1906
|
*
|
|
1807
|
-
* 2. Second, the
|
|
1808
|
-
* ##
|
|
1809
|
-
* | **Original image** | **
|
|
1907
|
+
* 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1908
|
+
* ## Effect comparison
|
|
1909
|
+
* | **Original image** | **Processed image** |
|
|
1810
1910
|
* | --- | --- |
|
|
1811
|
-
* |  |  |
|
|
1812
|
-
* |  |  |
|
|
1912
|
+
* |  |  |
|
|
1813
1913
|
*
|
|
1814
1914
|
* @param request - ImageRemovalProAsyncRequest
|
|
1815
1915
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1818,6 +1918,9 @@ class Client extends openapi_core_1.default {
|
|
|
1818
1918
|
async imageRemovalProAsyncWithOptions(request, runtime) {
|
|
1819
1919
|
request.validate();
|
|
1820
1920
|
let query = {};
|
|
1921
|
+
if (!$dara.isNull(request.bizId)) {
|
|
1922
|
+
query["BizId"] = request.bizId;
|
|
1923
|
+
}
|
|
1821
1924
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1822
1925
|
query["ImageUrl"] = request.imageUrl;
|
|
1823
1926
|
}
|
|
@@ -1838,27 +1941,27 @@ class Client extends openapi_core_1.default {
|
|
|
1838
1941
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProAsyncResponse({}));
|
|
1839
1942
|
}
|
|
1840
1943
|
/**
|
|
1841
|
-
*
|
|
1944
|
+
* Removes objects from e-commerce images by automatically identifying and erasing text, specific names, transparent text blocks, and watermarks. Allows you to specify objects to remove as needed, enabling efficient and accurate processing of large batches of images and simplifying image editing.
|
|
1842
1945
|
*
|
|
1843
1946
|
* @remarks
|
|
1844
1947
|
* ## Scenarios
|
|
1845
|
-
* * **Efficient e-commerce
|
|
1948
|
+
* * **Efficient processing of e-commerce images:**
|
|
1846
1949
|
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1847
|
-
* * **
|
|
1848
|
-
*
|
|
1950
|
+
* * **Product information synchronization across multiple platforms:**
|
|
1951
|
+
* Quickly removes specific text and watermarks when merchants list products on different e-commerce platforms to comply with the image specifications of each platform.
|
|
1849
1952
|
* ## Features
|
|
1850
|
-
* 1. First,
|
|
1953
|
+
* 1. First, understand the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, you can choose to remove objects from the image subject or the image background. Both API and editor integration methods are supported to meet different requirements.
|
|
1851
1954
|
*
|
|
1852
1955
|
* 1. Image subject: the core product area in the image.
|
|
1853
1956
|
*
|
|
1854
|
-
* 2. Image background: the rest of the image
|
|
1957
|
+
* 2. Image background: the rest of the image except the product subject.
|
|
1855
1958
|
*
|
|
1856
|
-
* 2. Second, the
|
|
1857
|
-
* ##
|
|
1858
|
-
* | **Original image** | **
|
|
1959
|
+
* 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1960
|
+
* ## Effect comparison
|
|
1961
|
+
* | **Original image** | **Processed image** |
|
|
1859
1962
|
* | --- | --- |
|
|
1860
|
-
* |  |  |
|
|
1861
|
-
* |  |  |
|
|
1964
|
+
* |  |  |
|
|
1862
1965
|
*
|
|
1863
1966
|
* @param request - ImageRemovalProAsyncRequest
|
|
1864
1967
|
* @returns ImageRemovalProAsyncResponse
|
|
@@ -2107,33 +2210,33 @@ class Client extends openapi_core_1.default {
|
|
|
2107
2210
|
return await this.imageRemoveWithOptions(request, runtime);
|
|
2108
2211
|
}
|
|
2109
2212
|
/**
|
|
2110
|
-
*
|
|
2213
|
+
* Intelligently removes unwanted elements from e-commerce images by automatically identifying and erasing text, specific names, transparent text blocks, and promotional stickers. Supports specifying target objects for removal to enable efficient and accurate batch processing and simplify image editing.
|
|
2111
2214
|
*
|
|
2112
2215
|
* @remarks
|
|
2113
2216
|
* ## Scenarios
|
|
2114
|
-
* * **Efficient
|
|
2217
|
+
* * **Efficient e-commerce image processing:**
|
|
2115
2218
|
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2116
2219
|
* * **Multi-platform product information synchronization:**
|
|
2117
|
-
* When merchants
|
|
2220
|
+
* When merchants list products on different e-commerce platforms simultaneously, they can quickly remove specific text and promotional stickers to comply with the image specifications of different platforms.
|
|
2118
2221
|
* * **Marketing material preparation:**
|
|
2119
2222
|
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2120
|
-
* > Note: Merchants or platforms can batch remove
|
|
2223
|
+
* > Note: Merchants or platforms can batch remove impurities in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter images containing text, specific names, transparent text blocks, and promotional stickers, and then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Erasure API focuses on "erasure". By calling them in sequence, you can maximize the erasure effect and reduce "false removals" and "false recognitions".
|
|
2121
2224
|
* ## Features
|
|
2122
|
-
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to
|
|
2225
|
+
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to be removed, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
|
|
2123
2226
|
*
|
|
2124
2227
|
* 1. Image subject: the core product area in the image.
|
|
2125
2228
|
*
|
|
2126
2229
|
* 2. Image background: the rest of the image other than the product subject.
|
|
2127
2230
|
*
|
|
2128
|
-
* 2. Second, the objects to
|
|
2231
|
+
* 2. Second, the objects to be removed support the following three cases:
|
|
2129
2232
|
*
|
|
2130
|
-
* 1. The user selects
|
|
2233
|
+
* 1. The user only selects the type. Supported types include text, specific names, transparent text blocks, and promotional stickers. You can clarify the usage requirements through the following examples for targeted operations.
|
|
2131
2234
|
*
|
|
2132
2235
|
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2133
2236
|
*
|
|
2134
|
-
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple
|
|
2237
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple text strings at a time.
|
|
2135
2238
|
*
|
|
2136
|
-
* Processing flow: The user
|
|
2239
|
+
* Processing flow: The user passes in the original image URL → OCR and VLM models detect the text or image position → Determine the coordinates of the area to be repaired → AI repairs and generates a clean image → Returns the result image URL.
|
|
2137
2240
|
* ## Effect comparison
|
|
2138
2241
|
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2139
2242
|
* | --- | --- | --- |
|
|
@@ -2173,7 +2276,7 @@ class Client extends openapi_core_1.default {
|
|
|
2173
2276
|
* * Does not involve the image subject area
|
|
2174
2277
|
*
|
|
2175
2278
|
*  |
|
|
2176
|
-
* |
|
|
2279
|
+
* | Promotional stickers | * Involves the image subject area
|
|
2177
2280
|
*
|
|
2178
2281
|
* 
|
|
2179
2282
|
*
|
|
@@ -2186,7 +2289,7 @@ class Client extends openapi_core_1.default {
|
|
|
2186
2289
|
*
|
|
2187
2290
|
*  |
|
|
2188
2291
|
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2189
|
-
* | Specified text erasure (supports multiple
|
|
2292
|
+
* | Specified text erasure (supports multiple text strings) |  |  |
|
|
2190
2293
|
*
|
|
2191
2294
|
* @param tmpReq - ImageRemoveAsyncRequest
|
|
2192
2295
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2209,6 +2312,9 @@ class Client extends openapi_core_1.default {
|
|
|
2209
2312
|
request.userTextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
|
|
2210
2313
|
}
|
|
2211
2314
|
let query = {};
|
|
2315
|
+
if (!$dara.isNull(request.bizId)) {
|
|
2316
|
+
query["BizId"] = request.bizId;
|
|
2317
|
+
}
|
|
2212
2318
|
if (!$dara.isNull(request.imageUrl)) {
|
|
2213
2319
|
query["ImageUrl"] = request.imageUrl;
|
|
2214
2320
|
}
|
|
@@ -2247,33 +2353,33 @@ class Client extends openapi_core_1.default {
|
|
|
2247
2353
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveAsyncResponse({}));
|
|
2248
2354
|
}
|
|
2249
2355
|
/**
|
|
2250
|
-
*
|
|
2356
|
+
* Intelligently removes unwanted elements from e-commerce images by automatically identifying and erasing text, specific names, transparent text blocks, and promotional stickers. Supports specifying target objects for removal to enable efficient and accurate batch processing and simplify image editing.
|
|
2251
2357
|
*
|
|
2252
2358
|
* @remarks
|
|
2253
2359
|
* ## Scenarios
|
|
2254
|
-
* * **Efficient
|
|
2360
|
+
* * **Efficient e-commerce image processing:**
|
|
2255
2361
|
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2256
2362
|
* * **Multi-platform product information synchronization:**
|
|
2257
|
-
* When merchants
|
|
2363
|
+
* When merchants list products on different e-commerce platforms simultaneously, they can quickly remove specific text and promotional stickers to comply with the image specifications of different platforms.
|
|
2258
2364
|
* * **Marketing material preparation:**
|
|
2259
2365
|
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2260
|
-
* > Note: Merchants or platforms can batch remove
|
|
2366
|
+
* > Note: Merchants or platforms can batch remove impurities in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter images containing text, specific names, transparent text blocks, and promotional stickers, and then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Erasure API focuses on "erasure". By calling them in sequence, you can maximize the erasure effect and reduce "false removals" and "false recognitions".
|
|
2261
2367
|
* ## Features
|
|
2262
|
-
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to
|
|
2368
|
+
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to be removed, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
|
|
2263
2369
|
*
|
|
2264
2370
|
* 1. Image subject: the core product area in the image.
|
|
2265
2371
|
*
|
|
2266
2372
|
* 2. Image background: the rest of the image other than the product subject.
|
|
2267
2373
|
*
|
|
2268
|
-
* 2. Second, the objects to
|
|
2374
|
+
* 2. Second, the objects to be removed support the following three cases:
|
|
2269
2375
|
*
|
|
2270
|
-
* 1. The user selects
|
|
2376
|
+
* 1. The user only selects the type. Supported types include text, specific names, transparent text blocks, and promotional stickers. You can clarify the usage requirements through the following examples for targeted operations.
|
|
2271
2377
|
*
|
|
2272
2378
|
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2273
2379
|
*
|
|
2274
|
-
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple
|
|
2380
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple text strings at a time.
|
|
2275
2381
|
*
|
|
2276
|
-
* Processing flow: The user
|
|
2382
|
+
* Processing flow: The user passes in the original image URL → OCR and VLM models detect the text or image position → Determine the coordinates of the area to be repaired → AI repairs and generates a clean image → Returns the result image URL.
|
|
2277
2383
|
* ## Effect comparison
|
|
2278
2384
|
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2279
2385
|
* | --- | --- | --- |
|
|
@@ -2313,7 +2419,7 @@ class Client extends openapi_core_1.default {
|
|
|
2313
2419
|
* * Does not involve the image subject area
|
|
2314
2420
|
*
|
|
2315
2421
|
*  |
|
|
2316
|
-
* |
|
|
2422
|
+
* | Promotional stickers | * Involves the image subject area
|
|
2317
2423
|
*
|
|
2318
2424
|
* 
|
|
2319
2425
|
*
|
|
@@ -2326,7 +2432,7 @@ class Client extends openapi_core_1.default {
|
|
|
2326
2432
|
*
|
|
2327
2433
|
*  |
|
|
2328
2434
|
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2329
|
-
* | Specified text erasure (supports multiple
|
|
2435
|
+
* | Specified text erasure (supports multiple text strings) |  |  |
|
|
2330
2436
|
*
|
|
2331
2437
|
* @param request - ImageRemoveAsyncRequest
|
|
2332
2438
|
* @returns ImageRemoveAsyncResponse
|
|
@@ -2449,17 +2555,17 @@ class Client extends openapi_core_1.default {
|
|
|
2449
2555
|
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
2450
2556
|
}
|
|
2451
2557
|
/**
|
|
2452
|
-
* Translates e-commerce images by using the Mixture of Experts (
|
|
2558
|
+
* Translates e-commerce images by using the Mixture of Experts (MoE) architecture. Compared with the Lite and Pro editions, the Plus edition provides higher translation accuracy for multiple minor languages.
|
|
2453
2559
|
*
|
|
2454
2560
|
* @remarks
|
|
2455
2561
|
* ## Scenarios
|
|
2456
2562
|
* Main images and detail images for cross-border e-commerce.
|
|
2457
2563
|
* ## Features
|
|
2458
|
-
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect subject information, such as embedded product
|
|
2564
|
+
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect the subject information, such as the embedded product name, from being translated.
|
|
2459
2565
|
*
|
|
2460
|
-
* * **Brand name protection**: Allows you to specify whether to translate brand
|
|
2566
|
+
* * **Brand name protection**: Allows you to specify whether to translate the brand name in the image. This helps you protect the brand name from being translated.
|
|
2461
2567
|
*
|
|
2462
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF),
|
|
2568
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API operation to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
2463
2569
|
* ## Supported language pairs
|
|
2464
2570
|
* | **No.** | **Source language** | | **Target language** | |
|
|
2465
2571
|
* | --- | --- | --- | --- | --- |
|
|
@@ -2477,8 +2583,8 @@ class Client extends openapi_core_1.default {
|
|
|
2477
2583
|
* | 11 | en | English | de | German |
|
|
2478
2584
|
* | 12 | en | English | pl | Polish |
|
|
2479
2585
|
* ## Preparations and call process
|
|
2480
|
-
* The asynchronous API for
|
|
2481
|
-
* For the asynchronous
|
|
2586
|
+
* The asynchronous API operations for the Plus edition of image translation and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2587
|
+
* For the integration process of asynchronous calls, subscription rules, message formats and encryption protocols, and detailed integration solutions, refer to [Asynchronous API operation call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2482
2588
|
*
|
|
2483
2589
|
* @param request - ImageTranslationPlusAsyncRequest
|
|
2484
2590
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2487,6 +2593,9 @@ class Client extends openapi_core_1.default {
|
|
|
2487
2593
|
async imageTranslationPlusAsyncWithOptions(request, runtime) {
|
|
2488
2594
|
request.validate();
|
|
2489
2595
|
let query = {};
|
|
2596
|
+
if (!$dara.isNull(request.bizId)) {
|
|
2597
|
+
query["BizId"] = request.bizId;
|
|
2598
|
+
}
|
|
2490
2599
|
if (!$dara.isNull(request.glossary)) {
|
|
2491
2600
|
query["Glossary"] = request.glossary;
|
|
2492
2601
|
}
|
|
@@ -2525,17 +2634,17 @@ class Client extends openapi_core_1.default {
|
|
|
2525
2634
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusAsyncResponse({}));
|
|
2526
2635
|
}
|
|
2527
2636
|
/**
|
|
2528
|
-
* Translates e-commerce images by using the Mixture of Experts (
|
|
2637
|
+
* Translates e-commerce images by using the Mixture of Experts (MoE) architecture. Compared with the Lite and Pro editions, the Plus edition provides higher translation accuracy for multiple minor languages.
|
|
2529
2638
|
*
|
|
2530
2639
|
* @remarks
|
|
2531
2640
|
* ## Scenarios
|
|
2532
2641
|
* Main images and detail images for cross-border e-commerce.
|
|
2533
2642
|
* ## Features
|
|
2534
|
-
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect subject information, such as embedded product
|
|
2643
|
+
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect the subject information, such as the embedded product name, from being translated.
|
|
2535
2644
|
*
|
|
2536
|
-
* * **Brand name protection**: Allows you to specify whether to translate brand
|
|
2645
|
+
* * **Brand name protection**: Allows you to specify whether to translate the brand name in the image. This helps you protect the brand name from being translated.
|
|
2537
2646
|
*
|
|
2538
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF),
|
|
2647
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API operation to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
2539
2648
|
* ## Supported language pairs
|
|
2540
2649
|
* | **No.** | **Source language** | | **Target language** | |
|
|
2541
2650
|
* | --- | --- | --- | --- | --- |
|
|
@@ -2553,8 +2662,8 @@ class Client extends openapi_core_1.default {
|
|
|
2553
2662
|
* | 11 | en | English | de | German |
|
|
2554
2663
|
* | 12 | en | English | pl | Polish |
|
|
2555
2664
|
* ## Preparations and call process
|
|
2556
|
-
* The asynchronous API for
|
|
2557
|
-
* For the asynchronous
|
|
2665
|
+
* The asynchronous API operations for the Plus edition of image translation and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2666
|
+
* For the integration process of asynchronous calls, subscription rules, message formats and encryption protocols, and detailed integration solutions, refer to [Asynchronous API operation call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2558
2667
|
*
|
|
2559
2668
|
* @param request - ImageTranslationPlusAsyncRequest
|
|
2560
2669
|
* @returns ImageTranslationPlusAsyncResponse
|
|
@@ -2648,23 +2757,23 @@ class Client extends openapi_core_1.default {
|
|
|
2648
2757
|
return await this.imageTranslationProWithOptions(request, runtime);
|
|
2649
2758
|
}
|
|
2650
2759
|
/**
|
|
2651
|
-
* Translates images by using Image Translation Pro.
|
|
2760
|
+
* Translates images asynchronously by using Image Translation Pro. Designed for e-commerce images, this service integrates multimodal large language models to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language pairs, including bridged language pairs.
|
|
2652
2761
|
*
|
|
2653
2762
|
* @remarks
|
|
2654
2763
|
* ## Scenarios
|
|
2655
2764
|
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2656
2765
|
* ## Features
|
|
2657
|
-
* * Product subject information protection:
|
|
2766
|
+
* * Product subject information protection: You can specify whether to translate the text on the product subject. This helps you protect the subject information, such as the embedded product name, from being translated.
|
|
2658
2767
|
*
|
|
2659
|
-
* *
|
|
2768
|
+
* * Secondary editing after translation: You can specify whether to return layout information such as the position, font, and color of the text. This information can be used for secondary editing when you integrate an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
|
|
2660
2769
|
*
|
|
2661
|
-
* * Brand name protection:
|
|
2770
|
+
* * Brand name protection: You can specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
|
|
2662
2771
|
*
|
|
2663
|
-
* * Translation intervention:
|
|
2772
|
+
* * Translation intervention: You can customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention entries. If you need more, contact the platform for assistance.
|
|
2664
2773
|
* ## Preparations and call process
|
|
2665
|
-
* Image Translation Pro supports both synchronous and asynchronous
|
|
2666
|
-
* The asynchronous APIs for text translation and other capabilities share the result retrieval process,
|
|
2667
|
-
* For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls,
|
|
2774
|
+
* Image Translation Pro supports both synchronous and asynchronous calls. This topic describes the asynchronous call API. For synchronous calls, see [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
|
|
2775
|
+
* The asynchronous APIs for text translation and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2776
|
+
* For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, see [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2668
2777
|
*
|
|
2669
2778
|
* @param request - ImageTranslationProAsyncRequest
|
|
2670
2779
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2673,6 +2782,9 @@ class Client extends openapi_core_1.default {
|
|
|
2673
2782
|
async imageTranslationProAsyncWithOptions(request, runtime) {
|
|
2674
2783
|
request.validate();
|
|
2675
2784
|
let query = {};
|
|
2785
|
+
if (!$dara.isNull(request.bizId)) {
|
|
2786
|
+
query["BizId"] = request.bizId;
|
|
2787
|
+
}
|
|
2676
2788
|
if (!$dara.isNull(request.glossary)) {
|
|
2677
2789
|
query["Glossary"] = request.glossary;
|
|
2678
2790
|
}
|
|
@@ -2711,23 +2823,23 @@ class Client extends openapi_core_1.default {
|
|
|
2711
2823
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProAsyncResponse({}));
|
|
2712
2824
|
}
|
|
2713
2825
|
/**
|
|
2714
|
-
* Translates images by using Image Translation Pro.
|
|
2826
|
+
* Translates images asynchronously by using Image Translation Pro. Designed for e-commerce images, this service integrates multimodal large language models to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language pairs, including bridged language pairs.
|
|
2715
2827
|
*
|
|
2716
2828
|
* @remarks
|
|
2717
2829
|
* ## Scenarios
|
|
2718
2830
|
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2719
2831
|
* ## Features
|
|
2720
|
-
* * Product subject information protection:
|
|
2832
|
+
* * Product subject information protection: You can specify whether to translate the text on the product subject. This helps you protect the subject information, such as the embedded product name, from being translated.
|
|
2721
2833
|
*
|
|
2722
|
-
* *
|
|
2834
|
+
* * Secondary editing after translation: You can specify whether to return layout information such as the position, font, and color of the text. This information can be used for secondary editing when you integrate an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
|
|
2723
2835
|
*
|
|
2724
|
-
* * Brand name protection:
|
|
2836
|
+
* * Brand name protection: You can specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
|
|
2725
2837
|
*
|
|
2726
|
-
* * Translation intervention:
|
|
2838
|
+
* * Translation intervention: You can customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention entries. If you need more, contact the platform for assistance.
|
|
2727
2839
|
* ## Preparations and call process
|
|
2728
|
-
* Image Translation Pro supports both synchronous and asynchronous
|
|
2729
|
-
* The asynchronous APIs for text translation and other capabilities share the result retrieval process,
|
|
2730
|
-
* For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls,
|
|
2840
|
+
* Image Translation Pro supports both synchronous and asynchronous calls. This topic describes the asynchronous call API. For synchronous calls, see [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
|
|
2841
|
+
* The asynchronous APIs for text translation and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2842
|
+
* For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, see [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2731
2843
|
*
|
|
2732
2844
|
* @param request - ImageTranslationProAsyncRequest
|
|
2733
2845
|
* @returns ImageTranslationProAsyncResponse
|
|
@@ -2824,23 +2936,23 @@ class Client extends openapi_core_1.default {
|
|
|
2824
2936
|
return await this.imageTranslationStandardWithOptions(request, runtime);
|
|
2825
2937
|
}
|
|
2826
2938
|
/**
|
|
2827
|
-
* Translates e-commerce
|
|
2939
|
+
* Translates images specifically designed for e-commerce, supporting over 400 language pairs, including bridged pairs. It accurately processes complex text layouts within images and ensures that the translated content matches the image context. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. Additionally, the service returns layer information such as the position, font, and color of text in the image, which facilitates secondary editing of translation results by using image editors.
|
|
2828
2940
|
*
|
|
2829
2941
|
* @remarks
|
|
2830
2942
|
* ## Scenarios
|
|
2831
2943
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2832
2944
|
* ## Features
|
|
2833
|
-
* * **Product subject information protection**: Allows you to specify whether to translate text on the product subject
|
|
2945
|
+
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information from being translated and prevents the translation of embedded information such as product names.
|
|
2834
2946
|
*
|
|
2835
|
-
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image
|
|
2947
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2836
2948
|
*
|
|
2837
|
-
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as
|
|
2949
|
+
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as the position, font, and color of the text. This information can be used to integrate with image editors for secondary editing of translation results. For the release progress of the editor SDK package, refer to platform notifications.
|
|
2838
2950
|
*
|
|
2839
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention
|
|
2951
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API operation to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention entries. If you need more, contact the platform for assistance.
|
|
2840
2952
|
* ## Preparations and call process
|
|
2841
|
-
* * Image Translation
|
|
2842
|
-
* * The asynchronous
|
|
2843
|
-
* * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2953
|
+
* * The standard edition of Image Translation supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API operation. To use synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
|
|
2954
|
+
* * The asynchronous API operations for the standard edition of Image Translation and other features share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2955
|
+
* * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API operation call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2844
2956
|
*
|
|
2845
2957
|
* @param request - ImageTranslationStandardAsyncRequest
|
|
2846
2958
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2849,6 +2961,9 @@ class Client extends openapi_core_1.default {
|
|
|
2849
2961
|
async imageTranslationStandardAsyncWithOptions(request, runtime) {
|
|
2850
2962
|
request.validate();
|
|
2851
2963
|
let query = {};
|
|
2964
|
+
if (!$dara.isNull(request.bizId)) {
|
|
2965
|
+
query["BizId"] = request.bizId;
|
|
2966
|
+
}
|
|
2852
2967
|
if (!$dara.isNull(request.glossary)) {
|
|
2853
2968
|
query["Glossary"] = request.glossary;
|
|
2854
2969
|
}
|
|
@@ -2887,23 +3002,23 @@ class Client extends openapi_core_1.default {
|
|
|
2887
3002
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardAsyncResponse({}));
|
|
2888
3003
|
}
|
|
2889
3004
|
/**
|
|
2890
|
-
* Translates e-commerce
|
|
3005
|
+
* Translates images specifically designed for e-commerce, supporting over 400 language pairs, including bridged pairs. It accurately processes complex text layouts within images and ensures that the translated content matches the image context. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. Additionally, the service returns layer information such as the position, font, and color of text in the image, which facilitates secondary editing of translation results by using image editors.
|
|
2891
3006
|
*
|
|
2892
3007
|
* @remarks
|
|
2893
3008
|
* ## Scenarios
|
|
2894
3009
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2895
3010
|
* ## Features
|
|
2896
|
-
* * **Product subject information protection**: Allows you to specify whether to translate text on the product subject
|
|
3011
|
+
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information from being translated and prevents the translation of embedded information such as product names.
|
|
2897
3012
|
*
|
|
2898
|
-
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image
|
|
3013
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2899
3014
|
*
|
|
2900
|
-
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as
|
|
3015
|
+
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as the position, font, and color of the text. This information can be used to integrate with image editors for secondary editing of translation results. For the release progress of the editor SDK package, refer to platform notifications.
|
|
2901
3016
|
*
|
|
2902
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention
|
|
3017
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API operation to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention entries. If you need more, contact the platform for assistance.
|
|
2903
3018
|
* ## Preparations and call process
|
|
2904
|
-
* * Image Translation
|
|
2905
|
-
* * The asynchronous
|
|
2906
|
-
* * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
3019
|
+
* * The standard edition of Image Translation supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API operation. To use synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
|
|
3020
|
+
* * The asynchronous API operations for the standard edition of Image Translation and other features share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
3021
|
+
* * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API operation call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2907
3022
|
*
|
|
2908
3023
|
* @param request - ImageTranslationStandardAsyncRequest
|
|
2909
3024
|
* @returns ImageTranslationStandardAsyncResponse
|
|
@@ -3815,10 +3930,10 @@ class Client extends openapi_core_1.default {
|
|
|
3815
3930
|
return await this.productHotspotDetectionWithOptions(request, runtime);
|
|
3816
3931
|
}
|
|
3817
3932
|
/**
|
|
3818
|
-
* API name
|
|
3933
|
+
* Queries the result of an asynchronous task. The API name in the POP gateway is QueryAsyncTaskResult.
|
|
3819
3934
|
*
|
|
3820
3935
|
* @remarks
|
|
3821
|
-
* API name
|
|
3936
|
+
* The API name in the POP gateway is QueryAsyncTaskResult.
|
|
3822
3937
|
*
|
|
3823
3938
|
* @param request - QueryAsyncTaskResultRequest
|
|
3824
3939
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3847,10 +3962,10 @@ class Client extends openapi_core_1.default {
|
|
|
3847
3962
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryAsyncTaskResultResponse({}));
|
|
3848
3963
|
}
|
|
3849
3964
|
/**
|
|
3850
|
-
* API name
|
|
3965
|
+
* Queries the result of an asynchronous task. The API name in the POP gateway is QueryAsyncTaskResult.
|
|
3851
3966
|
*
|
|
3852
3967
|
* @remarks
|
|
3853
|
-
* API name
|
|
3968
|
+
* The API name in the POP gateway is QueryAsyncTaskResult.
|
|
3854
3969
|
*
|
|
3855
3970
|
* @param request - QueryAsyncTaskResultRequest
|
|
3856
3971
|
* @returns QueryAsyncTaskResultResponse
|
|
@@ -3859,6 +3974,65 @@ class Client extends openapi_core_1.default {
|
|
|
3859
3974
|
let runtime = new $dara.RuntimeOptions({});
|
|
3860
3975
|
return await this.queryAsyncTaskResultWithOptions(request, runtime);
|
|
3861
3976
|
}
|
|
3977
|
+
/**
|
|
3978
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
3979
|
+
*
|
|
3980
|
+
* @param tmpReq - QueryDisplayKnowledgeRequest
|
|
3981
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3982
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
3983
|
+
*/
|
|
3984
|
+
async queryDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
3985
|
+
tmpReq.validate();
|
|
3986
|
+
let request = new $_model.QueryDisplayKnowledgeShrinkRequest({});
|
|
3987
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3988
|
+
if (!$dara.isNull(tmpReq.statuses)) {
|
|
3989
|
+
request.statusesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statuses, "Statuses", "json");
|
|
3990
|
+
}
|
|
3991
|
+
let query = {};
|
|
3992
|
+
if (!$dara.isNull(request.pageNum)) {
|
|
3993
|
+
query["PageNum"] = request.pageNum;
|
|
3994
|
+
}
|
|
3995
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3996
|
+
query["PageSize"] = request.pageSize;
|
|
3997
|
+
}
|
|
3998
|
+
if (!$dara.isNull(request.ragId)) {
|
|
3999
|
+
query["RagId"] = request.ragId;
|
|
4000
|
+
}
|
|
4001
|
+
if (!$dara.isNull(request.skuId)) {
|
|
4002
|
+
query["SkuId"] = request.skuId;
|
|
4003
|
+
}
|
|
4004
|
+
if (!$dara.isNull(request.skuName)) {
|
|
4005
|
+
query["SkuName"] = request.skuName;
|
|
4006
|
+
}
|
|
4007
|
+
if (!$dara.isNull(request.statusesShrink)) {
|
|
4008
|
+
query["Statuses"] = request.statusesShrink;
|
|
4009
|
+
}
|
|
4010
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4011
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4012
|
+
});
|
|
4013
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4014
|
+
action: "QueryDisplayKnowledge",
|
|
4015
|
+
version: "2026-04-28",
|
|
4016
|
+
protocol: "HTTPS",
|
|
4017
|
+
pathname: "/",
|
|
4018
|
+
method: "POST",
|
|
4019
|
+
authType: "AK",
|
|
4020
|
+
style: "RPC",
|
|
4021
|
+
reqBodyType: "formData",
|
|
4022
|
+
bodyType: "json",
|
|
4023
|
+
});
|
|
4024
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryDisplayKnowledgeResponse({}));
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Performs a paged query on the content of a display knowledge base with paging (synchronization).
|
|
4028
|
+
*
|
|
4029
|
+
* @param request - QueryDisplayKnowledgeRequest
|
|
4030
|
+
* @returns QueryDisplayKnowledgeResponse
|
|
4031
|
+
*/
|
|
4032
|
+
async queryDisplayKnowledge(request) {
|
|
4033
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4034
|
+
return await this.queryDisplayKnowledgeWithOptions(request, runtime);
|
|
4035
|
+
}
|
|
3862
4036
|
/**
|
|
3863
4037
|
* Detects whether an image contains a size chart. (Synchronous)
|
|
3864
4038
|
*
|
|
@@ -4220,105 +4394,105 @@ class Client extends openapi_core_1.default {
|
|
|
4220
4394
|
return await this.sizeChartExtractWithOptions(request, runtime);
|
|
4221
4395
|
}
|
|
4222
4396
|
/**
|
|
4223
|
-
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
4397
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large language models in asynchronous mode.
|
|
4224
4398
|
*
|
|
4225
4399
|
* @remarks
|
|
4226
4400
|
* ## Scenarios
|
|
4227
|
-
* Size charts:
|
|
4228
|
-
* Package weight and dimensions:
|
|
4401
|
+
* Size charts: extracts size charts of apparel categories into text.
|
|
4402
|
+
* Package weight and dimensions: extracts package weight and dimension information from images.
|
|
4229
4403
|
* ## Feature description
|
|
4230
|
-
* The size chart extraction service is based on multimodal
|
|
4231
|
-
* Core capabilities:
|
|
4232
|
-
* ##
|
|
4404
|
+
* The size chart extraction service is based on multimodal large language models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can specify the column names to be recognized, such as Size, Bust, and Length, by using ColumnNameList to achieve precise and targeted extraction. You can also control the output language by using the LanguageModel parameter. Valid values: cn for Chinese and en for English. If you do not specify this parameter, the original language is retained. This service is applicable to scenarios such as text conversion of size charts for apparel categories and batch structuring of package weight and dimension information for commodities.
|
|
4405
|
+
* Core capabilities: You can input an image URL and optional column name configurations to output the structured data of the size chart or package weight and dimensions in the image. The API operation uses the asynchronous task mode (background: true). After you submit the task, a task ID is returned. You must poll the task to obtain the final result. This mode is suitable for processing complex images or handling a large number of calls.
|
|
4406
|
+
* ## Comparison
|
|
4233
4407
|
* | Input image | Output result |
|
|
4234
4408
|
* | --- | --- |
|
|
4235
4409
|
* |  | {
|
|
4236
4410
|
* "SizeChart": [
|
|
4237
4411
|
* {
|
|
4238
|
-
* "
|
|
4412
|
+
* "Size": {
|
|
4239
4413
|
* "value": "S"
|
|
4240
4414
|
* },
|
|
4241
|
-
* "
|
|
4415
|
+
* "Waist": {
|
|
4242
4416
|
* "unit": "CM",
|
|
4243
4417
|
* "value": 58
|
|
4244
4418
|
* },
|
|
4245
|
-
* "
|
|
4419
|
+
* "Skirt length": {
|
|
4246
4420
|
* "unit": "CM",
|
|
4247
4421
|
* "value": 81
|
|
4248
4422
|
* },
|
|
4249
|
-
* "
|
|
4423
|
+
* "Weight recommendation": {
|
|
4250
4424
|
* "unit": "kg",
|
|
4251
4425
|
* "lower_value": 40,
|
|
4252
4426
|
* "upper_value": 47.5
|
|
4253
4427
|
* }
|
|
4254
4428
|
* },
|
|
4255
4429
|
* {
|
|
4256
|
-
* "
|
|
4430
|
+
* "Size": {
|
|
4257
4431
|
* "value": "M"
|
|
4258
4432
|
* },
|
|
4259
|
-
* "
|
|
4433
|
+
* "Waist": {
|
|
4260
4434
|
* "unit": "CM",
|
|
4261
4435
|
* "value": 59
|
|
4262
4436
|
* },
|
|
4263
|
-
* "
|
|
4437
|
+
* "Skirt length": {
|
|
4264
4438
|
* "unit": "CM",
|
|
4265
4439
|
* "value": 82
|
|
4266
4440
|
* },
|
|
4267
|
-
* "
|
|
4441
|
+
* "Weight recommendation": {
|
|
4268
4442
|
* "unit": "kg",
|
|
4269
4443
|
* "lower_value": 45,
|
|
4270
4444
|
* "upper_value": 52.5
|
|
4271
4445
|
* }
|
|
4272
4446
|
* },
|
|
4273
4447
|
* {
|
|
4274
|
-
* "
|
|
4448
|
+
* "Size": {
|
|
4275
4449
|
* "value": "L"
|
|
4276
4450
|
* },
|
|
4277
|
-
* "
|
|
4451
|
+
* "Waist": {
|
|
4278
4452
|
* "unit": "CM",
|
|
4279
4453
|
* "value": 60
|
|
4280
4454
|
* },
|
|
4281
|
-
* "
|
|
4455
|
+
* "Skirt length": {
|
|
4282
4456
|
* "unit": "CM",
|
|
4283
4457
|
* "value": 83
|
|
4284
4458
|
* },
|
|
4285
|
-
* "
|
|
4459
|
+
* "Weight recommendation": {
|
|
4286
4460
|
* "unit": "kg",
|
|
4287
4461
|
* "lower_value": 50,
|
|
4288
4462
|
* "upper_value": 57.5
|
|
4289
4463
|
* }
|
|
4290
4464
|
* },
|
|
4291
4465
|
* {
|
|
4292
|
-
* "
|
|
4466
|
+
* "Size": {
|
|
4293
4467
|
* "value": "XL"
|
|
4294
4468
|
* },
|
|
4295
|
-
* "
|
|
4469
|
+
* "Waist": {
|
|
4296
4470
|
* "unit": "CM",
|
|
4297
4471
|
* "value": 61
|
|
4298
4472
|
* },
|
|
4299
|
-
* "
|
|
4473
|
+
* "Skirt length": {
|
|
4300
4474
|
* "unit": "CM",
|
|
4301
4475
|
* "value": 84
|
|
4302
4476
|
* },
|
|
4303
|
-
* "
|
|
4477
|
+
* "Weight recommendation": {
|
|
4304
4478
|
* "unit": "kg",
|
|
4305
4479
|
* "lower_value": 55,
|
|
4306
4480
|
* "upper_value": 62.5
|
|
4307
4481
|
* }
|
|
4308
4482
|
* },
|
|
4309
4483
|
* {
|
|
4310
|
-
* "
|
|
4484
|
+
* "Size": {
|
|
4311
4485
|
* "value": "2XL"
|
|
4312
4486
|
* },
|
|
4313
|
-
* "
|
|
4487
|
+
* "Waist": {
|
|
4314
4488
|
* "unit": "CM",
|
|
4315
4489
|
* "value": 62
|
|
4316
4490
|
* },
|
|
4317
|
-
* "
|
|
4491
|
+
* "Skirt length": {
|
|
4318
4492
|
* "unit": "CM",
|
|
4319
4493
|
* "value": 85
|
|
4320
4494
|
* },
|
|
4321
|
-
* "
|
|
4495
|
+
* "Weight recommendation": {
|
|
4322
4496
|
* "unit": "kg",
|
|
4323
4497
|
* "lower_value": 60,
|
|
4324
4498
|
* "upper_value": 67.5
|
|
@@ -4351,6 +4525,9 @@ class Client extends openapi_core_1.default {
|
|
|
4351
4525
|
request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
4352
4526
|
}
|
|
4353
4527
|
let query = {};
|
|
4528
|
+
if (!$dara.isNull(request.bizId)) {
|
|
4529
|
+
query["BizId"] = request.bizId;
|
|
4530
|
+
}
|
|
4354
4531
|
if (!$dara.isNull(request.columnNameListShrink)) {
|
|
4355
4532
|
query["ColumnNameList"] = request.columnNameListShrink;
|
|
4356
4533
|
}
|
|
@@ -4377,105 +4554,105 @@ class Client extends openapi_core_1.default {
|
|
|
4377
4554
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractAsyncResponse({}));
|
|
4378
4555
|
}
|
|
4379
4556
|
/**
|
|
4380
|
-
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
4557
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large language models in asynchronous mode.
|
|
4381
4558
|
*
|
|
4382
4559
|
* @remarks
|
|
4383
4560
|
* ## Scenarios
|
|
4384
|
-
* Size charts:
|
|
4385
|
-
* Package weight and dimensions:
|
|
4561
|
+
* Size charts: extracts size charts of apparel categories into text.
|
|
4562
|
+
* Package weight and dimensions: extracts package weight and dimension information from images.
|
|
4386
4563
|
* ## Feature description
|
|
4387
|
-
* The size chart extraction service is based on multimodal
|
|
4388
|
-
* Core capabilities:
|
|
4389
|
-
* ##
|
|
4564
|
+
* The size chart extraction service is based on multimodal large language models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can specify the column names to be recognized, such as Size, Bust, and Length, by using ColumnNameList to achieve precise and targeted extraction. You can also control the output language by using the LanguageModel parameter. Valid values: cn for Chinese and en for English. If you do not specify this parameter, the original language is retained. This service is applicable to scenarios such as text conversion of size charts for apparel categories and batch structuring of package weight and dimension information for commodities.
|
|
4565
|
+
* Core capabilities: You can input an image URL and optional column name configurations to output the structured data of the size chart or package weight and dimensions in the image. The API operation uses the asynchronous task mode (background: true). After you submit the task, a task ID is returned. You must poll the task to obtain the final result. This mode is suitable for processing complex images or handling a large number of calls.
|
|
4566
|
+
* ## Comparison
|
|
4390
4567
|
* | Input image | Output result |
|
|
4391
4568
|
* | --- | --- |
|
|
4392
4569
|
* |  | {
|
|
4393
4570
|
* "SizeChart": [
|
|
4394
4571
|
* {
|
|
4395
|
-
* "
|
|
4572
|
+
* "Size": {
|
|
4396
4573
|
* "value": "S"
|
|
4397
4574
|
* },
|
|
4398
|
-
* "
|
|
4575
|
+
* "Waist": {
|
|
4399
4576
|
* "unit": "CM",
|
|
4400
4577
|
* "value": 58
|
|
4401
4578
|
* },
|
|
4402
|
-
* "
|
|
4579
|
+
* "Skirt length": {
|
|
4403
4580
|
* "unit": "CM",
|
|
4404
4581
|
* "value": 81
|
|
4405
4582
|
* },
|
|
4406
|
-
* "
|
|
4583
|
+
* "Weight recommendation": {
|
|
4407
4584
|
* "unit": "kg",
|
|
4408
4585
|
* "lower_value": 40,
|
|
4409
4586
|
* "upper_value": 47.5
|
|
4410
4587
|
* }
|
|
4411
4588
|
* },
|
|
4412
4589
|
* {
|
|
4413
|
-
* "
|
|
4590
|
+
* "Size": {
|
|
4414
4591
|
* "value": "M"
|
|
4415
4592
|
* },
|
|
4416
|
-
* "
|
|
4593
|
+
* "Waist": {
|
|
4417
4594
|
* "unit": "CM",
|
|
4418
4595
|
* "value": 59
|
|
4419
4596
|
* },
|
|
4420
|
-
* "
|
|
4597
|
+
* "Skirt length": {
|
|
4421
4598
|
* "unit": "CM",
|
|
4422
4599
|
* "value": 82
|
|
4423
4600
|
* },
|
|
4424
|
-
* "
|
|
4601
|
+
* "Weight recommendation": {
|
|
4425
4602
|
* "unit": "kg",
|
|
4426
4603
|
* "lower_value": 45,
|
|
4427
4604
|
* "upper_value": 52.5
|
|
4428
4605
|
* }
|
|
4429
4606
|
* },
|
|
4430
4607
|
* {
|
|
4431
|
-
* "
|
|
4608
|
+
* "Size": {
|
|
4432
4609
|
* "value": "L"
|
|
4433
4610
|
* },
|
|
4434
|
-
* "
|
|
4611
|
+
* "Waist": {
|
|
4435
4612
|
* "unit": "CM",
|
|
4436
4613
|
* "value": 60
|
|
4437
4614
|
* },
|
|
4438
|
-
* "
|
|
4615
|
+
* "Skirt length": {
|
|
4439
4616
|
* "unit": "CM",
|
|
4440
4617
|
* "value": 83
|
|
4441
4618
|
* },
|
|
4442
|
-
* "
|
|
4619
|
+
* "Weight recommendation": {
|
|
4443
4620
|
* "unit": "kg",
|
|
4444
4621
|
* "lower_value": 50,
|
|
4445
4622
|
* "upper_value": 57.5
|
|
4446
4623
|
* }
|
|
4447
4624
|
* },
|
|
4448
4625
|
* {
|
|
4449
|
-
* "
|
|
4626
|
+
* "Size": {
|
|
4450
4627
|
* "value": "XL"
|
|
4451
4628
|
* },
|
|
4452
|
-
* "
|
|
4629
|
+
* "Waist": {
|
|
4453
4630
|
* "unit": "CM",
|
|
4454
4631
|
* "value": 61
|
|
4455
4632
|
* },
|
|
4456
|
-
* "
|
|
4633
|
+
* "Skirt length": {
|
|
4457
4634
|
* "unit": "CM",
|
|
4458
4635
|
* "value": 84
|
|
4459
4636
|
* },
|
|
4460
|
-
* "
|
|
4637
|
+
* "Weight recommendation": {
|
|
4461
4638
|
* "unit": "kg",
|
|
4462
4639
|
* "lower_value": 55,
|
|
4463
4640
|
* "upper_value": 62.5
|
|
4464
4641
|
* }
|
|
4465
4642
|
* },
|
|
4466
4643
|
* {
|
|
4467
|
-
* "
|
|
4644
|
+
* "Size": {
|
|
4468
4645
|
* "value": "2XL"
|
|
4469
4646
|
* },
|
|
4470
|
-
* "
|
|
4647
|
+
* "Waist": {
|
|
4471
4648
|
* "unit": "CM",
|
|
4472
4649
|
* "value": 62
|
|
4473
4650
|
* },
|
|
4474
|
-
* "
|
|
4651
|
+
* "Skirt length": {
|
|
4475
4652
|
* "unit": "CM",
|
|
4476
4653
|
* "value": 85
|
|
4477
4654
|
* },
|
|
4478
|
-
* "
|
|
4655
|
+
* "Weight recommendation": {
|
|
4479
4656
|
* "unit": "kg",
|
|
4480
4657
|
* "lower_value": 60,
|
|
4481
4658
|
* "upper_value": 67.5
|
|
@@ -4820,36 +4997,36 @@ class Client extends openapi_core_1.default {
|
|
|
4820
4997
|
return await this.textTranslateWithOptions(request, runtime);
|
|
4821
4998
|
}
|
|
4822
4999
|
/**
|
|
4823
|
-
*
|
|
5000
|
+
* Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
|
|
4824
5001
|
*
|
|
4825
5002
|
* @remarks
|
|
4826
|
-
* ##
|
|
4827
|
-
* *
|
|
5003
|
+
* ## Scenarios
|
|
5004
|
+
* * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
|
|
4828
5005
|
*
|
|
4829
|
-
* *
|
|
5006
|
+
* * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
|
|
4830
5007
|
*
|
|
4831
|
-
* *
|
|
5008
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
4832
5009
|
*
|
|
4833
|
-
* *
|
|
5010
|
+
* * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
|
|
4834
5011
|
*
|
|
4835
|
-
*
|
|
4836
|
-
* ##
|
|
4837
|
-
* *
|
|
5012
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
5013
|
+
* ## Features
|
|
5014
|
+
* * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
4838
5015
|
*
|
|
4839
|
-
* *
|
|
5016
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
4840
5017
|
*
|
|
4841
|
-
* *
|
|
5018
|
+
* * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
4842
5019
|
*
|
|
4843
|
-
* *
|
|
4844
|
-
* |
|
|
5020
|
+
* * **Translation quality comparison**
|
|
5021
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
4845
5022
|
* | --- | --- | --- | --- | --- |
|
|
4846
|
-
* | 75mm
|
|
4847
|
-
* | New
|
|
4848
|
-
* | Men
|
|
4849
|
-
* ##
|
|
4850
|
-
*
|
|
4851
|
-
*
|
|
4852
|
-
*
|
|
5023
|
+
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
5024
|
+
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
|
|
5025
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
|
|
5026
|
+
* ## Preparations and invocation flow
|
|
5027
|
+
* Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
|
|
5028
|
+
* The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
5029
|
+
* For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
4853
5030
|
*
|
|
4854
5031
|
* @param tmpReq - TextTranslateAsyncRequest
|
|
4855
5032
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4904,36 +5081,36 @@ class Client extends openapi_core_1.default {
|
|
|
4904
5081
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
|
|
4905
5082
|
}
|
|
4906
5083
|
/**
|
|
4907
|
-
*
|
|
5084
|
+
* Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
|
|
4908
5085
|
*
|
|
4909
5086
|
* @remarks
|
|
4910
|
-
* ##
|
|
4911
|
-
* *
|
|
5087
|
+
* ## Scenarios
|
|
5088
|
+
* * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
|
|
4912
5089
|
*
|
|
4913
|
-
* *
|
|
5090
|
+
* * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
|
|
4914
5091
|
*
|
|
4915
|
-
* *
|
|
5092
|
+
* * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
|
|
4916
5093
|
*
|
|
4917
|
-
* *
|
|
5094
|
+
* * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
|
|
4918
5095
|
*
|
|
4919
|
-
*
|
|
4920
|
-
* ##
|
|
4921
|
-
* *
|
|
5096
|
+
* The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
|
|
5097
|
+
* ## Features
|
|
5098
|
+
* * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
4922
5099
|
*
|
|
4923
|
-
* *
|
|
5100
|
+
* * **Supported text formats** The model supports text and HTML formats.
|
|
4924
5101
|
*
|
|
4925
|
-
* *
|
|
5102
|
+
* * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
4926
5103
|
*
|
|
4927
|
-
* *
|
|
4928
|
-
* |
|
|
5104
|
+
* * **Translation quality comparison**
|
|
5105
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
4929
5106
|
* | --- | --- | --- | --- | --- |
|
|
4930
|
-
* | 75mm
|
|
4931
|
-
* | New
|
|
4932
|
-
* | Men
|
|
4933
|
-
* ##
|
|
4934
|
-
*
|
|
4935
|
-
*
|
|
4936
|
-
*
|
|
5107
|
+
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
5108
|
+
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable punctuation |
|
|
5109
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
|
|
5110
|
+
* ## Preparations and invocation flow
|
|
5111
|
+
* Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
|
|
5112
|
+
* The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
5113
|
+
* For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
4937
5114
|
*
|
|
4938
5115
|
* @param request - TextTranslateAsyncRequest
|
|
4939
5116
|
* @returns TextTranslateAsyncResponse
|
|
@@ -4942,6 +5119,53 @@ class Client extends openapi_core_1.default {
|
|
|
4942
5119
|
let runtime = new $dara.RuntimeOptions({});
|
|
4943
5120
|
return await this.textTranslateAsyncWithOptions(request, runtime);
|
|
4944
5121
|
}
|
|
5122
|
+
/**
|
|
5123
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5124
|
+
*
|
|
5125
|
+
* @param tmpReq - UpdateDisplayKnowledgeRequest
|
|
5126
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5127
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5128
|
+
*/
|
|
5129
|
+
async updateDisplayKnowledgeWithOptions(tmpReq, runtime) {
|
|
5130
|
+
tmpReq.validate();
|
|
5131
|
+
let request = new $_model.UpdateDisplayKnowledgeShrinkRequest({});
|
|
5132
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
5133
|
+
if (!$dara.isNull(tmpReq.records)) {
|
|
5134
|
+
request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
|
|
5135
|
+
}
|
|
5136
|
+
let query = {};
|
|
5137
|
+
if (!$dara.isNull(request.ragId)) {
|
|
5138
|
+
query["RagId"] = request.ragId;
|
|
5139
|
+
}
|
|
5140
|
+
if (!$dara.isNull(request.recordsShrink)) {
|
|
5141
|
+
query["Records"] = request.recordsShrink;
|
|
5142
|
+
}
|
|
5143
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5144
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5145
|
+
});
|
|
5146
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5147
|
+
action: "UpdateDisplayKnowledge",
|
|
5148
|
+
version: "2026-04-28",
|
|
5149
|
+
protocol: "HTTPS",
|
|
5150
|
+
pathname: "/",
|
|
5151
|
+
method: "POST",
|
|
5152
|
+
authType: "AK",
|
|
5153
|
+
style: "RPC",
|
|
5154
|
+
reqBodyType: "formData",
|
|
5155
|
+
bodyType: "json",
|
|
5156
|
+
});
|
|
5157
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDisplayKnowledgeResponse({}));
|
|
5158
|
+
}
|
|
5159
|
+
/**
|
|
5160
|
+
* Synchronously updates the content of a display knowledge base in batches.
|
|
5161
|
+
*
|
|
5162
|
+
* @param request - UpdateDisplayKnowledgeRequest
|
|
5163
|
+
* @returns UpdateDisplayKnowledgeResponse
|
|
5164
|
+
*/
|
|
5165
|
+
async updateDisplayKnowledge(request) {
|
|
5166
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5167
|
+
return await this.updateDisplayKnowledgeWithOptions(request, runtime);
|
|
5168
|
+
}
|
|
4945
5169
|
/**
|
|
4946
5170
|
* The e-commerce AI video generation agent is designed for e-commerce merchants and platforms. Based on product main images, titles, and selling points, it automatically generates 5- to 30-second product showcase short videos to help customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P. You can invoke single products quickly and generate multiple products in batches, meeting the needs of daily operations and large-scale product content production. It currently overwrites all clothing categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to core e-commerce categories such as skincare, cosmetics, food and beverages, and home appliances.
|
|
4947
5171
|
*
|
|
@@ -5035,28 +5259,28 @@ class Client extends openapi_core_1.default {
|
|
|
5035
5259
|
return await this.videoGenerationWithOptions(request, runtime);
|
|
5036
5260
|
}
|
|
5037
5261
|
/**
|
|
5038
|
-
* Translates
|
|
5262
|
+
* Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the TaskId and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5039
5263
|
*
|
|
5040
5264
|
* @remarks
|
|
5041
5265
|
* ## Product introduction
|
|
5042
|
-
* The video translation API translates speech and on-screen text in
|
|
5043
|
-
*
|
|
5266
|
+
* The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5267
|
+
* The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the TaskId and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5044
5268
|
* ## Scenarios
|
|
5045
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
|
|
5269
|
+
* * **Cross-border e-commerce video localization**: Translates the speech subtitles and selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
|
|
5046
5270
|
*
|
|
5047
|
-
* * **International social media marketing**: Localizes on-screen text
|
|
5271
|
+
* * **International social media marketing**: Localizes speech subtitles and on-screen text for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5048
5272
|
*
|
|
5049
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages
|
|
5273
|
+
* * **Global brand advertising**: Automatically generates video versions in the corresponding languages based on the delivery regions to reduce manual production costs.
|
|
5050
5274
|
*
|
|
5051
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5275
|
+
* * **Training and product instructions**: Translates the speech subtitles and on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5052
5276
|
* ## Features
|
|
5053
5277
|
* | Feature | Identifier | Description |
|
|
5054
5278
|
* | --- | --- | --- |
|
|
5055
|
-
* | Speech
|
|
5056
|
-
* | On-screen text translation | visual | Translates
|
|
5057
|
-
* Speech
|
|
5058
|
-
* On-screen text translation (visual) targets recognizable
|
|
5059
|
-
* When both speech and visual are selected, the speech
|
|
5279
|
+
* | Speech subtitle translation | speech | Translates the video speech into target language dubbing. You can choose to erase the original subtitles only or replace them with translated subtitles. By default, the original subtitles are not processed and no new subtitles are added. |
|
|
5280
|
+
* | On-screen text translation | visual | Translates the source language text in the video frames, or erases the on-screen text without translation. You can choose to erase brand logos. |
|
|
5281
|
+
* Speech subtitle translation (speech) generates target language dubbing based on the spoken content in the video, processes the subtitles based on the original subtitle processing option, and synthesizes the final video. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content. Replacing with translated subtitles erases the original subtitles first and then adds subtitles synchronized with the translated speech.
|
|
5282
|
+
* On-screen text translation (visual) targets recognizable original video language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and does not require the text to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5283
|
+
* When both speech and visual are selected, the speech subtitle translation is completed and the video is synthesized first, and then the on-screen text processing is performed on this video. The translated dubbing is retained, and a final video is output. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are erased or added during the speech subtitle phase, and subsequent on-screen text processing may still change the original subtitles. Subtitles that have been replaced with translated subtitles are retained during subsequent on-screen text processing.
|
|
5060
5284
|
*
|
|
5061
5285
|
* @param tmpReq - VideoTranslationRequest
|
|
5062
5286
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5113,28 +5337,28 @@ class Client extends openapi_core_1.default {
|
|
|
5113
5337
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
|
|
5114
5338
|
}
|
|
5115
5339
|
/**
|
|
5116
|
-
* Translates
|
|
5340
|
+
* Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the TaskId and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5117
5341
|
*
|
|
5118
5342
|
* @remarks
|
|
5119
5343
|
* ## Product introduction
|
|
5120
|
-
* The video translation API translates speech and on-screen text in
|
|
5121
|
-
*
|
|
5344
|
+
* The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5345
|
+
* The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the TaskId and poll the task status by calling the query API until the task is completed and the result is returned.
|
|
5122
5346
|
* ## Scenarios
|
|
5123
|
-
* * **Cross-border e-commerce video localization**: Translates selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
|
|
5347
|
+
* * **Cross-border e-commerce video localization**: Translates the speech subtitles and selling point text in product introduction videos into the language of the target market to promote products on overseas platforms.
|
|
5124
5348
|
*
|
|
5125
|
-
* * **International social media marketing**: Localizes on-screen text
|
|
5349
|
+
* * **International social media marketing**: Localizes speech subtitles and on-screen text for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
5126
5350
|
*
|
|
5127
|
-
* * **Global brand advertising**: Automatically generates video versions in the languages
|
|
5351
|
+
* * **Global brand advertising**: Automatically generates video versions in the corresponding languages based on the delivery regions to reduce manual production costs.
|
|
5128
5352
|
*
|
|
5129
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5353
|
+
* * **Training and product instructions**: Translates the speech subtitles and on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5130
5354
|
* ## Features
|
|
5131
5355
|
* | Feature | Identifier | Description |
|
|
5132
5356
|
* | --- | --- | --- |
|
|
5133
|
-
* | Speech
|
|
5134
|
-
* | On-screen text translation | visual | Translates
|
|
5135
|
-
* Speech
|
|
5136
|
-
* On-screen text translation (visual) targets recognizable
|
|
5137
|
-
* When both speech and visual are selected, the speech
|
|
5357
|
+
* | Speech subtitle translation | speech | Translates the video speech into target language dubbing. You can choose to erase the original subtitles only or replace them with translated subtitles. By default, the original subtitles are not processed and no new subtitles are added. |
|
|
5358
|
+
* | On-screen text translation | visual | Translates the source language text in the video frames, or erases the on-screen text without translation. You can choose to erase brand logos. |
|
|
5359
|
+
* Speech subtitle translation (speech) generates target language dubbing based on the spoken content in the video, processes the subtitles based on the original subtitle processing option, and synthesizes the final video. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content. Replacing with translated subtitles erases the original subtitles first and then adds subtitles synchronized with the translated speech.
|
|
5360
|
+
* On-screen text translation (visual) targets recognizable original video language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and does not require the text to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5361
|
+
* When both speech and visual are selected, the speech subtitle translation is completed and the video is synthesized first, and then the on-screen text processing is performed on this video. The translated dubbing is retained, and a final video is output. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are erased or added during the speech subtitle phase, and subsequent on-screen text processing may still change the original subtitles. Subtitles that have been replaced with translated subtitles are retained during subsequent on-screen text processing.
|
|
5138
5362
|
*
|
|
5139
5363
|
* @param request - VideoTranslationRequest
|
|
5140
5364
|
* @returns VideoTranslationResponse
|