@alicloud/aidge20260428 5.8.0 → 5.9.0
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 +1458 -297
- package/dist/client.js +2004 -305
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +4 -4
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +24 -16
- package/dist/models/EcomVideoRecreationRequest.js +2 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +5 -5
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncRequest.d.ts +59 -0
- package/dist/models/ImageMattingAsyncRequest.js +66 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponse.d.ts +19 -0
- package/dist/models/ImageMattingAsyncResponse.js +69 -0
- package/dist/models/ImageMattingAsyncResponse.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageMattingAsyncResponseBody.js +88 -0
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncRequest.js +78 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRecognitionAsyncResponse.js +69 -0
- package/dist/models/ImageRecognitionAsyncResponse.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js +88 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +72 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +23 -0
- package/dist/models/ImageRemovalProAsyncRequest.js +58 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProAsyncResponse.js +69 -0
- package/dist/models/ImageRemovalProAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncRequest.js +82 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemoveAsyncResponse.js +69 -0
- package/dist/models/ImageRemoveAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +70 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationProAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationProAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationProAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +12 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +4 -2
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +75 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationStandardRequest.d.ts +11 -7
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionLiteRequest.d.ts +23 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js +58 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +239 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js +229 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js +58 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js +69 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +258 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js +230 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js +58 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js +69 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +263 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js +235 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +197 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js +178 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -1
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +0 -19
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -1
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncRequest.js +65 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponse.d.ts +19 -0
- package/dist/models/SizeChartExtractAsyncResponse.js +69 -0
- package/dist/models/SizeChartExtractAsyncResponse.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +70 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js +88 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +62 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +23 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js +58 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponse.d.ts +19 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js +69 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +190 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js +199 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncRequest.js +75 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponse.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponse.js +69 -0
- package/dist/models/TextTranslateAsyncResponse.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +51 -0
- package/dist/models/TextTranslateAsyncResponseBody.js +88 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js +72 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +10 -10
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +10 -10
- package/dist/models/VideoGenerationRequest.d.ts +21 -12
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationRequest.d.ts +36 -6
- package/dist/models/VideoTranslationRequest.js +8 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationShrinkRequest.d.ts +36 -6
- package/dist/models/VideoTranslationShrinkRequest.js +8 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +89 -0
- package/dist/models/model.js +184 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2207 -407
- package/src/models/DocumentTranslateRequest.ts +4 -4
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +26 -16
- package/src/models/EcomVideoRecreationResponseBody.ts +5 -5
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/ImageMattingAsyncRequest.ts +80 -0
- package/src/models/ImageMattingAsyncResponse.ts +40 -0
- package/src/models/ImageMattingAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncRequest.ts +134 -0
- package/src/models/ImageRecognitionAsyncResponse.ts +40 -0
- package/src/models/ImageRecognitionAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +128 -0
- package/src/models/ImageRemovalProAsyncRequest.ts +36 -0
- package/src/models/ImageRemovalProAsyncResponse.ts +40 -0
- package/src/models/ImageRemovalProAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncRequest.ts +96 -0
- package/src/models/ImageRemoveAsyncResponse.ts +40 -0
- package/src/models/ImageRemoveAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +84 -0
- package/src/models/ImageTranslationPlusAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationPlusAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationProAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationProAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProRequest.ts +12 -8
- package/src/models/ImageTranslationProResponseBody.ts +4 -2
- package/src/models/ImageTranslationStandardAsyncRequest.ts +100 -0
- package/src/models/ImageTranslationStandardAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationStandardRequest.ts +11 -7
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
- package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
- package/src/models/MerchandisePriceTagDetectionRequest.ts +36 -0
- package/src/models/MerchandisePriceTagDetectionResponse.ts +40 -0
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +387 -0
- package/src/models/MerchandiseSceneDetectionRequest.ts +36 -0
- package/src/models/MerchandiseSceneDetectionResponse.ts +40 -0
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +397 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +292 -0
- package/src/models/PetHealthAnalysisRequest.ts +2 -10
- package/src/models/PetHealthAnalysisResponseBody.ts +0 -19
- package/src/models/PetHealthAnalysisShrinkRequest.ts +2 -10
- package/src/models/SizeChartExtractAsyncRequest.ts +56 -0
- package/src/models/SizeChartExtractAsyncResponse.ts +40 -0
- package/src/models/SizeChartExtractAsyncResponseBody.ts +104 -0
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +53 -0
- package/src/models/StorefrontSceneRecognitionRequest.ts +36 -0
- package/src/models/StorefrontSceneRecognitionResponse.ts +40 -0
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +297 -0
- package/src/models/TextTranslateAsyncRequest.ts +86 -0
- package/src/models/TextTranslateAsyncResponse.ts +40 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +85 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +83 -0
- package/src/models/TextTranslateRequest.ts +10 -10
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +10 -10
- package/src/models/VideoGenerationRequest.ts +21 -12
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VideoTranslationRequest.ts +44 -6
- package/src/models/VideoTranslationResponseBody.ts +5 -5
- package/src/models/VideoTranslationShrinkRequest.ts +44 -6
- package/src/models/model.ts +89 -0
package/dist/client.js
CHANGED
|
@@ -745,8 +745,7 @@ class Client extends openapi_core_1.default {
|
|
|
745
745
|
return await this.diduiAreaDeductionProWithOptions(request, runtime);
|
|
746
746
|
}
|
|
747
747
|
/**
|
|
748
|
-
* Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
|
|
749
|
-
* Excels in the following areas:
|
|
748
|
+
* Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
750
749
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
751
750
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
752
751
|
*
|
|
@@ -757,13 +756,13 @@ class Client extends openapi_core_1.default {
|
|
|
757
756
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
758
757
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
759
758
|
* ## Common scenarios
|
|
760
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
759
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
761
760
|
* ## Functions and features
|
|
762
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
763
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios
|
|
761
|
+
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
762
|
+
* - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
|
|
764
763
|
* - Supports high-fidelity layout restoration after translation.
|
|
765
764
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
766
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding
|
|
765
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. If you need more, contact the platform for assistance.
|
|
767
766
|
*
|
|
768
767
|
* @param request - DocumentTranslateRequest
|
|
769
768
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -801,8 +800,7 @@ class Client extends openapi_core_1.default {
|
|
|
801
800
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
|
|
802
801
|
}
|
|
803
802
|
/**
|
|
804
|
-
* Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
|
|
805
|
-
* Excels in the following areas:
|
|
803
|
+
* Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
806
804
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
807
805
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
808
806
|
*
|
|
@@ -813,13 +811,13 @@ class Client extends openapi_core_1.default {
|
|
|
813
811
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
814
812
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
815
813
|
* ## Common scenarios
|
|
816
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
814
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
817
815
|
* ## Functions and features
|
|
818
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
819
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios
|
|
816
|
+
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
817
|
+
* - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
|
|
820
818
|
* - Supports high-fidelity layout restoration after translation.
|
|
821
819
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
822
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding
|
|
820
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. If you need more, contact the platform for assistance.
|
|
823
821
|
*
|
|
824
822
|
* @param request - DocumentTranslateRequest
|
|
825
823
|
* @returns DocumentTranslateResponse
|
|
@@ -829,30 +827,45 @@ class Client extends openapi_core_1.default {
|
|
|
829
827
|
return await this.documentTranslateWithOptions(request, runtime);
|
|
830
828
|
}
|
|
831
829
|
/**
|
|
832
|
-
*
|
|
830
|
+
* Creates an asynchronous task for e-commerce video variation generation, an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
|
|
833
831
|
*
|
|
834
832
|
* @remarks
|
|
835
|
-
* ## **Product
|
|
836
|
-
* E-commerce
|
|
833
|
+
* ## **Product introduction**
|
|
834
|
+
* E-commerce video variation generation is an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
|
|
837
835
|
* ## **Scenarios**
|
|
838
|
-
* - **Video asset
|
|
839
|
-
* - **
|
|
840
|
-
* - **Product
|
|
841
|
-
* - **Multi-selling
|
|
842
|
-
* ## **
|
|
843
|
-
* ### **Core
|
|
844
|
-
*
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
*
|
|
850
|
-
*
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
*
|
|
836
|
+
* - **Video asset variation generation:** Uses an existing e-commerce video as a template and replaces only specified products or persons in the video, preserving the original camera angles, rhythms, and marketing expressions as much as possible. This is suitable for producing assets with multiple SKUs, models, regions, and versions.
|
|
837
|
+
* - **Quick asset generation for new products:** For newly launched products, this reduces the need for live-action shooting, studio setup, post-production editing, and repetitive production. It quickly deploys video assets for new products, helping merchants shorten the launch cycle from spotting a popular video to breaking down the script and shooting new content.
|
|
838
|
+
* - **Product explanation and selling point expression:** Suitable for products such as apparel, beauty and personal care, food and beverage, home and daily necessities, 3C digital products, and small home appliances. It can replicate the explanation structure, display actions, and camera rhythms based on the selling points of the original video to generate explanation videos tailored for the conversion of new products.
|
|
839
|
+
* - **Multi-selling point and multi-version testing:** Quickly generates multiple versions based on different product selling points, target audiences, scripts, camera angles, and visual styles. This supports merchants in conducting content testing and iterating on delivered assets.
|
|
840
|
+
* ## **Feature overview**
|
|
841
|
+
* ### **Core features**
|
|
842
|
+
* * **Supports two replacement modes:**
|
|
843
|
+
*
|
|
844
|
+
* * **Product replacement (**`product_replacement`**)**: Retains the original video host\\"s identity, actions, scene, and sales structure, and replaces the original product with the target product.
|
|
845
|
+
*
|
|
846
|
+
* * **Person replacement (**`person_replacement`**)**: Retains the original product, actions, scene, and sales structure, and replaces the person on camera with the target person from a reference image or description.
|
|
847
|
+
*
|
|
848
|
+
* * **Supports two generation modes:**
|
|
849
|
+
*
|
|
850
|
+
* * **Reference generation (**`reference`**)**: 1:1 replication. Uses the original video as a complete reference to automatically generate a new video with the same duration as the original video. It retains the original script, storyboard, actions, scene, and rhythm, and only performs targeted replacement of specified content such as persons or products.
|
|
851
|
+
*
|
|
852
|
+
* * **Rebuild generation (**`rebuild`**)**: Breaks down the script, storyboard, and key elements of the original video, retains only core content such as specified persons or products, and then redesigns and generates a new video. It is not limited by the duration of the original video and supports inputting a target duration.
|
|
853
|
+
*
|
|
854
|
+
* * **Fully automated end-to-end generation with zero prompt engineering required**: Only requires the reference video and target product or person images. The system automatically completes the entire process of video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
|
|
855
|
+
*
|
|
856
|
+
* * **Product understanding and information structuring**: Identifies product categories, appearance, materials, colors, structures, and key components, and combines them with the titles, attributes, and selling points provided by the merchant to generate usable video expression information.
|
|
857
|
+
*
|
|
858
|
+
* * **Template video element replacement**: Supports replacing products or persons within the authorized scope, and defines the replacement scope and protection scope to minimize changes in non-target areas.
|
|
859
|
+
*
|
|
860
|
+
* * **Product subject consistency**: Maintains the stability of the product\\"s shape, color, texture, pattern, packaging, and logo as much as possible across different camera angles, perspectives, actions, and scenes.
|
|
861
|
+
*
|
|
862
|
+
* * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
|
|
863
|
+
*
|
|
864
|
+
* * **Selling point script and storyboard replication**: Replicates the selling point planning, video structure, camera sequence, display actions, voiceover content, and ending style based on the original video.
|
|
865
|
+
*
|
|
866
|
+
* * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
|
|
867
|
+
*
|
|
868
|
+
* * **Quality verification and result feedback**: Performs multi-dimensional checks on the product subject, person, clothing, text, image integrity, audio, and overall usability, and outputs result information for manual review.
|
|
856
869
|
*
|
|
857
870
|
* @param tmpReq - EcomVideoRecreationRequest
|
|
858
871
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -892,30 +905,45 @@ class Client extends openapi_core_1.default {
|
|
|
892
905
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.EcomVideoRecreationResponse({}));
|
|
893
906
|
}
|
|
894
907
|
/**
|
|
895
|
-
*
|
|
908
|
+
* Creates an asynchronous task for e-commerce video variation generation, an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
|
|
896
909
|
*
|
|
897
910
|
* @remarks
|
|
898
|
-
* ## **Product
|
|
899
|
-
* E-commerce
|
|
911
|
+
* ## **Product introduction**
|
|
912
|
+
* E-commerce video variation generation is an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
|
|
900
913
|
* ## **Scenarios**
|
|
901
|
-
* - **Video asset
|
|
902
|
-
* - **
|
|
903
|
-
* - **Product
|
|
904
|
-
* - **Multi-selling
|
|
905
|
-
* ## **
|
|
906
|
-
* ### **Core
|
|
907
|
-
*
|
|
908
|
-
*
|
|
909
|
-
*
|
|
910
|
-
*
|
|
911
|
-
*
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
*
|
|
918
|
-
*
|
|
914
|
+
* - **Video asset variation generation:** Uses an existing e-commerce video as a template and replaces only specified products or persons in the video, preserving the original camera angles, rhythms, and marketing expressions as much as possible. This is suitable for producing assets with multiple SKUs, models, regions, and versions.
|
|
915
|
+
* - **Quick asset generation for new products:** For newly launched products, this reduces the need for live-action shooting, studio setup, post-production editing, and repetitive production. It quickly deploys video assets for new products, helping merchants shorten the launch cycle from spotting a popular video to breaking down the script and shooting new content.
|
|
916
|
+
* - **Product explanation and selling point expression:** Suitable for products such as apparel, beauty and personal care, food and beverage, home and daily necessities, 3C digital products, and small home appliances. It can replicate the explanation structure, display actions, and camera rhythms based on the selling points of the original video to generate explanation videos tailored for the conversion of new products.
|
|
917
|
+
* - **Multi-selling point and multi-version testing:** Quickly generates multiple versions based on different product selling points, target audiences, scripts, camera angles, and visual styles. This supports merchants in conducting content testing and iterating on delivered assets.
|
|
918
|
+
* ## **Feature overview**
|
|
919
|
+
* ### **Core features**
|
|
920
|
+
* * **Supports two replacement modes:**
|
|
921
|
+
*
|
|
922
|
+
* * **Product replacement (**`product_replacement`**)**: Retains the original video host\\"s identity, actions, scene, and sales structure, and replaces the original product with the target product.
|
|
923
|
+
*
|
|
924
|
+
* * **Person replacement (**`person_replacement`**)**: Retains the original product, actions, scene, and sales structure, and replaces the person on camera with the target person from a reference image or description.
|
|
925
|
+
*
|
|
926
|
+
* * **Supports two generation modes:**
|
|
927
|
+
*
|
|
928
|
+
* * **Reference generation (**`reference`**)**: 1:1 replication. Uses the original video as a complete reference to automatically generate a new video with the same duration as the original video. It retains the original script, storyboard, actions, scene, and rhythm, and only performs targeted replacement of specified content such as persons or products.
|
|
929
|
+
*
|
|
930
|
+
* * **Rebuild generation (**`rebuild`**)**: Breaks down the script, storyboard, and key elements of the original video, retains only core content such as specified persons or products, and then redesigns and generates a new video. It is not limited by the duration of the original video and supports inputting a target duration.
|
|
931
|
+
*
|
|
932
|
+
* * **Fully automated end-to-end generation with zero prompt engineering required**: Only requires the reference video and target product or person images. The system automatically completes the entire process of video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
|
|
933
|
+
*
|
|
934
|
+
* * **Product understanding and information structuring**: Identifies product categories, appearance, materials, colors, structures, and key components, and combines them with the titles, attributes, and selling points provided by the merchant to generate usable video expression information.
|
|
935
|
+
*
|
|
936
|
+
* * **Template video element replacement**: Supports replacing products or persons within the authorized scope, and defines the replacement scope and protection scope to minimize changes in non-target areas.
|
|
937
|
+
*
|
|
938
|
+
* * **Product subject consistency**: Maintains the stability of the product\\"s shape, color, texture, pattern, packaging, and logo as much as possible across different camera angles, perspectives, actions, and scenes.
|
|
939
|
+
*
|
|
940
|
+
* * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
|
|
941
|
+
*
|
|
942
|
+
* * **Selling point script and storyboard replication**: Replicates the selling point planning, video structure, camera sequence, display actions, voiceover content, and ending style based on the original video.
|
|
943
|
+
*
|
|
944
|
+
* * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
|
|
945
|
+
*
|
|
946
|
+
* * **Quality verification and result feedback**: Performs multi-dimensional checks on the product subject, person, clothing, text, image integrity, audio, and overall usability, and outputs result information for manual review.
|
|
919
947
|
*
|
|
920
948
|
* @param request - EcomVideoRecreationRequest
|
|
921
949
|
* @returns EcomVideoRecreationResponse
|
|
@@ -1167,6 +1195,103 @@ class Client extends openapi_core_1.default {
|
|
|
1167
1195
|
let runtime = new $dara.RuntimeOptions({});
|
|
1168
1196
|
return await this.imageMattingWithOptions(request, runtime);
|
|
1169
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Extracts the salient subject from an image, separates it from the background, and returns the subject image without the background. It also provides multiple background options and custom size options to optimize product display.
|
|
1200
|
+
*
|
|
1201
|
+
* @remarks
|
|
1202
|
+
* # Scenarios
|
|
1203
|
+
* * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
|
|
1204
|
+
*
|
|
1205
|
+
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, which improves the production efficiency of advertising images and marketing posters.
|
|
1206
|
+
* # Features.
|
|
1207
|
+
* #### 1. One-click precise subject recognition
|
|
1208
|
+
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
1209
|
+
*
|
|
1210
|
+
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
|
|
1211
|
+
* #### 2. Intelligent edge optimization
|
|
1212
|
+
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1213
|
+
* #### 3. Multi-format output and background operations
|
|
1214
|
+
* * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
|
|
1215
|
+
*
|
|
1216
|
+
* * **Supports custom background colors**
|
|
1217
|
+
* # Effect comparison
|
|
1218
|
+
* | **Original image (input)** | **Result image (output)** |
|
|
1219
|
+
* | --- | --- |
|
|
1220
|
+
* |  |  |
|
|
1221
|
+
* |  |  |
|
|
1222
|
+
* |  |  |
|
|
1223
|
+
*
|
|
1224
|
+
* @param request - ImageMattingAsyncRequest
|
|
1225
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1226
|
+
* @returns ImageMattingAsyncResponse
|
|
1227
|
+
*/
|
|
1228
|
+
async imageMattingAsyncWithOptions(request, runtime) {
|
|
1229
|
+
request.validate();
|
|
1230
|
+
let query = {};
|
|
1231
|
+
if (!$dara.isNull(request.backGroundType)) {
|
|
1232
|
+
query["BackGroundType"] = request.backGroundType;
|
|
1233
|
+
}
|
|
1234
|
+
if (!$dara.isNull(request.bgColor)) {
|
|
1235
|
+
query["BgColor"] = request.bgColor;
|
|
1236
|
+
}
|
|
1237
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1238
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1239
|
+
}
|
|
1240
|
+
if (!$dara.isNull(request.targetHeight)) {
|
|
1241
|
+
query["TargetHeight"] = request.targetHeight;
|
|
1242
|
+
}
|
|
1243
|
+
if (!$dara.isNull(request.targetWidth)) {
|
|
1244
|
+
query["TargetWidth"] = request.targetWidth;
|
|
1245
|
+
}
|
|
1246
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1247
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1248
|
+
});
|
|
1249
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1250
|
+
action: "ImageMattingAsync",
|
|
1251
|
+
version: "2026-04-28",
|
|
1252
|
+
protocol: "HTTPS",
|
|
1253
|
+
pathname: "/",
|
|
1254
|
+
method: "POST",
|
|
1255
|
+
authType: "AK",
|
|
1256
|
+
style: "RPC",
|
|
1257
|
+
reqBodyType: "formData",
|
|
1258
|
+
bodyType: "json",
|
|
1259
|
+
});
|
|
1260
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageMattingAsyncResponse({}));
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Extracts the salient subject from an image, separates it from the background, and returns the subject image without the background. It also provides multiple background options and custom size options to optimize product display.
|
|
1264
|
+
*
|
|
1265
|
+
* @remarks
|
|
1266
|
+
* # Scenarios
|
|
1267
|
+
* * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
|
|
1268
|
+
*
|
|
1269
|
+
* * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, which improves the production efficiency of advertising images and marketing posters.
|
|
1270
|
+
* # Features.
|
|
1271
|
+
* #### 1. One-click precise subject recognition
|
|
1272
|
+
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
1273
|
+
*
|
|
1274
|
+
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
|
|
1275
|
+
* #### 2. Intelligent edge optimization
|
|
1276
|
+
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1277
|
+
* #### 3. Multi-format output and background operations
|
|
1278
|
+
* * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
|
|
1279
|
+
*
|
|
1280
|
+
* * **Supports custom background colors**
|
|
1281
|
+
* # Effect comparison
|
|
1282
|
+
* | **Original image (input)** | **Result image (output)** |
|
|
1283
|
+
* | --- | --- |
|
|
1284
|
+
* |  |  |
|
|
1285
|
+
* |  |  |
|
|
1286
|
+
* |  |  |
|
|
1287
|
+
*
|
|
1288
|
+
* @param request - ImageMattingAsyncRequest
|
|
1289
|
+
* @returns ImageMattingAsyncResponse
|
|
1290
|
+
*/
|
|
1291
|
+
async imageMattingAsync(request) {
|
|
1292
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1293
|
+
return await this.imageMattingAsyncWithOptions(request, runtime);
|
|
1294
|
+
}
|
|
1170
1295
|
/**
|
|
1171
1296
|
* Intelligent element recognition.
|
|
1172
1297
|
*
|
|
@@ -1371,6 +1496,208 @@ class Client extends openapi_core_1.default {
|
|
|
1371
1496
|
let runtime = new $dara.RuntimeOptions({});
|
|
1372
1497
|
return await this.imageRecognitionWithOptions(request, runtime);
|
|
1373
1498
|
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Identifies specific elements in e-commerce images. It analyzes image details to help users quickly identify elements such as text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
|
|
1501
|
+
*
|
|
1502
|
+
* @remarks
|
|
1503
|
+
* # Scenarios
|
|
1504
|
+
* 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 further call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
|
|
1506
|
+
* 2. Automated image processing and efficiency improvement:
|
|
1507
|
+
* 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
|
+
* # Features
|
|
1509
|
+
* **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, see the relevant examples in the elimination documentation (reserved text link).**
|
|
1510
|
+
* * Image subject: The core product area in the image.
|
|
1511
|
+
*
|
|
1512
|
+
* * Image background: The rest of the image other than the product subject.
|
|
1513
|
+
*
|
|
1514
|
+
* * Text: Horizontal, vertical, or diagonal English or Chinese text.
|
|
1515
|
+
*
|
|
1516
|
+
* * Logo: A logo or trademark.
|
|
1517
|
+
*
|
|
1518
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
|
|
1519
|
+
*
|
|
1520
|
+
* * Text-containing color block: A color block containing text outside the subject.
|
|
1521
|
+
*
|
|
1522
|
+
* **2. The main features of the intelligent element recognition API include:**
|
|
1523
|
+
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1524
|
+
*
|
|
1525
|
+
* * Workflow collaboration: Used in combination with the intelligent elimination API. The intelligent element recognition API first 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
|
+
*
|
|
1527
|
+
* **3. Technical advantages:**
|
|
1528
|
+
* * 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.
|
|
1529
|
+
*
|
|
1530
|
+
* * Flexibility: Users can select the types of elements to be recognized as needed, including elements in the subject and non-subject areas, such as watermarks, logos, and text, to meet personalized recognition needs.
|
|
1531
|
+
* # Effect comparison
|
|
1532
|
+
* | **Original image** | **Recognition result** |
|
|
1533
|
+
* | --- | --- |
|
|
1534
|
+
* |  | [Subject]
|
|
1535
|
+
* * Watermark: false
|
|
1536
|
+
*
|
|
1537
|
+
* * Logo: false
|
|
1538
|
+
*
|
|
1539
|
+
* * Text: false
|
|
1540
|
+
*
|
|
1541
|
+
* * Text-containing color block: false
|
|
1542
|
+
*
|
|
1543
|
+
* [Non-subject]
|
|
1544
|
+
* * Watermark: false
|
|
1545
|
+
*
|
|
1546
|
+
* * Logo: true
|
|
1547
|
+
*
|
|
1548
|
+
* * Text: true
|
|
1549
|
+
*
|
|
1550
|
+
* * Text-containing color block: false |
|
|
1551
|
+
* |  | [Subject]
|
|
1552
|
+
* * Watermark: false
|
|
1553
|
+
*
|
|
1554
|
+
* * Logo: false
|
|
1555
|
+
*
|
|
1556
|
+
* * Text: false
|
|
1557
|
+
*
|
|
1558
|
+
* * Text-containing color block: false
|
|
1559
|
+
*
|
|
1560
|
+
* [Non-subject]
|
|
1561
|
+
* * Watermark: true
|
|
1562
|
+
*
|
|
1563
|
+
* * Logo: false
|
|
1564
|
+
*
|
|
1565
|
+
* * Text: true
|
|
1566
|
+
*
|
|
1567
|
+
* * Text-containing color block: true |
|
|
1568
|
+
*
|
|
1569
|
+
* @param tmpReq - ImageRecognitionAsyncRequest
|
|
1570
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1571
|
+
* @returns ImageRecognitionAsyncResponse
|
|
1572
|
+
*/
|
|
1573
|
+
async imageRecognitionAsyncWithOptions(tmpReq, runtime) {
|
|
1574
|
+
tmpReq.validate();
|
|
1575
|
+
let request = new $_model.ImageRecognitionAsyncShrinkRequest({});
|
|
1576
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1577
|
+
if (!$dara.isNull(tmpReq.nonObjectDetectElements)) {
|
|
1578
|
+
request.nonObjectDetectElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectDetectElements, "NonObjectDetectElements", "json");
|
|
1579
|
+
}
|
|
1580
|
+
if (!$dara.isNull(tmpReq.objectDetectElements)) {
|
|
1581
|
+
request.objectDetectElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
|
|
1582
|
+
}
|
|
1583
|
+
let query = {};
|
|
1584
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1585
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1586
|
+
}
|
|
1587
|
+
if (!$dara.isNull(request.nonObjectDetectElementsShrink)) {
|
|
1588
|
+
query["NonObjectDetectElements"] = request.nonObjectDetectElementsShrink;
|
|
1589
|
+
}
|
|
1590
|
+
if (!$dara.isNull(request.objectDetectElementsShrink)) {
|
|
1591
|
+
query["ObjectDetectElements"] = request.objectDetectElementsShrink;
|
|
1592
|
+
}
|
|
1593
|
+
if (!$dara.isNull(request.returnBorderPixel)) {
|
|
1594
|
+
query["ReturnBorderPixel"] = request.returnBorderPixel;
|
|
1595
|
+
}
|
|
1596
|
+
if (!$dara.isNull(request.returnCharacter)) {
|
|
1597
|
+
query["ReturnCharacter"] = request.returnCharacter;
|
|
1598
|
+
}
|
|
1599
|
+
if (!$dara.isNull(request.returnCharacterProp)) {
|
|
1600
|
+
query["ReturnCharacterProp"] = request.returnCharacterProp;
|
|
1601
|
+
}
|
|
1602
|
+
if (!$dara.isNull(request.returnProductNum)) {
|
|
1603
|
+
query["ReturnProductNum"] = request.returnProductNum;
|
|
1604
|
+
}
|
|
1605
|
+
if (!$dara.isNull(request.returnProductProp)) {
|
|
1606
|
+
query["ReturnProductProp"] = request.returnProductProp;
|
|
1607
|
+
}
|
|
1608
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1609
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1610
|
+
});
|
|
1611
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1612
|
+
action: "ImageRecognitionAsync",
|
|
1613
|
+
version: "2026-04-28",
|
|
1614
|
+
protocol: "HTTPS",
|
|
1615
|
+
pathname: "/",
|
|
1616
|
+
method: "POST",
|
|
1617
|
+
authType: "AK",
|
|
1618
|
+
style: "RPC",
|
|
1619
|
+
reqBodyType: "formData",
|
|
1620
|
+
bodyType: "json",
|
|
1621
|
+
});
|
|
1622
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRecognitionAsyncResponse({}));
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* Identifies specific elements in e-commerce images. It analyzes image details to help users quickly identify elements such as text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
|
|
1626
|
+
*
|
|
1627
|
+
* @remarks
|
|
1628
|
+
* # Scenarios
|
|
1629
|
+
* 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 further call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
|
|
1631
|
+
* 2. Automated image processing and efficiency improvement:
|
|
1632
|
+
* 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
|
+
* # Features
|
|
1634
|
+
* **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, see the relevant examples in the elimination documentation (reserved text link).**
|
|
1635
|
+
* * Image subject: The core product area in the image.
|
|
1636
|
+
*
|
|
1637
|
+
* * Image background: The rest of the image other than the product subject.
|
|
1638
|
+
*
|
|
1639
|
+
* * Text: Horizontal, vertical, or diagonal English or Chinese text.
|
|
1640
|
+
*
|
|
1641
|
+
* * Logo: A logo or trademark.
|
|
1642
|
+
*
|
|
1643
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
|
|
1644
|
+
*
|
|
1645
|
+
* * Text-containing color block: A color block containing text outside the subject.
|
|
1646
|
+
*
|
|
1647
|
+
* **2. The main features of the intelligent element recognition API include:**
|
|
1648
|
+
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1649
|
+
*
|
|
1650
|
+
* * Workflow collaboration: Used in combination with the intelligent elimination API. The intelligent element recognition API first 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
|
+
*
|
|
1652
|
+
* **3. Technical advantages:**
|
|
1653
|
+
* * 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.
|
|
1654
|
+
*
|
|
1655
|
+
* * Flexibility: Users can select the types of elements to be recognized as needed, including elements in the subject and non-subject areas, such as watermarks, logos, and text, to meet personalized recognition needs.
|
|
1656
|
+
* # Effect comparison
|
|
1657
|
+
* | **Original image** | **Recognition result** |
|
|
1658
|
+
* | --- | --- |
|
|
1659
|
+
* |  | [Subject]
|
|
1660
|
+
* * Watermark: false
|
|
1661
|
+
*
|
|
1662
|
+
* * Logo: false
|
|
1663
|
+
*
|
|
1664
|
+
* * Text: false
|
|
1665
|
+
*
|
|
1666
|
+
* * Text-containing color block: false
|
|
1667
|
+
*
|
|
1668
|
+
* [Non-subject]
|
|
1669
|
+
* * Watermark: false
|
|
1670
|
+
*
|
|
1671
|
+
* * Logo: true
|
|
1672
|
+
*
|
|
1673
|
+
* * Text: true
|
|
1674
|
+
*
|
|
1675
|
+
* * Text-containing color block: false |
|
|
1676
|
+
* |  | [Subject]
|
|
1677
|
+
* * Watermark: false
|
|
1678
|
+
*
|
|
1679
|
+
* * Logo: false
|
|
1680
|
+
*
|
|
1681
|
+
* * Text: false
|
|
1682
|
+
*
|
|
1683
|
+
* * Text-containing color block: false
|
|
1684
|
+
*
|
|
1685
|
+
* [Non-subject]
|
|
1686
|
+
* * Watermark: true
|
|
1687
|
+
*
|
|
1688
|
+
* * Logo: false
|
|
1689
|
+
*
|
|
1690
|
+
* * Text: true
|
|
1691
|
+
*
|
|
1692
|
+
* * Text-containing color block: true |
|
|
1693
|
+
*
|
|
1694
|
+
* @param request - ImageRecognitionAsyncRequest
|
|
1695
|
+
* @returns ImageRecognitionAsyncResponse
|
|
1696
|
+
*/
|
|
1697
|
+
async imageRecognitionAsync(request) {
|
|
1698
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1699
|
+
return await this.imageRecognitionAsyncWithOptions(request, runtime);
|
|
1700
|
+
}
|
|
1374
1701
|
/**
|
|
1375
1702
|
* Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and watermarks. Supports specifying objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows (synchronous/asynchronous).
|
|
1376
1703
|
*
|
|
@@ -1462,10 +1789,89 @@ class Client extends openapi_core_1.default {
|
|
|
1462
1789
|
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1463
1790
|
}
|
|
1464
1791
|
/**
|
|
1465
|
-
*
|
|
1792
|
+
* Erases text, specific names, transparent text blocks, and watermarks from e-commerce images. This feature automatically identifies these elements and allows you to specify objects to be removed, enabling efficient and accurate processing of large batches of images to simplify image editing.
|
|
1466
1793
|
*
|
|
1467
1794
|
* @remarks
|
|
1468
|
-
*
|
|
1795
|
+
* ## Scenarios
|
|
1796
|
+
* * **Efficient e-commerce image processing:**
|
|
1797
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1798
|
+
* * **Multi-platform product information synchronization:**
|
|
1799
|
+
* When merchants list products on different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
|
|
1800
|
+
* ## Features
|
|
1801
|
+
* 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 to remove them from the image subject or the image background. Both API and editor integration methods are supported to meet different types of requirements.
|
|
1802
|
+
*
|
|
1803
|
+
* 1. Image subject: the core product area in the image.
|
|
1804
|
+
*
|
|
1805
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
1806
|
+
*
|
|
1807
|
+
* 2. Second, the objects to be removed support the following four types: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your usage requirements and perform targeted operations:
|
|
1808
|
+
* ## Before and after
|
|
1809
|
+
* | **Original image** | **Erased image** |
|
|
1810
|
+
* | --- | --- |
|
|
1811
|
+
* |  |  |
|
|
1812
|
+
* |  |  |
|
|
1813
|
+
*
|
|
1814
|
+
* @param request - ImageRemovalProAsyncRequest
|
|
1815
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1816
|
+
* @returns ImageRemovalProAsyncResponse
|
|
1817
|
+
*/
|
|
1818
|
+
async imageRemovalProAsyncWithOptions(request, runtime) {
|
|
1819
|
+
request.validate();
|
|
1820
|
+
let query = {};
|
|
1821
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1822
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1823
|
+
}
|
|
1824
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1825
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1826
|
+
});
|
|
1827
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1828
|
+
action: "ImageRemovalProAsync",
|
|
1829
|
+
version: "2026-04-28",
|
|
1830
|
+
protocol: "HTTPS",
|
|
1831
|
+
pathname: "/",
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
authType: "AK",
|
|
1834
|
+
style: "RPC",
|
|
1835
|
+
reqBodyType: "formData",
|
|
1836
|
+
bodyType: "json",
|
|
1837
|
+
});
|
|
1838
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProAsyncResponse({}));
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Erases text, specific names, transparent text blocks, and watermarks from e-commerce images. This feature automatically identifies these elements and allows you to specify objects to be removed, enabling efficient and accurate processing of large batches of images to simplify image editing.
|
|
1842
|
+
*
|
|
1843
|
+
* @remarks
|
|
1844
|
+
* ## Scenarios
|
|
1845
|
+
* * **Efficient e-commerce image processing:**
|
|
1846
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1847
|
+
* * **Multi-platform product information synchronization:**
|
|
1848
|
+
* When merchants list products on different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
|
|
1849
|
+
* ## Features
|
|
1850
|
+
* 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 to remove them from the image subject or the image background. Both API and editor integration methods are supported to meet different types of requirements.
|
|
1851
|
+
*
|
|
1852
|
+
* 1. Image subject: the core product area in the image.
|
|
1853
|
+
*
|
|
1854
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
1855
|
+
*
|
|
1856
|
+
* 2. Second, the objects to be removed support the following four types: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your usage requirements and perform targeted operations:
|
|
1857
|
+
* ## Before and after
|
|
1858
|
+
* | **Original image** | **Erased image** |
|
|
1859
|
+
* | --- | --- |
|
|
1860
|
+
* |  |  |
|
|
1861
|
+
* |  |  |
|
|
1862
|
+
*
|
|
1863
|
+
* @param request - ImageRemovalProAsyncRequest
|
|
1864
|
+
* @returns ImageRemovalProAsyncResponse
|
|
1865
|
+
*/
|
|
1866
|
+
async imageRemovalProAsync(request) {
|
|
1867
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1868
|
+
return await this.imageRemovalProAsyncWithOptions(request, runtime);
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Intelligently removes unwanted elements from e-commerce images. This product automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
|
|
1872
|
+
*
|
|
1873
|
+
* @remarks
|
|
1874
|
+
* # Product Introduction
|
|
1469
1875
|
* The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
|
|
1470
1876
|
* # Common scenarios
|
|
1471
1877
|
* * **Efficient e-commerce image processing:**
|
|
@@ -1701,11 +2107,240 @@ class Client extends openapi_core_1.default {
|
|
|
1701
2107
|
return await this.imageRemoveWithOptions(request, runtime);
|
|
1702
2108
|
}
|
|
1703
2109
|
/**
|
|
1704
|
-
*
|
|
2110
|
+
* Provides intelligent image erasure tailored for e-commerce images by automatically identifying and removing text, specific names, transparent text blocks, and unwanted overlays, and allows you to specify objects to remove for efficient and accurate batch processing to simplify image editing.
|
|
2111
|
+
*
|
|
2112
|
+
* @remarks
|
|
2113
|
+
* ## Scenarios
|
|
2114
|
+
* * **Efficient processing of e-commerce images:**
|
|
2115
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2116
|
+
* * **Multi-platform product information synchronization:**
|
|
2117
|
+
* When merchants synchronize product listings across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
|
|
2118
|
+
* * **Marketing material preparation:**
|
|
2119
|
+
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2120
|
+
* > Note: Merchants or platforms can batch remove unwanted elements in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter out images containing text, specific names, transparent text blocks, and watermarks, 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
|
+
* ## Features
|
|
2122
|
+
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, 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 needs.
|
|
2123
|
+
*
|
|
2124
|
+
* 1. Image subject: the core product area in the image.
|
|
2125
|
+
*
|
|
2126
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
2127
|
+
*
|
|
2128
|
+
* 2. Second, the objects to remove support the following three cases:
|
|
2129
|
+
*
|
|
2130
|
+
* 1. The user selects only the type. You can select text, specific names, transparent text blocks, and watermarks. You can clarify your usage requirements through the following examples for targeted operations.
|
|
2131
|
+
*
|
|
2132
|
+
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2133
|
+
*
|
|
2134
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
|
|
2135
|
+
*
|
|
2136
|
+
* Processing flow: The user provides the original image URL → OCR and VLM models detect the text or image position → The coordinates of the area to be repaired are determined → AI repairs and generates a clean image → The result image URL is returned.
|
|
2137
|
+
* ## Effect comparison
|
|
2138
|
+
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2139
|
+
* | --- | --- | --- |
|
|
2140
|
+
* | Text | * Involves the image subject area
|
|
2141
|
+
*
|
|
2142
|
+
* 
|
|
2143
|
+
*
|
|
2144
|
+
* * Does not involve the image subject area
|
|
2145
|
+
*
|
|
2146
|
+
*  | * Involves the image subject area
|
|
2147
|
+
*
|
|
2148
|
+
* 
|
|
2149
|
+
* * Does not involve the image subject area
|
|
2150
|
+
*
|
|
2151
|
+
*  |
|
|
2152
|
+
* | Specific names | * Involves the image subject area
|
|
2153
|
+
*
|
|
2154
|
+
* 
|
|
2155
|
+
*
|
|
2156
|
+
* * Does not involve the image subject area
|
|
2157
|
+
*
|
|
2158
|
+
*  | * Involves the image subject area
|
|
2159
|
+
*
|
|
2160
|
+
* 
|
|
2161
|
+
* * Does not involve the image subject area
|
|
2162
|
+
*
|
|
2163
|
+
*  |
|
|
2164
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
2165
|
+
*
|
|
2166
|
+
* 
|
|
2167
|
+
*
|
|
2168
|
+
* * Does not involve the image subject area
|
|
2169
|
+
*
|
|
2170
|
+
*  | * Involves the image subject area
|
|
2171
|
+
*
|
|
2172
|
+
* 
|
|
2173
|
+
* * Does not involve the image subject area
|
|
2174
|
+
*
|
|
2175
|
+
*  |
|
|
2176
|
+
* | Watermarks | * Involves the image subject area
|
|
2177
|
+
*
|
|
2178
|
+
* 
|
|
2179
|
+
*
|
|
2180
|
+
* * Does not involve the image subject area
|
|
2181
|
+
*
|
|
2182
|
+
*  | * Involves the image subject area
|
|
2183
|
+
*
|
|
2184
|
+
* 
|
|
2185
|
+
* * Does not involve the image subject area
|
|
2186
|
+
*
|
|
2187
|
+
*  |
|
|
2188
|
+
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2189
|
+
* | Specified text erasure (supports multiple texts) |  |  |
|
|
2190
|
+
*
|
|
2191
|
+
* @param tmpReq - ImageRemoveAsyncRequest
|
|
2192
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2193
|
+
* @returns ImageRemoveAsyncResponse
|
|
2194
|
+
*/
|
|
2195
|
+
async imageRemoveAsyncWithOptions(tmpReq, runtime) {
|
|
2196
|
+
tmpReq.validate();
|
|
2197
|
+
let request = new $_model.ImageRemoveAsyncShrinkRequest({});
|
|
2198
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2199
|
+
if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
|
|
2200
|
+
request.nonObjectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
|
|
2201
|
+
}
|
|
2202
|
+
if (!$dara.isNull(tmpReq.objectRemoveElements)) {
|
|
2203
|
+
request.objectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
|
|
2204
|
+
}
|
|
2205
|
+
if (!$dara.isNull(tmpReq.userImage)) {
|
|
2206
|
+
request.userImageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
|
|
2207
|
+
}
|
|
2208
|
+
if (!$dara.isNull(tmpReq.userText)) {
|
|
2209
|
+
request.userTextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
|
|
2210
|
+
}
|
|
2211
|
+
let query = {};
|
|
2212
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2213
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2214
|
+
}
|
|
2215
|
+
if (!$dara.isNull(request.mask)) {
|
|
2216
|
+
query["Mask"] = request.mask;
|
|
2217
|
+
}
|
|
2218
|
+
if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
|
|
2219
|
+
query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
|
|
2220
|
+
}
|
|
2221
|
+
if (!$dara.isNull(request.objectRemoveElementsShrink)) {
|
|
2222
|
+
query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
|
|
2223
|
+
}
|
|
2224
|
+
if (!$dara.isNull(request.position)) {
|
|
2225
|
+
query["Position"] = request.position;
|
|
2226
|
+
}
|
|
2227
|
+
if (!$dara.isNull(request.userImageShrink)) {
|
|
2228
|
+
query["UserImage"] = request.userImageShrink;
|
|
2229
|
+
}
|
|
2230
|
+
if (!$dara.isNull(request.userTextShrink)) {
|
|
2231
|
+
query["UserText"] = request.userTextShrink;
|
|
2232
|
+
}
|
|
2233
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2234
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2235
|
+
});
|
|
2236
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2237
|
+
action: "ImageRemoveAsync",
|
|
2238
|
+
version: "2026-04-28",
|
|
2239
|
+
protocol: "HTTPS",
|
|
2240
|
+
pathname: "/",
|
|
2241
|
+
method: "POST",
|
|
2242
|
+
authType: "AK",
|
|
2243
|
+
style: "RPC",
|
|
2244
|
+
reqBodyType: "formData",
|
|
2245
|
+
bodyType: "json",
|
|
2246
|
+
});
|
|
2247
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveAsyncResponse({}));
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* Provides intelligent image erasure tailored for e-commerce images by automatically identifying and removing text, specific names, transparent text blocks, and unwanted overlays, and allows you to specify objects to remove for efficient and accurate batch processing to simplify image editing.
|
|
2251
|
+
*
|
|
2252
|
+
* @remarks
|
|
2253
|
+
* ## Scenarios
|
|
2254
|
+
* * **Efficient processing of e-commerce images:**
|
|
2255
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2256
|
+
* * **Multi-platform product information synchronization:**
|
|
2257
|
+
* When merchants synchronize product listings across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
|
|
2258
|
+
* * **Marketing material preparation:**
|
|
2259
|
+
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2260
|
+
* > Note: Merchants or platforms can batch remove unwanted elements in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter out images containing text, specific names, transparent text blocks, and watermarks, 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
|
+
* ## Features
|
|
2262
|
+
* 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, 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 needs.
|
|
2263
|
+
*
|
|
2264
|
+
* 1. Image subject: the core product area in the image.
|
|
2265
|
+
*
|
|
2266
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
2267
|
+
*
|
|
2268
|
+
* 2. Second, the objects to remove support the following three cases:
|
|
2269
|
+
*
|
|
2270
|
+
* 1. The user selects only the type. You can select text, specific names, transparent text blocks, and watermarks. You can clarify your usage requirements through the following examples for targeted operations.
|
|
2271
|
+
*
|
|
2272
|
+
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2273
|
+
*
|
|
2274
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
|
|
2275
|
+
*
|
|
2276
|
+
* Processing flow: The user provides the original image URL → OCR and VLM models detect the text or image position → The coordinates of the area to be repaired are determined → AI repairs and generates a clean image → The result image URL is returned.
|
|
2277
|
+
* ## Effect comparison
|
|
2278
|
+
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2279
|
+
* | --- | --- | --- |
|
|
2280
|
+
* | Text | * Involves the image subject area
|
|
2281
|
+
*
|
|
2282
|
+
* 
|
|
2283
|
+
*
|
|
2284
|
+
* * Does not involve the image subject area
|
|
2285
|
+
*
|
|
2286
|
+
*  | * Involves the image subject area
|
|
2287
|
+
*
|
|
2288
|
+
* 
|
|
2289
|
+
* * Does not involve the image subject area
|
|
2290
|
+
*
|
|
2291
|
+
*  |
|
|
2292
|
+
* | Specific names | * Involves the image subject area
|
|
2293
|
+
*
|
|
2294
|
+
* 
|
|
2295
|
+
*
|
|
2296
|
+
* * Does not involve the image subject area
|
|
2297
|
+
*
|
|
2298
|
+
*  | * Involves the image subject area
|
|
2299
|
+
*
|
|
2300
|
+
* 
|
|
2301
|
+
* * Does not involve the image subject area
|
|
2302
|
+
*
|
|
2303
|
+
*  |
|
|
2304
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
2305
|
+
*
|
|
2306
|
+
* 
|
|
2307
|
+
*
|
|
2308
|
+
* * Does not involve the image subject area
|
|
2309
|
+
*
|
|
2310
|
+
*  | * Involves the image subject area
|
|
2311
|
+
*
|
|
2312
|
+
* 
|
|
2313
|
+
* * Does not involve the image subject area
|
|
2314
|
+
*
|
|
2315
|
+
*  |
|
|
2316
|
+
* | Watermarks | * Involves the image subject area
|
|
2317
|
+
*
|
|
2318
|
+
* 
|
|
2319
|
+
*
|
|
2320
|
+
* * Does not involve the image subject area
|
|
2321
|
+
*
|
|
2322
|
+
*  | * Involves the image subject area
|
|
2323
|
+
*
|
|
2324
|
+
* 
|
|
2325
|
+
* * Does not involve the image subject area
|
|
2326
|
+
*
|
|
2327
|
+
*  |
|
|
2328
|
+
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2329
|
+
* | Specified text erasure (supports multiple texts) |  |  |
|
|
2330
|
+
*
|
|
2331
|
+
* @param request - ImageRemoveAsyncRequest
|
|
2332
|
+
* @returns ImageRemoveAsyncResponse
|
|
2333
|
+
*/
|
|
2334
|
+
async imageRemoveAsync(request) {
|
|
2335
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2336
|
+
return await this.imageRemoveAsyncWithOptions(request, runtime);
|
|
2337
|
+
}
|
|
2338
|
+
/**
|
|
2339
|
+
* Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
|
|
1705
2340
|
*
|
|
1706
2341
|
* @remarks
|
|
1707
2342
|
* ## Product Introduction
|
|
1708
|
-
* Image Translation
|
|
2343
|
+
* Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. Use it for the following 12 language pairs. More language pairs will be supported in the future.
|
|
1709
2344
|
* Supported language pairs:
|
|
1710
2345
|
* | **No.** | **Source language** | | **Target language** | |
|
|
1711
2346
|
* | --- | --- | --- | --- | --- |
|
|
@@ -1729,7 +2364,7 @@ class Client extends openapi_core_1.default {
|
|
|
1729
2364
|
*
|
|
1730
2365
|
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1731
2366
|
*
|
|
1732
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC
|
|
2367
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC→ABC), specifying a translation (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1733
2368
|
*
|
|
1734
2369
|
* @param request - ImageTranslationPlusRequest
|
|
1735
2370
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1776,11 +2411,11 @@ class Client extends openapi_core_1.default {
|
|
|
1776
2411
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
|
|
1777
2412
|
}
|
|
1778
2413
|
/**
|
|
1779
|
-
* Image Translation
|
|
2414
|
+
* Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
|
|
1780
2415
|
*
|
|
1781
2416
|
* @remarks
|
|
1782
2417
|
* ## Product Introduction
|
|
1783
|
-
* Image Translation
|
|
2418
|
+
* Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. Use it for the following 12 language pairs. More language pairs will be supported in the future.
|
|
1784
2419
|
* Supported language pairs:
|
|
1785
2420
|
* | **No.** | **Source language** | | **Target language** | |
|
|
1786
2421
|
* | --- | --- | --- | --- | --- |
|
|
@@ -1804,7 +2439,7 @@ class Client extends openapi_core_1.default {
|
|
|
1804
2439
|
*
|
|
1805
2440
|
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1806
2441
|
*
|
|
1807
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC
|
|
2442
|
+
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC→ABC), specifying a translation (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1808
2443
|
*
|
|
1809
2444
|
* @param request - ImageTranslationPlusRequest
|
|
1810
2445
|
* @returns ImageTranslationPlusResponse
|
|
@@ -1814,36 +2449,151 @@ class Client extends openapi_core_1.default {
|
|
|
1814
2449
|
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
1815
2450
|
}
|
|
1816
2451
|
/**
|
|
1817
|
-
*
|
|
2452
|
+
* Translates e-commerce images by using the Mixture of Experts (MOE) architecture, delivering higher translation accuracy for multiple minor languages than the Lite and Pro editions.
|
|
1818
2453
|
*
|
|
1819
2454
|
* @remarks
|
|
1820
|
-
* ## Product Introduction
|
|
1821
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
|
|
1822
2455
|
* ## Scenarios
|
|
1823
|
-
*
|
|
2456
|
+
* Main images and detail images for cross-border e-commerce.
|
|
1824
2457
|
* ## Features
|
|
1825
|
-
*
|
|
1826
|
-
* - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
1827
|
-
* - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
|
|
1828
|
-
* - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1829
|
-
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
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 names, from being translated.
|
|
1830
2459
|
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
2460
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
|
|
2461
|
+
*
|
|
2462
|
+
* * **Translation intervention**: Allows you to 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 words. If you need more, contact the platform for processing.
|
|
2463
|
+
* ## Supported language pairs
|
|
2464
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2465
|
+
* | --- | --- | --- | --- | --- |
|
|
2466
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2467
|
+
* | 1 | en | English | ar | Arabic |
|
|
2468
|
+
* | 2 | en | English | id | Indonesian |
|
|
2469
|
+
* | 3 | en | English | th | Thai |
|
|
2470
|
+
* | 4 | en | English | ko | Korean |
|
|
2471
|
+
* | 5 | en | English | ja | Japanese |
|
|
2472
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2473
|
+
* | 7 | en | English | ru | Russian |
|
|
2474
|
+
* | 8 | en | English | tl | Filipino |
|
|
2475
|
+
* | 9 | en | English | es | Spanish |
|
|
2476
|
+
* | 10 | en | English | fr | French |
|
|
2477
|
+
* | 11 | en | English | de | German |
|
|
2478
|
+
* | 12 | en | English | pl | Polish |
|
|
2479
|
+
* ## Preparations and call process
|
|
2480
|
+
* The asynchronous API for Image Translation Plus and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocol, dependency configurations, and Java consumption and decryption code.
|
|
2481
|
+
* For the asynchronous call process, subscription rules, message format and encryption protocol, and detailed integration solutions, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2482
|
+
*
|
|
2483
|
+
* @param request - ImageTranslationPlusAsyncRequest
|
|
2484
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2485
|
+
* @returns ImageTranslationPlusAsyncResponse
|
|
2486
|
+
*/
|
|
2487
|
+
async imageTranslationPlusAsyncWithOptions(request, runtime) {
|
|
2488
|
+
request.validate();
|
|
2489
|
+
let query = {};
|
|
2490
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2491
|
+
query["Glossary"] = request.glossary;
|
|
2492
|
+
}
|
|
2493
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2494
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2495
|
+
}
|
|
2496
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2497
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2498
|
+
}
|
|
2499
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2500
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2501
|
+
}
|
|
2502
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2503
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2504
|
+
}
|
|
2505
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2506
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2507
|
+
}
|
|
2508
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2509
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2510
|
+
}
|
|
2511
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2512
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2513
|
+
});
|
|
2514
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2515
|
+
action: "ImageTranslationPlusAsync",
|
|
2516
|
+
version: "2026-04-28",
|
|
2517
|
+
protocol: "HTTPS",
|
|
2518
|
+
pathname: "/",
|
|
2519
|
+
method: "POST",
|
|
2520
|
+
authType: "AK",
|
|
2521
|
+
style: "RPC",
|
|
2522
|
+
reqBodyType: "formData",
|
|
2523
|
+
bodyType: "json",
|
|
2524
|
+
});
|
|
2525
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusAsyncResponse({}));
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* Translates e-commerce images by using the Mixture of Experts (MOE) architecture, delivering higher translation accuracy for multiple minor languages than the Lite and Pro editions.
|
|
2529
|
+
*
|
|
2530
|
+
* @remarks
|
|
2531
|
+
* ## Scenarios
|
|
2532
|
+
* Main images and detail images for cross-border e-commerce.
|
|
2533
|
+
* ## 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 names, from being translated.
|
|
2535
|
+
*
|
|
2536
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
|
|
2537
|
+
*
|
|
2538
|
+
* * **Translation intervention**: Allows you to 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 words. If you need more, contact the platform for processing.
|
|
2539
|
+
* ## Supported language pairs
|
|
2540
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2541
|
+
* | --- | --- | --- | --- | --- |
|
|
2542
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2543
|
+
* | 1 | en | English | ar | Arabic |
|
|
2544
|
+
* | 2 | en | English | id | Indonesian |
|
|
2545
|
+
* | 3 | en | English | th | Thai |
|
|
2546
|
+
* | 4 | en | English | ko | Korean |
|
|
2547
|
+
* | 5 | en | English | ja | Japanese |
|
|
2548
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2549
|
+
* | 7 | en | English | ru | Russian |
|
|
2550
|
+
* | 8 | en | English | tl | Filipino |
|
|
2551
|
+
* | 9 | en | English | es | Spanish |
|
|
2552
|
+
* | 10 | en | English | fr | French |
|
|
2553
|
+
* | 11 | en | English | de | German |
|
|
2554
|
+
* | 12 | en | English | pl | Polish |
|
|
2555
|
+
* ## Preparations and call process
|
|
2556
|
+
* The asynchronous API for Image Translation Plus and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocol, dependency configurations, and Java consumption and decryption code.
|
|
2557
|
+
* For the asynchronous call process, subscription rules, message format and encryption protocol, and detailed integration solutions, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
|
|
2558
|
+
*
|
|
2559
|
+
* @param request - ImageTranslationPlusAsyncRequest
|
|
2560
|
+
* @returns ImageTranslationPlusAsyncResponse
|
|
2561
|
+
*/
|
|
2562
|
+
async imageTranslationPlusAsync(request) {
|
|
2563
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2564
|
+
return await this.imageTranslationPlusAsyncWithOptions(request, runtime);
|
|
2565
|
+
}
|
|
2566
|
+
/**
|
|
2567
|
+
* Translates images using the Pro edition, which is designed for e-commerce images. This edition integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
|
|
2568
|
+
*
|
|
2569
|
+
* @remarks
|
|
2570
|
+
* ## Product Introduction
|
|
2571
|
+
* The Image Translation Pro edition is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
|
|
2572
|
+
* ## Scenarios
|
|
2573
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2574
|
+
* ## Functions and features
|
|
2575
|
+
* - **Product subject information protection**: You can choose whether to translate text on the product subject, which helps protect subject information such as embedded product names from being translated.
|
|
2576
|
+
* - **Post-translation editing**: You can choose whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
2577
|
+
* - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
|
|
2578
|
+
* - **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC→ABC), specifying translations (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
2579
|
+
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
2580
|
+
*
|
|
2581
|
+
* @param request - ImageTranslationProRequest
|
|
2582
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2583
|
+
* @returns ImageTranslationProResponse
|
|
2584
|
+
*/
|
|
2585
|
+
async imageTranslationProWithOptions(request, runtime) {
|
|
2586
|
+
request.validate();
|
|
2587
|
+
let body = {};
|
|
2588
|
+
if (!$dara.isNull(request.async)) {
|
|
2589
|
+
body["Async"] = request.async;
|
|
2590
|
+
}
|
|
2591
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2592
|
+
body["Glossary"] = request.glossary;
|
|
2593
|
+
}
|
|
2594
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2595
|
+
body["ImageUrl"] = request.imageUrl;
|
|
2596
|
+
}
|
|
1847
2597
|
if (!$dara.isNull(request.includingProductArea)) {
|
|
1848
2598
|
body["IncludingProductArea"] = request.includingProductArea;
|
|
1849
2599
|
}
|
|
@@ -1876,18 +2626,18 @@ class Client extends openapi_core_1.default {
|
|
|
1876
2626
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
|
|
1877
2627
|
}
|
|
1878
2628
|
/**
|
|
1879
|
-
*
|
|
2629
|
+
* Translates images using the Pro edition, which is designed for e-commerce images. This edition integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
|
|
1880
2630
|
*
|
|
1881
2631
|
* @remarks
|
|
1882
2632
|
* ## Product Introduction
|
|
1883
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities.
|
|
2633
|
+
* The Image Translation Pro edition is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
|
|
1884
2634
|
* ## Scenarios
|
|
1885
2635
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1886
|
-
* ##
|
|
1887
|
-
* - **Product subject protection**:
|
|
1888
|
-
* - **Post-translation editing**:
|
|
1889
|
-
* - **Brand name protection**:
|
|
1890
|
-
* - **Translation intervention**:
|
|
2636
|
+
* ## Functions and features
|
|
2637
|
+
* - **Product subject information protection**: You can choose whether to translate text on the product subject, which helps protect subject information such as embedded product names from being translated.
|
|
2638
|
+
* - **Post-translation editing**: You can choose whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
2639
|
+
* - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
|
|
2640
|
+
* - **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC→ABC), specifying translations (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1891
2641
|
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1892
2642
|
*
|
|
1893
2643
|
* @param request - ImageTranslationProRequest
|
|
@@ -1898,22 +2648,111 @@ class Client extends openapi_core_1.default {
|
|
|
1898
2648
|
return await this.imageTranslationProWithOptions(request, runtime);
|
|
1899
2649
|
}
|
|
1900
2650
|
/**
|
|
1901
|
-
* Image Translation is designed specifically for e-commerce images
|
|
2651
|
+
* Translates images by using Image Translation Pro. This service is designed specifically for e-commerce images, integrates multimodal large language model technology for more accurate image understanding, significantly improves translation quality, and continuously expands and optimizes multilingual translation capabilities. It supports more than 400 language pairs, including pivot languages.
|
|
2652
|
+
*
|
|
2653
|
+
* @remarks
|
|
2654
|
+
* ## Scenarios
|
|
2655
|
+
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2656
|
+
* ## Features
|
|
2657
|
+
* * Product subject information protection: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information, such as embedded product names, from being translated.
|
|
2658
|
+
*
|
|
2659
|
+
* * Post-translation editing: Allows you to 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 integrated with an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
|
|
2660
|
+
*
|
|
2661
|
+
* * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2662
|
+
*
|
|
2663
|
+
* * Translation intervention: Allows you to 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 terms. If you need more, contact the platform for assistance.
|
|
2664
|
+
* ## Preparations and call process
|
|
2665
|
+
* Image Translation Pro supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
|
|
2666
|
+
* The asynchronous APIs for text translation and other capabilities share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2667
|
+
* 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).
|
|
2668
|
+
*
|
|
2669
|
+
* @param request - ImageTranslationProAsyncRequest
|
|
2670
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2671
|
+
* @returns ImageTranslationProAsyncResponse
|
|
2672
|
+
*/
|
|
2673
|
+
async imageTranslationProAsyncWithOptions(request, runtime) {
|
|
2674
|
+
request.validate();
|
|
2675
|
+
let query = {};
|
|
2676
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2677
|
+
query["Glossary"] = request.glossary;
|
|
2678
|
+
}
|
|
2679
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2680
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2681
|
+
}
|
|
2682
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2683
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2684
|
+
}
|
|
2685
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2686
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2687
|
+
}
|
|
2688
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2689
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2690
|
+
}
|
|
2691
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2692
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2693
|
+
}
|
|
2694
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2695
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2696
|
+
}
|
|
2697
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2698
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2699
|
+
});
|
|
2700
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2701
|
+
action: "ImageTranslationProAsync",
|
|
2702
|
+
version: "2026-04-28",
|
|
2703
|
+
protocol: "HTTPS",
|
|
2704
|
+
pathname: "/",
|
|
2705
|
+
method: "POST",
|
|
2706
|
+
authType: "AK",
|
|
2707
|
+
style: "RPC",
|
|
2708
|
+
reqBodyType: "formData",
|
|
2709
|
+
bodyType: "json",
|
|
2710
|
+
});
|
|
2711
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProAsyncResponse({}));
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* Translates images by using Image Translation Pro. This service is designed specifically for e-commerce images, integrates multimodal large language model technology for more accurate image understanding, significantly improves translation quality, and continuously expands and optimizes multilingual translation capabilities. It supports more than 400 language pairs, including pivot languages.
|
|
2715
|
+
*
|
|
2716
|
+
* @remarks
|
|
2717
|
+
* ## Scenarios
|
|
2718
|
+
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2719
|
+
* ## Features
|
|
2720
|
+
* * Product subject information protection: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information, such as embedded product names, from being translated.
|
|
2721
|
+
*
|
|
2722
|
+
* * Post-translation editing: Allows you to 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 integrated with an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
|
|
2723
|
+
*
|
|
2724
|
+
* * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2725
|
+
*
|
|
2726
|
+
* * Translation intervention: Allows you to 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 terms. If you need more, contact the platform for assistance.
|
|
2727
|
+
* ## Preparations and call process
|
|
2728
|
+
* Image Translation Pro supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
|
|
2729
|
+
* The asynchronous APIs for text translation and other capabilities share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
2730
|
+
* 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).
|
|
2731
|
+
*
|
|
2732
|
+
* @param request - ImageTranslationProAsyncRequest
|
|
2733
|
+
* @returns ImageTranslationProAsyncResponse
|
|
2734
|
+
*/
|
|
2735
|
+
async imageTranslationProAsync(request) {
|
|
2736
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2737
|
+
return await this.imageTranslationProAsyncWithOptions(request, runtime);
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* Translates text in images with support for over 400 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
|
|
1902
2741
|
*
|
|
1903
2742
|
* @remarks
|
|
1904
2743
|
* # 1. Product Introduction
|
|
1905
|
-
*
|
|
2744
|
+
* The image translation product is designed specifically for e-commerce images, supporting over 400 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
|
|
1906
2745
|
* # 2. Common scenarios
|
|
1907
2746
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1908
2747
|
* # 3. Features
|
|
1909
|
-
* * **Product
|
|
2748
|
+
* * **Product subject information protection**: Allows you to choose whether to translate text on the product subject, helping protect subject information from being translated and avoiding translation of embedded information such as product names.
|
|
1910
2749
|
*
|
|
1911
|
-
* * **Brand name protection**:
|
|
2750
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
1912
2751
|
*
|
|
1913
|
-
* * **Secondary editing after translation (layer information)**:
|
|
2752
|
+
* * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color, which can be used to connect to an image editor for secondary editing of translation results. Follow platform notifications for updates on the editor SDK package release.
|
|
1914
2753
|
*
|
|
1915
|
-
* * **Translation intervention**:
|
|
1916
|
-
*
|
|
2754
|
+
* * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand term protection and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
2755
|
+
* <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1917
2756
|
*
|
|
1918
2757
|
* @param request - ImageTranslationStandardRequest
|
|
1919
2758
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1960,22 +2799,22 @@ class Client extends openapi_core_1.default {
|
|
|
1960
2799
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
|
|
1961
2800
|
}
|
|
1962
2801
|
/**
|
|
1963
|
-
*
|
|
2802
|
+
* Translates text in images with support for over 400 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
|
|
1964
2803
|
*
|
|
1965
2804
|
* @remarks
|
|
1966
2805
|
* # 1. Product Introduction
|
|
1967
|
-
*
|
|
2806
|
+
* The image translation product is designed specifically for e-commerce images, supporting over 400 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
|
|
1968
2807
|
* # 2. Common scenarios
|
|
1969
2808
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1970
2809
|
* # 3. Features
|
|
1971
|
-
* * **Product
|
|
2810
|
+
* * **Product subject information protection**: Allows you to choose whether to translate text on the product subject, helping protect subject information from being translated and avoiding translation of embedded information such as product names.
|
|
1972
2811
|
*
|
|
1973
|
-
* * **Brand name protection**:
|
|
2812
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
1974
2813
|
*
|
|
1975
|
-
* * **Secondary editing after translation (layer information)**:
|
|
2814
|
+
* * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color, which can be used to connect to an image editor for secondary editing of translation results. Follow platform notifications for updates on the editor SDK package release.
|
|
1976
2815
|
*
|
|
1977
|
-
* * **Translation intervention**:
|
|
1978
|
-
*
|
|
2816
|
+
* * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand term protection and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
2817
|
+
* <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1979
2818
|
*
|
|
1980
2819
|
* @param request - ImageTranslationStandardRequest
|
|
1981
2820
|
* @returns ImageTranslationStandardResponse
|
|
@@ -1984,6 +2823,95 @@ class Client extends openapi_core_1.default {
|
|
|
1984
2823
|
let runtime = new $dara.RuntimeOptions({});
|
|
1985
2824
|
return await this.imageTranslationStandardWithOptions(request, runtime);
|
|
1986
2825
|
}
|
|
2826
|
+
/**
|
|
2827
|
+
* Translates e-commerce images by supporting over 400 language pairs, including bridged pairs. Accurately processes complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The service also returns layer information such as text position, font, and color, facilitating secondary editing of translation results in image editors.
|
|
2828
|
+
*
|
|
2829
|
+
* @remarks
|
|
2830
|
+
* ## Scenarios
|
|
2831
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2832
|
+
* ## Features
|
|
2833
|
+
* * **Product subject information protection**: Allows you to specify whether to translate text on the product subject, protecting the subject information and preventing the translation of embedded information such as product names.
|
|
2834
|
+
*
|
|
2835
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
2836
|
+
*
|
|
2837
|
+
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. Refer to platform notifications for updates on the availability of the editor SDK.
|
|
2838
|
+
*
|
|
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 terms. Contact the platform if you need a higher limit.
|
|
2840
|
+
* ## Preparations and call process
|
|
2841
|
+
* * Image Translation Standard Edition supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
|
|
2842
|
+
* * The asynchronous APIs for Image Translation Standard Edition and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
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).
|
|
2844
|
+
*
|
|
2845
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
2846
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2847
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
2848
|
+
*/
|
|
2849
|
+
async imageTranslationStandardAsyncWithOptions(request, runtime) {
|
|
2850
|
+
request.validate();
|
|
2851
|
+
let query = {};
|
|
2852
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2853
|
+
query["Glossary"] = request.glossary;
|
|
2854
|
+
}
|
|
2855
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2856
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2857
|
+
}
|
|
2858
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2859
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2860
|
+
}
|
|
2861
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2862
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2863
|
+
}
|
|
2864
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2865
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2866
|
+
}
|
|
2867
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2868
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2869
|
+
}
|
|
2870
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2871
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2872
|
+
}
|
|
2873
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2874
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2875
|
+
});
|
|
2876
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2877
|
+
action: "ImageTranslationStandardAsync",
|
|
2878
|
+
version: "2026-04-28",
|
|
2879
|
+
protocol: "HTTPS",
|
|
2880
|
+
pathname: "/",
|
|
2881
|
+
method: "POST",
|
|
2882
|
+
authType: "AK",
|
|
2883
|
+
style: "RPC",
|
|
2884
|
+
reqBodyType: "formData",
|
|
2885
|
+
bodyType: "json",
|
|
2886
|
+
});
|
|
2887
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardAsyncResponse({}));
|
|
2888
|
+
}
|
|
2889
|
+
/**
|
|
2890
|
+
* Translates e-commerce images by supporting over 400 language pairs, including bridged pairs. Accurately processes complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The service also returns layer information such as text position, font, and color, facilitating secondary editing of translation results in image editors.
|
|
2891
|
+
*
|
|
2892
|
+
* @remarks
|
|
2893
|
+
* ## Scenarios
|
|
2894
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2895
|
+
* ## Features
|
|
2896
|
+
* * **Product subject information protection**: Allows you to specify whether to translate text on the product subject, protecting the subject information and preventing the translation of embedded information such as product names.
|
|
2897
|
+
*
|
|
2898
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
2899
|
+
*
|
|
2900
|
+
* * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. Refer to platform notifications for updates on the availability of the editor SDK.
|
|
2901
|
+
*
|
|
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 terms. Contact the platform if you need a higher limit.
|
|
2903
|
+
* ## Preparations and call process
|
|
2904
|
+
* * Image Translation Standard Edition supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
|
|
2905
|
+
* * The asynchronous APIs for Image Translation Standard Edition and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
|
|
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).
|
|
2907
|
+
*
|
|
2908
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
2909
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
2910
|
+
*/
|
|
2911
|
+
async imageTranslationStandardAsync(request) {
|
|
2912
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2913
|
+
return await this.imageTranslationStandardAsyncWithOptions(request, runtime);
|
|
2914
|
+
}
|
|
1987
2915
|
/**
|
|
1988
2916
|
* Supports automatic language identification for 31 languages in query scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations.
|
|
1989
2917
|
*
|
|
@@ -2212,45 +3140,350 @@ class Client extends openapi_core_1.default {
|
|
|
2212
3140
|
* @param request - MerchandisePlacementDetectionRequest
|
|
2213
3141
|
* @returns MerchandisePlacementDetectionResponse
|
|
2214
3142
|
*/
|
|
2215
|
-
async merchandisePlacementDetection(request) {
|
|
3143
|
+
async merchandisePlacementDetection(request) {
|
|
3144
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3145
|
+
return await this.merchandisePlacementDetectionWithOptions(request, runtime);
|
|
3146
|
+
}
|
|
3147
|
+
/**
|
|
3148
|
+
* Detects product displays in photos of shelves, endcaps, freezers, display tables, and dump bins by using product SKU recognition and multimodal large model grounding. It aggregates product locations by SKU and supplements the results with visible single-item grounding and short names to facilitate product location display, display inventory, and subsequent distribution verification in business systems.
|
|
3149
|
+
*
|
|
3150
|
+
* @remarks
|
|
3151
|
+
* ## Scenarios
|
|
3152
|
+
* - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
|
|
3153
|
+
* - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
|
|
3154
|
+
* - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
|
|
3155
|
+
* ## Features
|
|
3156
|
+
* - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
|
|
3157
|
+
* - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
|
|
3158
|
+
* - Independent use of two result sets: Products comes from SKU recognition, and grounding comes from supplementary grounding. Grounding does not return SKU codes and does not guarantee item-by-item correspondence with Products.
|
|
3159
|
+
* - Supports single HTTPS image input. Supplementary grounding returns up to 12 targets, each containing a category, a bounding box, and visible text of up to 24 characters. The coverage field indicates whether the grounding is complete.
|
|
3160
|
+
*
|
|
3161
|
+
* @param request - MerchandisePlacementDetectionLiteRequest
|
|
3162
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3163
|
+
* @returns MerchandisePlacementDetectionLiteResponse
|
|
3164
|
+
*/
|
|
3165
|
+
async merchandisePlacementDetectionLiteWithOptions(request, runtime) {
|
|
3166
|
+
request.validate();
|
|
3167
|
+
let query = {};
|
|
3168
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3169
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3170
|
+
}
|
|
3171
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3172
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3173
|
+
});
|
|
3174
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3175
|
+
action: "MerchandisePlacementDetectionLite",
|
|
3176
|
+
version: "2026-04-28",
|
|
3177
|
+
protocol: "HTTPS",
|
|
3178
|
+
pathname: "/",
|
|
3179
|
+
method: "POST",
|
|
3180
|
+
authType: "AK",
|
|
3181
|
+
style: "RPC",
|
|
3182
|
+
reqBodyType: "formData",
|
|
3183
|
+
bodyType: "json",
|
|
3184
|
+
});
|
|
3185
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionLiteResponse({}));
|
|
3186
|
+
}
|
|
3187
|
+
/**
|
|
3188
|
+
* Detects product displays in photos of shelves, endcaps, freezers, display tables, and dump bins by using product SKU recognition and multimodal large model grounding. It aggregates product locations by SKU and supplements the results with visible single-item grounding and short names to facilitate product location display, display inventory, and subsequent distribution verification in business systems.
|
|
3189
|
+
*
|
|
3190
|
+
* @remarks
|
|
3191
|
+
* ## Scenarios
|
|
3192
|
+
* - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
|
|
3193
|
+
* - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
|
|
3194
|
+
* - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
|
|
3195
|
+
* ## Features
|
|
3196
|
+
* - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
|
|
3197
|
+
* - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
|
|
3198
|
+
* - Independent use of two result sets: Products comes from SKU recognition, and grounding comes from supplementary grounding. Grounding does not return SKU codes and does not guarantee item-by-item correspondence with Products.
|
|
3199
|
+
* - Supports single HTTPS image input. Supplementary grounding returns up to 12 targets, each containing a category, a bounding box, and visible text of up to 24 characters. The coverage field indicates whether the grounding is complete.
|
|
3200
|
+
*
|
|
3201
|
+
* @param request - MerchandisePlacementDetectionLiteRequest
|
|
3202
|
+
* @returns MerchandisePlacementDetectionLiteResponse
|
|
3203
|
+
*/
|
|
3204
|
+
async merchandisePlacementDetectionLite(request) {
|
|
3205
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3206
|
+
return await this.merchandisePlacementDetectionLiteWithOptions(request, runtime);
|
|
3207
|
+
}
|
|
3208
|
+
/**
|
|
3209
|
+
* Detects the positions and names of visible products in an image based on a dedicated visual model. The product supports default recognition rules for the Genki Forest business type and custom rules provided by the invoker. It outputs per-product positions and names, applicable to beverage display inspection and product location display.
|
|
3210
|
+
*
|
|
3211
|
+
* @remarks
|
|
3212
|
+
* ## Scenarios
|
|
3213
|
+
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
3214
|
+
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
3215
|
+
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
3216
|
+
* ## Features
|
|
3217
|
+
* - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
|
|
3218
|
+
* - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
|
|
3219
|
+
* - Unified result validation: Bounding box coordinates are converted to integers and restricted to the range 0–1000. Reversed coordinates are swapped. Missing names default to unknown. The entire batch fails if any item is not a valid product object, has an invalid bounding box, or has no area.
|
|
3220
|
+
* - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
|
|
3221
|
+
*
|
|
3222
|
+
* @param request - MerchandisePlacementDetectionProRequest
|
|
3223
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3224
|
+
* @returns MerchandisePlacementDetectionProResponse
|
|
3225
|
+
*/
|
|
3226
|
+
async merchandisePlacementDetectionProWithOptions(request, runtime) {
|
|
3227
|
+
request.validate();
|
|
3228
|
+
let query = {};
|
|
3229
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3230
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3231
|
+
}
|
|
3232
|
+
if (!$dara.isNull(request.rule)) {
|
|
3233
|
+
query["Rule"] = request.rule;
|
|
3234
|
+
}
|
|
3235
|
+
if (!$dara.isNull(request.type)) {
|
|
3236
|
+
query["Type"] = request.type;
|
|
3237
|
+
}
|
|
3238
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3239
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3240
|
+
});
|
|
3241
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3242
|
+
action: "MerchandisePlacementDetectionPro",
|
|
3243
|
+
version: "2026-04-28",
|
|
3244
|
+
protocol: "HTTPS",
|
|
3245
|
+
pathname: "/",
|
|
3246
|
+
method: "POST",
|
|
3247
|
+
authType: "AK",
|
|
3248
|
+
style: "RPC",
|
|
3249
|
+
reqBodyType: "formData",
|
|
3250
|
+
bodyType: "json",
|
|
3251
|
+
});
|
|
3252
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionProResponse({}));
|
|
3253
|
+
}
|
|
3254
|
+
/**
|
|
3255
|
+
* Detects the positions and names of visible products in an image based on a dedicated visual model. The product supports default recognition rules for the Genki Forest business type and custom rules provided by the invoker. It outputs per-product positions and names, applicable to beverage display inspection and product location display.
|
|
3256
|
+
*
|
|
3257
|
+
* @remarks
|
|
3258
|
+
* ## Scenarios
|
|
3259
|
+
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
3260
|
+
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
3261
|
+
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
3262
|
+
* ## Features
|
|
3263
|
+
* - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
|
|
3264
|
+
* - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
|
|
3265
|
+
* - Unified result validation: Bounding box coordinates are converted to integers and restricted to the range 0–1000. Reversed coordinates are swapped. Missing names default to unknown. The entire batch fails if any item is not a valid product object, has an invalid bounding box, or has no area.
|
|
3266
|
+
* - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
|
|
3267
|
+
*
|
|
3268
|
+
* @param request - MerchandisePlacementDetectionProRequest
|
|
3269
|
+
* @returns MerchandisePlacementDetectionProResponse
|
|
3270
|
+
*/
|
|
3271
|
+
async merchandisePlacementDetectionPro(request) {
|
|
3272
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3273
|
+
return await this.merchandisePlacementDetectionProWithOptions(request, runtime);
|
|
3274
|
+
}
|
|
3275
|
+
/**
|
|
3276
|
+
* Detects display price tags based on price tag recognition and multimodal large model localization, extracting product information, selling prices, original prices, and locations, while providing visible bounding boxes for paper price tags, electronic price tags, and promotional price signs for store price collection, price tag inspection, and business-side price verification.
|
|
3277
|
+
*
|
|
3278
|
+
* @remarks
|
|
3279
|
+
* ## Scenarios
|
|
3280
|
+
* - Store price collection: Reads the recognized selling prices and available original prices of price tags.
|
|
3281
|
+
* - Price execution verification: Compares the recognized prices with the business-side price list.
|
|
3282
|
+
* - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
|
|
3283
|
+
* ## Features
|
|
3284
|
+
* - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
|
|
3285
|
+
* - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
|
|
3286
|
+
* - Original text and location-assisted review: Prioritizes extracting clear selling prices from located text, leaving it empty if unreadable. Supplementary localization does not infer that a price tag necessarily corresponds to a specific SKU based on its location.
|
|
3287
|
+
* - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text, and indicates whether the localization is complete through coverage.
|
|
3288
|
+
*
|
|
3289
|
+
* @param request - MerchandisePriceTagDetectionRequest
|
|
3290
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3291
|
+
* @returns MerchandisePriceTagDetectionResponse
|
|
3292
|
+
*/
|
|
3293
|
+
async merchandisePriceTagDetectionWithOptions(request, runtime) {
|
|
3294
|
+
request.validate();
|
|
3295
|
+
let query = {};
|
|
3296
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3297
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3298
|
+
}
|
|
3299
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3300
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3301
|
+
});
|
|
3302
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3303
|
+
action: "MerchandisePriceTagDetection",
|
|
3304
|
+
version: "2026-04-28",
|
|
3305
|
+
protocol: "HTTPS",
|
|
3306
|
+
pathname: "/",
|
|
3307
|
+
method: "POST",
|
|
3308
|
+
authType: "AK",
|
|
3309
|
+
style: "RPC",
|
|
3310
|
+
reqBodyType: "formData",
|
|
3311
|
+
bodyType: "json",
|
|
3312
|
+
});
|
|
3313
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePriceTagDetectionResponse({}));
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* Detects display price tags based on price tag recognition and multimodal large model localization, extracting product information, selling prices, original prices, and locations, while providing visible bounding boxes for paper price tags, electronic price tags, and promotional price signs for store price collection, price tag inspection, and business-side price verification.
|
|
3317
|
+
*
|
|
3318
|
+
* @remarks
|
|
3319
|
+
* ## Scenarios
|
|
3320
|
+
* - Store price collection: Reads the recognized selling prices and available original prices of price tags.
|
|
3321
|
+
* - Price execution verification: Compares the recognized prices with the business-side price list.
|
|
3322
|
+
* - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
|
|
3323
|
+
* ## Features
|
|
3324
|
+
* - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
|
|
3325
|
+
* - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
|
|
3326
|
+
* - Original text and location-assisted review: Prioritizes extracting clear selling prices from located text, leaving it empty if unreadable. Supplementary localization does not infer that a price tag necessarily corresponds to a specific SKU based on its location.
|
|
3327
|
+
* - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text, and indicates whether the localization is complete through coverage.
|
|
3328
|
+
*
|
|
3329
|
+
* @param request - MerchandisePriceTagDetectionRequest
|
|
3330
|
+
* @returns MerchandisePriceTagDetectionResponse
|
|
3331
|
+
*/
|
|
3332
|
+
async merchandisePriceTagDetection(request) {
|
|
3333
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3334
|
+
return await this.merchandisePriceTagDetectionWithOptions(request, runtime);
|
|
3335
|
+
}
|
|
3336
|
+
/**
|
|
3337
|
+
* Detects store displays based on display scene recognition and holistic positioning powered by multimodal large models. This product identifies display areas such as shelves, refrigerators, and floor displays, and outputs available scene names, locations, and display metrics. It also provides overall facility bounding boxes, making it suitable for display facility inspection, area visualization, and display metric verification.
|
|
3338
|
+
*
|
|
3339
|
+
* @remarks
|
|
3340
|
+
* ## Scenarios
|
|
3341
|
+
* - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
|
|
3342
|
+
* - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
|
|
3343
|
+
* - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
|
|
3344
|
+
* ## Features
|
|
3345
|
+
* - Scene structured output: returns scene names, center points, area contours, and active metrics.
|
|
3346
|
+
* - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
|
|
3347
|
+
* - Retains two types of coordinates: the positions in scenes retain the original normalization coordinates of the recognition service, while grounding uses 0–1000 integer bounding boxes.
|
|
3348
|
+
* - Supports a single HTTPS image as input. The supplementary positioning returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text, and uses coverage to indicate whether the positioning is complete.
|
|
3349
|
+
*
|
|
3350
|
+
* @param request - MerchandiseSceneDetectionRequest
|
|
3351
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3352
|
+
* @returns MerchandiseSceneDetectionResponse
|
|
3353
|
+
*/
|
|
3354
|
+
async merchandiseSceneDetectionWithOptions(request, runtime) {
|
|
3355
|
+
request.validate();
|
|
3356
|
+
let query = {};
|
|
3357
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3358
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3359
|
+
}
|
|
3360
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3361
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3362
|
+
});
|
|
3363
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3364
|
+
action: "MerchandiseSceneDetection",
|
|
3365
|
+
version: "2026-04-28",
|
|
3366
|
+
protocol: "HTTPS",
|
|
3367
|
+
pathname: "/",
|
|
3368
|
+
method: "POST",
|
|
3369
|
+
authType: "AK",
|
|
3370
|
+
style: "RPC",
|
|
3371
|
+
reqBodyType: "formData",
|
|
3372
|
+
bodyType: "json",
|
|
3373
|
+
});
|
|
3374
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandiseSceneDetectionResponse({}));
|
|
3375
|
+
}
|
|
3376
|
+
/**
|
|
3377
|
+
* Detects store displays based on display scene recognition and holistic positioning powered by multimodal large models. This product identifies display areas such as shelves, refrigerators, and floor displays, and outputs available scene names, locations, and display metrics. It also provides overall facility bounding boxes, making it suitable for display facility inspection, area visualization, and display metric verification.
|
|
3378
|
+
*
|
|
3379
|
+
* @remarks
|
|
3380
|
+
* ## Scenarios
|
|
3381
|
+
* - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
|
|
3382
|
+
* - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
|
|
3383
|
+
* - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
|
|
3384
|
+
* ## Features
|
|
3385
|
+
* - Scene structured output: returns scene names, center points, area contours, and active metrics.
|
|
3386
|
+
* - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
|
|
3387
|
+
* - Retains two types of coordinates: the positions in scenes retain the original normalization coordinates of the recognition service, while grounding uses 0–1000 integer bounding boxes.
|
|
3388
|
+
* - Supports a single HTTPS image as input. The supplementary positioning returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text, and uses coverage to indicate whether the positioning is complete.
|
|
3389
|
+
*
|
|
3390
|
+
* @param request - MerchandiseSceneDetectionRequest
|
|
3391
|
+
* @returns MerchandiseSceneDetectionResponse
|
|
3392
|
+
*/
|
|
3393
|
+
async merchandiseSceneDetection(request) {
|
|
3394
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3395
|
+
return await this.merchandiseSceneDetectionWithOptions(request, runtime);
|
|
3396
|
+
}
|
|
3397
|
+
/**
|
|
3398
|
+
* Reviews images of milk powder can bottom codes by using recapture detection and multimodal large model-based element localization. The service determines whether an uploaded photo is recaptured and localizes visible milk powder products, can bottoms, and bottom code areas. It is suitable for milk powder channel inspections, can bottom code photo reviews, and manual verifications.
|
|
3399
|
+
*
|
|
3400
|
+
* @remarks
|
|
3401
|
+
* ## Features
|
|
3402
|
+
* - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
|
|
3403
|
+
* - Milk powder subject and bottom code localization: Prioritizes the localization of the milk powder subject. Adds corresponding bounding boxes when the can bottom, spray code, batch code, or traceability code areas are clear.
|
|
3404
|
+
* - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
|
|
3405
|
+
* - Supports a single HTTPS image input. The supplementary localization returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
|
|
3406
|
+
* ## Scenarios:
|
|
3407
|
+
* - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
|
|
3408
|
+
* - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
|
|
3409
|
+
* - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
|
|
3410
|
+
*
|
|
3411
|
+
* @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
|
|
3412
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3413
|
+
* @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
|
|
3414
|
+
*/
|
|
3415
|
+
async milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime) {
|
|
3416
|
+
request.validate();
|
|
3417
|
+
let query = {};
|
|
3418
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3419
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3420
|
+
}
|
|
3421
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3422
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3423
|
+
});
|
|
3424
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3425
|
+
action: "MilkPowderCanBottomCodeRephotographyDetection",
|
|
3426
|
+
version: "2026-04-28",
|
|
3427
|
+
protocol: "HTTPS",
|
|
3428
|
+
pathname: "/",
|
|
3429
|
+
method: "POST",
|
|
3430
|
+
authType: "AK",
|
|
3431
|
+
style: "RPC",
|
|
3432
|
+
reqBodyType: "formData",
|
|
3433
|
+
bodyType: "json",
|
|
3434
|
+
});
|
|
3435
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MilkPowderCanBottomCodeRephotographyDetectionResponse({}));
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
* Reviews images of milk powder can bottom codes by using recapture detection and multimodal large model-based element localization. The service determines whether an uploaded photo is recaptured and localizes visible milk powder products, can bottoms, and bottom code areas. It is suitable for milk powder channel inspections, can bottom code photo reviews, and manual verifications.
|
|
3439
|
+
*
|
|
3440
|
+
* @remarks
|
|
3441
|
+
* ## Features
|
|
3442
|
+
* - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
|
|
3443
|
+
* - Milk powder subject and bottom code localization: Prioritizes the localization of the milk powder subject. Adds corresponding bounding boxes when the can bottom, spray code, batch code, or traceability code areas are clear.
|
|
3444
|
+
* - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
|
|
3445
|
+
* - Supports a single HTTPS image input. The supplementary localization returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
|
|
3446
|
+
* ## Scenarios:
|
|
3447
|
+
* - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
|
|
3448
|
+
* - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
|
|
3449
|
+
* - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
|
|
3450
|
+
*
|
|
3451
|
+
* @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
|
|
3452
|
+
* @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
|
|
3453
|
+
*/
|
|
3454
|
+
async milkPowderCanBottomCodeRephotographyDetection(request) {
|
|
2216
3455
|
let runtime = new $dara.RuntimeOptions({});
|
|
2217
|
-
return await this.
|
|
3456
|
+
return await this.milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2218
3457
|
}
|
|
2219
3458
|
/**
|
|
2220
|
-
*
|
|
3459
|
+
* Reviews infant formula carton code images based on recapture detection and element localization using multimodal foundation models. It targets photos of infant formula products, outer cartons, and carton codes captured during channel inspections. It determines whether images are non-recaptured, recaptured, or suspected recaptures, and localizes visible infant formula products, outer cartons, and code regions to provide a structured basis for image review and manual verification.
|
|
2221
3460
|
*
|
|
2222
3461
|
* @remarks
|
|
2223
|
-
* ## Scenarios
|
|
2224
|
-
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
2225
|
-
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
2226
|
-
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
2227
3462
|
* ## Features
|
|
2228
|
-
* -
|
|
2229
|
-
* -
|
|
2230
|
-
* -
|
|
2231
|
-
* -
|
|
3463
|
+
* - Three-state recapture detection: When photoStatus is 0, 1, or 2, it indicates non-recapture, recapture, or suspected recapture, respectively. The isFake, isSuspect, and score fields are also returned.
|
|
3464
|
+
* - Subject and code area grounding: Prioritizes the grounding of individual milk powder products and outer boxes, and supplements clear box codes, barcodes, and QR code areas. The milk powder subject can still be grounded even if no box code is present.
|
|
3465
|
+
* - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
|
|
3466
|
+
* - Supports a single HTTPS image as input. The supplementary grounding returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the grounding is complete.
|
|
3467
|
+
* ## Scenarios
|
|
3468
|
+
* - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
|
|
3469
|
+
* - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
|
|
3470
|
+
* - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
|
|
2232
3471
|
*
|
|
2233
|
-
* @param request -
|
|
3472
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
2234
3473
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2235
|
-
* @returns
|
|
3474
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2236
3475
|
*/
|
|
2237
|
-
async
|
|
3476
|
+
async milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime) {
|
|
2238
3477
|
request.validate();
|
|
2239
3478
|
let query = {};
|
|
2240
3479
|
if (!$dara.isNull(request.imageUrl)) {
|
|
2241
3480
|
query["ImageUrl"] = request.imageUrl;
|
|
2242
3481
|
}
|
|
2243
|
-
if (!$dara.isNull(request.rule)) {
|
|
2244
|
-
query["Rule"] = request.rule;
|
|
2245
|
-
}
|
|
2246
|
-
if (!$dara.isNull(request.type)) {
|
|
2247
|
-
query["Type"] = request.type;
|
|
2248
|
-
}
|
|
2249
3482
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2250
3483
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2251
3484
|
});
|
|
2252
3485
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2253
|
-
action: "
|
|
3486
|
+
action: "MilkPowderCartonCodeRephotographyDetection",
|
|
2254
3487
|
version: "2026-04-28",
|
|
2255
3488
|
protocol: "HTTPS",
|
|
2256
3489
|
pathname: "/",
|
|
@@ -2260,28 +3493,28 @@ class Client extends openapi_core_1.default {
|
|
|
2260
3493
|
reqBodyType: "formData",
|
|
2261
3494
|
bodyType: "json",
|
|
2262
3495
|
});
|
|
2263
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3496
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MilkPowderCartonCodeRephotographyDetectionResponse({}));
|
|
2264
3497
|
}
|
|
2265
3498
|
/**
|
|
2266
|
-
*
|
|
3499
|
+
* Reviews infant formula carton code images based on recapture detection and element localization using multimodal foundation models. It targets photos of infant formula products, outer cartons, and carton codes captured during channel inspections. It determines whether images are non-recaptured, recaptured, or suspected recaptures, and localizes visible infant formula products, outer cartons, and code regions to provide a structured basis for image review and manual verification.
|
|
2267
3500
|
*
|
|
2268
3501
|
* @remarks
|
|
2269
|
-
* ## Scenarios
|
|
2270
|
-
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
2271
|
-
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
2272
|
-
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
2273
3502
|
* ## Features
|
|
2274
|
-
* -
|
|
2275
|
-
* -
|
|
2276
|
-
* -
|
|
2277
|
-
* -
|
|
3503
|
+
* - Three-state recapture detection: When photoStatus is 0, 1, or 2, it indicates non-recapture, recapture, or suspected recapture, respectively. The isFake, isSuspect, and score fields are also returned.
|
|
3504
|
+
* - Subject and code area grounding: Prioritizes the grounding of individual milk powder products and outer boxes, and supplements clear box codes, barcodes, and QR code areas. The milk powder subject can still be grounded even if no box code is present.
|
|
3505
|
+
* - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
|
|
3506
|
+
* - Supports a single HTTPS image as input. The supplementary grounding returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the grounding is complete.
|
|
3507
|
+
* ## Scenarios
|
|
3508
|
+
* - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
|
|
3509
|
+
* - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
|
|
3510
|
+
* - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
|
|
2278
3511
|
*
|
|
2279
|
-
* @param request -
|
|
2280
|
-
* @returns
|
|
3512
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
3513
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2281
3514
|
*/
|
|
2282
|
-
async
|
|
3515
|
+
async milkPowderCartonCodeRephotographyDetection(request) {
|
|
2283
3516
|
let runtime = new $dara.RuntimeOptions({});
|
|
2284
|
-
return await this.
|
|
3517
|
+
return await this.milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2285
3518
|
}
|
|
2286
3519
|
/**
|
|
2287
3520
|
* An intelligent logistics parcel review product built on the collaboration of a multimodal large language model (MLLM) and dedicated vision algorithms. It targets automated compliance review for the "piece-weight-dimension" stage in e-commerce logistics. The product performs structured review across multiple dimensions, including bounding box validity, bounding box fit, and foreign object interference for parcels on scanning platforms. It supports different hardware capture scenarios such as white and green background boards, and outputs Boolean review conclusions with Chinese-language reason descriptions that can be directly integrated with business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
|
|
@@ -2356,17 +3589,7 @@ class Client extends openapi_core_1.default {
|
|
|
2356
3589
|
return await this.packageWeightSizeCheckWithOptions(request, runtime);
|
|
2357
3590
|
}
|
|
2358
3591
|
/**
|
|
2359
|
-
*
|
|
2360
|
-
* Applicable scenarios:
|
|
2361
|
-
* 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
|
|
2362
|
-
* 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
|
|
2363
|
-
* 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
|
|
2364
|
-
*
|
|
2365
|
-
* @remarks
|
|
2366
|
-
* 1. Multi-image input: image_url is a required array of HTTPS image URLs.
|
|
2367
|
-
* 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
|
|
2368
|
-
* 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
|
|
2369
|
-
* 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
|
|
3592
|
+
* 宠物健康分析
|
|
2370
3593
|
*
|
|
2371
3594
|
* @param tmpReq - PetHealthAnalysisRequest
|
|
2372
3595
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2406,17 +3629,7 @@ class Client extends openapi_core_1.default {
|
|
|
2406
3629
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PetHealthAnalysisResponse({}));
|
|
2407
3630
|
}
|
|
2408
3631
|
/**
|
|
2409
|
-
*
|
|
2410
|
-
* Applicable scenarios:
|
|
2411
|
-
* 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
|
|
2412
|
-
* 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
|
|
2413
|
-
* 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
|
|
2414
|
-
*
|
|
2415
|
-
* @remarks
|
|
2416
|
-
* 1. Multi-image input: image_url is a required array of HTTPS image URLs.
|
|
2417
|
-
* 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
|
|
2418
|
-
* 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
|
|
2419
|
-
* 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
|
|
3632
|
+
* 宠物健康分析
|
|
2420
3633
|
*
|
|
2421
3634
|
* @param request - PetHealthAnalysisRequest
|
|
2422
3635
|
* @returns PetHealthAnalysisResponse
|
|
@@ -2709,28 +3922,315 @@ class Client extends openapi_core_1.default {
|
|
|
2709
3922
|
* |  | 0.4 | true |
|
|
2710
3923
|
* |  | 0.4 | false |
|
|
2711
3924
|
*
|
|
2712
|
-
* @param request - SizeChartDetectRequest
|
|
2713
|
-
* @returns SizeChartDetectResponse
|
|
3925
|
+
* @param request - SizeChartDetectRequest
|
|
3926
|
+
* @returns SizeChartDetectResponse
|
|
3927
|
+
*/
|
|
3928
|
+
async sizeChartDetect(request) {
|
|
3929
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3930
|
+
return await this.sizeChartDetectWithOptions(request, runtime);
|
|
3931
|
+
}
|
|
3932
|
+
/**
|
|
3933
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
3934
|
+
*
|
|
3935
|
+
* @remarks
|
|
3936
|
+
* ## Product Introduction
|
|
3937
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
3938
|
+
* ## Common scenarios
|
|
3939
|
+
* * Size chart: Extracts size charts from apparel category images into text.
|
|
3940
|
+
*
|
|
3941
|
+
* * Package weight/dimensions: Extracts package weight and dimension information from images.
|
|
3942
|
+
* ## Functions and features
|
|
3943
|
+
* The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
|
|
3944
|
+
* Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
|
|
3945
|
+
* ## Comparison
|
|
3946
|
+
* | **Input image** | **Output result** |
|
|
3947
|
+
* | --- | --- |
|
|
3948
|
+
* |  | {
|
|
3949
|
+
* "SizeChart": [
|
|
3950
|
+
* {
|
|
3951
|
+
* "尺码": {
|
|
3952
|
+
* "value": "S"
|
|
3953
|
+
* },
|
|
3954
|
+
* "腰围": {
|
|
3955
|
+
* "unit": "CM",
|
|
3956
|
+
* "value": 58
|
|
3957
|
+
* },
|
|
3958
|
+
* "裙长": {
|
|
3959
|
+
* "unit": "CM",
|
|
3960
|
+
* "value": 81
|
|
3961
|
+
* },
|
|
3962
|
+
* "体重建议": {
|
|
3963
|
+
* "unit": "kg",
|
|
3964
|
+
* "lower_value": 40,
|
|
3965
|
+
* "upper_value": 47.5
|
|
3966
|
+
* }
|
|
3967
|
+
* },
|
|
3968
|
+
* {
|
|
3969
|
+
* "尺码": {
|
|
3970
|
+
* "value": "M"
|
|
3971
|
+
* },
|
|
3972
|
+
* "腰围": {
|
|
3973
|
+
* "unit": "CM",
|
|
3974
|
+
* "value": 59
|
|
3975
|
+
* },
|
|
3976
|
+
* "裙长": {
|
|
3977
|
+
* "unit": "CM",
|
|
3978
|
+
* "value": 82
|
|
3979
|
+
* },
|
|
3980
|
+
* "体重建议": {
|
|
3981
|
+
* "unit": "kg",
|
|
3982
|
+
* "lower_value": 45,
|
|
3983
|
+
* "upper_value": 52.5
|
|
3984
|
+
* }
|
|
3985
|
+
* },
|
|
3986
|
+
* {
|
|
3987
|
+
* "尺码": {
|
|
3988
|
+
* "value": "L"
|
|
3989
|
+
* },
|
|
3990
|
+
* "腰围": {
|
|
3991
|
+
* "unit": "CM",
|
|
3992
|
+
* "value": 60
|
|
3993
|
+
* },
|
|
3994
|
+
* "裙长": {
|
|
3995
|
+
* "unit": "CM",
|
|
3996
|
+
* "value": 83
|
|
3997
|
+
* },
|
|
3998
|
+
* "体重建议": {
|
|
3999
|
+
* "unit": "kg",
|
|
4000
|
+
* "lower_value": 50,
|
|
4001
|
+
* "upper_value": 57.5
|
|
4002
|
+
* }
|
|
4003
|
+
* },
|
|
4004
|
+
* {
|
|
4005
|
+
* "尺码": {
|
|
4006
|
+
* "value": "XL"
|
|
4007
|
+
* },
|
|
4008
|
+
* "腰围": {
|
|
4009
|
+
* "unit": "CM",
|
|
4010
|
+
* "value": 61
|
|
4011
|
+
* },
|
|
4012
|
+
* "裙长": {
|
|
4013
|
+
* "unit": "CM",
|
|
4014
|
+
* "value": 84
|
|
4015
|
+
* },
|
|
4016
|
+
* "体重建议": {
|
|
4017
|
+
* "unit": "kg",
|
|
4018
|
+
* "lower_value": 55,
|
|
4019
|
+
* "upper_value": 62.5
|
|
4020
|
+
* }
|
|
4021
|
+
* },
|
|
4022
|
+
* {
|
|
4023
|
+
* "尺码": {
|
|
4024
|
+
* "value": "2XL"
|
|
4025
|
+
* },
|
|
4026
|
+
* "腰围": {
|
|
4027
|
+
* "unit": "CM",
|
|
4028
|
+
* "value": 62
|
|
4029
|
+
* },
|
|
4030
|
+
* "裙长": {
|
|
4031
|
+
* "unit": "CM",
|
|
4032
|
+
* "value": 85
|
|
4033
|
+
* },
|
|
4034
|
+
* "体重建议": {
|
|
4035
|
+
* "unit": "kg",
|
|
4036
|
+
* "lower_value": 60,
|
|
4037
|
+
* "upper_value": 67.5
|
|
4038
|
+
* }
|
|
4039
|
+
* }
|
|
4040
|
+
* \\],
|
|
4041
|
+
* "SizeChartAttributes": [
|
|
4042
|
+
* "尺码",
|
|
4043
|
+
* "裙长",
|
|
4044
|
+
* "腰围",
|
|
4045
|
+
* "体重建议"
|
|
4046
|
+
* \\],
|
|
4047
|
+
* "IntersectionAttributes": [
|
|
4048
|
+
* "尺码",
|
|
4049
|
+
* "裙长",
|
|
4050
|
+
* "腰围(拉伸)",
|
|
4051
|
+
* "体重建议"
|
|
4052
|
+
* \\]
|
|
4053
|
+
* } |
|
|
4054
|
+
*
|
|
4055
|
+
* @param tmpReq - SizeChartExtractRequest
|
|
4056
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4057
|
+
* @returns SizeChartExtractResponse
|
|
4058
|
+
*/
|
|
4059
|
+
async sizeChartExtractWithOptions(tmpReq, runtime) {
|
|
4060
|
+
tmpReq.validate();
|
|
4061
|
+
let request = new $_model.SizeChartExtractShrinkRequest({});
|
|
4062
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4063
|
+
if (!$dara.isNull(tmpReq.columnNameList)) {
|
|
4064
|
+
request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
4065
|
+
}
|
|
4066
|
+
let query = {};
|
|
4067
|
+
if (!$dara.isNull(request.columnNameListShrink)) {
|
|
4068
|
+
query["ColumnNameList"] = request.columnNameListShrink;
|
|
4069
|
+
}
|
|
4070
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
4071
|
+
query["ImageUrl"] = request.imageUrl;
|
|
4072
|
+
}
|
|
4073
|
+
if (!$dara.isNull(request.languageModel)) {
|
|
4074
|
+
query["LanguageModel"] = request.languageModel;
|
|
4075
|
+
}
|
|
4076
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4077
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4078
|
+
});
|
|
4079
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4080
|
+
action: "SizeChartExtract",
|
|
4081
|
+
version: "2026-04-28",
|
|
4082
|
+
protocol: "HTTPS",
|
|
4083
|
+
pathname: "/",
|
|
4084
|
+
method: "POST",
|
|
4085
|
+
authType: "AK",
|
|
4086
|
+
style: "RPC",
|
|
4087
|
+
reqBodyType: "formData",
|
|
4088
|
+
bodyType: "json",
|
|
4089
|
+
});
|
|
4090
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractResponse({}));
|
|
4091
|
+
}
|
|
4092
|
+
/**
|
|
4093
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4094
|
+
*
|
|
4095
|
+
* @remarks
|
|
4096
|
+
* ## Product Introduction
|
|
4097
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4098
|
+
* ## Common scenarios
|
|
4099
|
+
* * Size chart: Extracts size charts from apparel category images into text.
|
|
4100
|
+
*
|
|
4101
|
+
* * Package weight/dimensions: Extracts package weight and dimension information from images.
|
|
4102
|
+
* ## Functions and features
|
|
4103
|
+
* The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
|
|
4104
|
+
* Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
|
|
4105
|
+
* ## Comparison
|
|
4106
|
+
* | **Input image** | **Output result** |
|
|
4107
|
+
* | --- | --- |
|
|
4108
|
+
* |  | {
|
|
4109
|
+
* "SizeChart": [
|
|
4110
|
+
* {
|
|
4111
|
+
* "尺码": {
|
|
4112
|
+
* "value": "S"
|
|
4113
|
+
* },
|
|
4114
|
+
* "腰围": {
|
|
4115
|
+
* "unit": "CM",
|
|
4116
|
+
* "value": 58
|
|
4117
|
+
* },
|
|
4118
|
+
* "裙长": {
|
|
4119
|
+
* "unit": "CM",
|
|
4120
|
+
* "value": 81
|
|
4121
|
+
* },
|
|
4122
|
+
* "体重建议": {
|
|
4123
|
+
* "unit": "kg",
|
|
4124
|
+
* "lower_value": 40,
|
|
4125
|
+
* "upper_value": 47.5
|
|
4126
|
+
* }
|
|
4127
|
+
* },
|
|
4128
|
+
* {
|
|
4129
|
+
* "尺码": {
|
|
4130
|
+
* "value": "M"
|
|
4131
|
+
* },
|
|
4132
|
+
* "腰围": {
|
|
4133
|
+
* "unit": "CM",
|
|
4134
|
+
* "value": 59
|
|
4135
|
+
* },
|
|
4136
|
+
* "裙长": {
|
|
4137
|
+
* "unit": "CM",
|
|
4138
|
+
* "value": 82
|
|
4139
|
+
* },
|
|
4140
|
+
* "体重建议": {
|
|
4141
|
+
* "unit": "kg",
|
|
4142
|
+
* "lower_value": 45,
|
|
4143
|
+
* "upper_value": 52.5
|
|
4144
|
+
* }
|
|
4145
|
+
* },
|
|
4146
|
+
* {
|
|
4147
|
+
* "尺码": {
|
|
4148
|
+
* "value": "L"
|
|
4149
|
+
* },
|
|
4150
|
+
* "腰围": {
|
|
4151
|
+
* "unit": "CM",
|
|
4152
|
+
* "value": 60
|
|
4153
|
+
* },
|
|
4154
|
+
* "裙长": {
|
|
4155
|
+
* "unit": "CM",
|
|
4156
|
+
* "value": 83
|
|
4157
|
+
* },
|
|
4158
|
+
* "体重建议": {
|
|
4159
|
+
* "unit": "kg",
|
|
4160
|
+
* "lower_value": 50,
|
|
4161
|
+
* "upper_value": 57.5
|
|
4162
|
+
* }
|
|
4163
|
+
* },
|
|
4164
|
+
* {
|
|
4165
|
+
* "尺码": {
|
|
4166
|
+
* "value": "XL"
|
|
4167
|
+
* },
|
|
4168
|
+
* "腰围": {
|
|
4169
|
+
* "unit": "CM",
|
|
4170
|
+
* "value": 61
|
|
4171
|
+
* },
|
|
4172
|
+
* "裙长": {
|
|
4173
|
+
* "unit": "CM",
|
|
4174
|
+
* "value": 84
|
|
4175
|
+
* },
|
|
4176
|
+
* "体重建议": {
|
|
4177
|
+
* "unit": "kg",
|
|
4178
|
+
* "lower_value": 55,
|
|
4179
|
+
* "upper_value": 62.5
|
|
4180
|
+
* }
|
|
4181
|
+
* },
|
|
4182
|
+
* {
|
|
4183
|
+
* "尺码": {
|
|
4184
|
+
* "value": "2XL"
|
|
4185
|
+
* },
|
|
4186
|
+
* "腰围": {
|
|
4187
|
+
* "unit": "CM",
|
|
4188
|
+
* "value": 62
|
|
4189
|
+
* },
|
|
4190
|
+
* "裙长": {
|
|
4191
|
+
* "unit": "CM",
|
|
4192
|
+
* "value": 85
|
|
4193
|
+
* },
|
|
4194
|
+
* "体重建议": {
|
|
4195
|
+
* "unit": "kg",
|
|
4196
|
+
* "lower_value": 60,
|
|
4197
|
+
* "upper_value": 67.5
|
|
4198
|
+
* }
|
|
4199
|
+
* }
|
|
4200
|
+
* \\],
|
|
4201
|
+
* "SizeChartAttributes": [
|
|
4202
|
+
* "尺码",
|
|
4203
|
+
* "裙长",
|
|
4204
|
+
* "腰围",
|
|
4205
|
+
* "体重建议"
|
|
4206
|
+
* \\],
|
|
4207
|
+
* "IntersectionAttributes": [
|
|
4208
|
+
* "尺码",
|
|
4209
|
+
* "裙长",
|
|
4210
|
+
* "腰围(拉伸)",
|
|
4211
|
+
* "体重建议"
|
|
4212
|
+
* \\]
|
|
4213
|
+
* } |
|
|
4214
|
+
*
|
|
4215
|
+
* @param request - SizeChartExtractRequest
|
|
4216
|
+
* @returns SizeChartExtractResponse
|
|
2714
4217
|
*/
|
|
2715
|
-
async
|
|
4218
|
+
async sizeChartExtract(request) {
|
|
2716
4219
|
let runtime = new $dara.RuntimeOptions({});
|
|
2717
|
-
return await this.
|
|
4220
|
+
return await this.sizeChartExtractWithOptions(request, runtime);
|
|
2718
4221
|
}
|
|
2719
4222
|
/**
|
|
2720
|
-
*
|
|
4223
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
2721
4224
|
*
|
|
2722
4225
|
* @remarks
|
|
2723
|
-
* ##
|
|
2724
|
-
*
|
|
2725
|
-
*
|
|
2726
|
-
*
|
|
2727
|
-
*
|
|
2728
|
-
*
|
|
2729
|
-
* ##
|
|
2730
|
-
*
|
|
2731
|
-
* Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
|
|
2732
|
-
* ## Comparison
|
|
2733
|
-
* | **Input image** | **Output result** |
|
|
4226
|
+
* ## Scenarios
|
|
4227
|
+
* Size charts: Extracts size charts for apparel categories into text.
|
|
4228
|
+
* Package weight and dimensions: Extracts package weight and dimension information from images.
|
|
4229
|
+
* ## Feature description
|
|
4230
|
+
* The size chart extraction service is based on multimodal foundation models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. 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 for precise 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.
|
|
4231
|
+
* Core capabilities: 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 large-scale calls.
|
|
4232
|
+
* ## Example results
|
|
4233
|
+
* | Input image | Output result |
|
|
2734
4234
|
* | --- | --- |
|
|
2735
4235
|
* |  | {
|
|
2736
4236
|
* "SizeChart": [
|
|
@@ -2826,26 +4326,26 @@ class Client extends openapi_core_1.default {
|
|
|
2826
4326
|
* }
|
|
2827
4327
|
* \\],
|
|
2828
4328
|
* "SizeChartAttributes": [
|
|
2829
|
-
* "
|
|
2830
|
-
* "
|
|
2831
|
-
* "
|
|
2832
|
-
* "
|
|
4329
|
+
* "Size",
|
|
4330
|
+
* "Skirt length",
|
|
4331
|
+
* "Waist",
|
|
4332
|
+
* "Weight recommendation"
|
|
2833
4333
|
* \\],
|
|
2834
4334
|
* "IntersectionAttributes": [
|
|
2835
|
-
* "
|
|
2836
|
-
* "
|
|
2837
|
-
* "
|
|
2838
|
-
* "
|
|
4335
|
+
* "Size",
|
|
4336
|
+
* "Skirt length",
|
|
4337
|
+
* "Waist (stretched)",
|
|
4338
|
+
* "Weight recommendation"
|
|
2839
4339
|
* \\]
|
|
2840
4340
|
* } |
|
|
2841
4341
|
*
|
|
2842
|
-
* @param tmpReq -
|
|
4342
|
+
* @param tmpReq - SizeChartExtractAsyncRequest
|
|
2843
4343
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2844
|
-
* @returns
|
|
4344
|
+
* @returns SizeChartExtractAsyncResponse
|
|
2845
4345
|
*/
|
|
2846
|
-
async
|
|
4346
|
+
async sizeChartExtractAsyncWithOptions(tmpReq, runtime) {
|
|
2847
4347
|
tmpReq.validate();
|
|
2848
|
-
let request = new $_model.
|
|
4348
|
+
let request = new $_model.SizeChartExtractAsyncShrinkRequest({});
|
|
2849
4349
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2850
4350
|
if (!$dara.isNull(tmpReq.columnNameList)) {
|
|
2851
4351
|
request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
@@ -2864,7 +4364,7 @@ class Client extends openapi_core_1.default {
|
|
|
2864
4364
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2865
4365
|
});
|
|
2866
4366
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2867
|
-
action: "
|
|
4367
|
+
action: "SizeChartExtractAsync",
|
|
2868
4368
|
version: "2026-04-28",
|
|
2869
4369
|
protocol: "HTTPS",
|
|
2870
4370
|
pathname: "/",
|
|
@@ -2874,23 +4374,20 @@ class Client extends openapi_core_1.default {
|
|
|
2874
4374
|
reqBodyType: "formData",
|
|
2875
4375
|
bodyType: "json",
|
|
2876
4376
|
});
|
|
2877
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
4377
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractAsyncResponse({}));
|
|
2878
4378
|
}
|
|
2879
4379
|
/**
|
|
2880
|
-
*
|
|
4380
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
2881
4381
|
*
|
|
2882
4382
|
* @remarks
|
|
2883
|
-
* ##
|
|
2884
|
-
*
|
|
2885
|
-
*
|
|
2886
|
-
*
|
|
2887
|
-
*
|
|
2888
|
-
*
|
|
2889
|
-
* ##
|
|
2890
|
-
*
|
|
2891
|
-
* Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
|
|
2892
|
-
* ## Comparison
|
|
2893
|
-
* | **Input image** | **Output result** |
|
|
4383
|
+
* ## Scenarios
|
|
4384
|
+
* Size charts: Extracts size charts for apparel categories into text.
|
|
4385
|
+
* Package weight and dimensions: Extracts package weight and dimension information from images.
|
|
4386
|
+
* ## Feature description
|
|
4387
|
+
* The size chart extraction service is based on multimodal foundation models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. 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 for precise 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.
|
|
4388
|
+
* Core capabilities: 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 large-scale calls.
|
|
4389
|
+
* ## Example results
|
|
4390
|
+
* | Input image | Output result |
|
|
2894
4391
|
* | --- | --- |
|
|
2895
4392
|
* |  | {
|
|
2896
4393
|
* "SizeChart": [
|
|
@@ -2986,25 +4483,86 @@ class Client extends openapi_core_1.default {
|
|
|
2986
4483
|
* }
|
|
2987
4484
|
* \\],
|
|
2988
4485
|
* "SizeChartAttributes": [
|
|
2989
|
-
* "
|
|
2990
|
-
* "
|
|
2991
|
-
* "
|
|
2992
|
-
* "
|
|
4486
|
+
* "Size",
|
|
4487
|
+
* "Skirt length",
|
|
4488
|
+
* "Waist",
|
|
4489
|
+
* "Weight recommendation"
|
|
2993
4490
|
* \\],
|
|
2994
4491
|
* "IntersectionAttributes": [
|
|
2995
|
-
* "
|
|
2996
|
-
* "
|
|
2997
|
-
* "
|
|
2998
|
-
* "
|
|
4492
|
+
* "Size",
|
|
4493
|
+
* "Skirt length",
|
|
4494
|
+
* "Waist (stretched)",
|
|
4495
|
+
* "Weight recommendation"
|
|
2999
4496
|
* \\]
|
|
3000
4497
|
* } |
|
|
3001
4498
|
*
|
|
3002
|
-
* @param request -
|
|
3003
|
-
* @returns
|
|
4499
|
+
* @param request - SizeChartExtractAsyncRequest
|
|
4500
|
+
* @returns SizeChartExtractAsyncResponse
|
|
3004
4501
|
*/
|
|
3005
|
-
async
|
|
4502
|
+
async sizeChartExtractAsync(request) {
|
|
3006
4503
|
let runtime = new $dara.RuntimeOptions({});
|
|
3007
|
-
return await this.
|
|
4504
|
+
return await this.sizeChartExtractAsyncWithOptions(request, runtime);
|
|
4505
|
+
}
|
|
4506
|
+
/**
|
|
4507
|
+
* Reviews store photos based on storefront scene recognition and multimodal large model element localization. It outputs storefront scene classifications and confidence details, and localizes storefronts, signboards, entrances, and business signs. It is applicable to store data collection, storefront photo classification, and inspection reviews.
|
|
4508
|
+
*
|
|
4509
|
+
* @remarks
|
|
4510
|
+
* ## Common scenarios
|
|
4511
|
+
* - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
|
|
4512
|
+
* - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
|
|
4513
|
+
* - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
|
|
4514
|
+
* ## Features
|
|
4515
|
+
* - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
|
|
4516
|
+
* - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
|
|
4517
|
+
* - Readable text extraction: Extracts only clear short text. It does not infer business status based on whether the door is open or closed, and does not infer addresses or store ownership.
|
|
4518
|
+
* - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
|
|
4519
|
+
*
|
|
4520
|
+
* @param request - StorefrontSceneRecognitionRequest
|
|
4521
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4522
|
+
* @returns StorefrontSceneRecognitionResponse
|
|
4523
|
+
*/
|
|
4524
|
+
async storefrontSceneRecognitionWithOptions(request, runtime) {
|
|
4525
|
+
request.validate();
|
|
4526
|
+
let query = {};
|
|
4527
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
4528
|
+
query["ImageUrl"] = request.imageUrl;
|
|
4529
|
+
}
|
|
4530
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4531
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4532
|
+
});
|
|
4533
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4534
|
+
action: "StorefrontSceneRecognition",
|
|
4535
|
+
version: "2026-04-28",
|
|
4536
|
+
protocol: "HTTPS",
|
|
4537
|
+
pathname: "/",
|
|
4538
|
+
method: "POST",
|
|
4539
|
+
authType: "AK",
|
|
4540
|
+
style: "RPC",
|
|
4541
|
+
reqBodyType: "formData",
|
|
4542
|
+
bodyType: "json",
|
|
4543
|
+
});
|
|
4544
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.StorefrontSceneRecognitionResponse({}));
|
|
4545
|
+
}
|
|
4546
|
+
/**
|
|
4547
|
+
* Reviews store photos based on storefront scene recognition and multimodal large model element localization. It outputs storefront scene classifications and confidence details, and localizes storefronts, signboards, entrances, and business signs. It is applicable to store data collection, storefront photo classification, and inspection reviews.
|
|
4548
|
+
*
|
|
4549
|
+
* @remarks
|
|
4550
|
+
* ## Common scenarios
|
|
4551
|
+
* - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
|
|
4552
|
+
* - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
|
|
4553
|
+
* - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
|
|
4554
|
+
* ## Features
|
|
4555
|
+
* - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
|
|
4556
|
+
* - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
|
|
4557
|
+
* - Readable text extraction: Extracts only clear short text. It does not infer business status based on whether the door is open or closed, and does not infer addresses or store ownership.
|
|
4558
|
+
* - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
|
|
4559
|
+
*
|
|
4560
|
+
* @param request - StorefrontSceneRecognitionRequest
|
|
4561
|
+
* @returns StorefrontSceneRecognitionResponse
|
|
4562
|
+
*/
|
|
4563
|
+
async storefrontSceneRecognition(request) {
|
|
4564
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4565
|
+
return await this.storefrontSceneRecognitionWithOptions(request, runtime);
|
|
3008
4566
|
}
|
|
3009
4567
|
/**
|
|
3010
4568
|
* Generates product detail page assets automatically based on a multimodal large language model (MLLM) and structured image-text extraction, designed for product detail page asset completion scenarios on e-commerce platforms and for brand merchants. The caller pushes product information to be queried (product ID, title, brand, main image, and shop name). The service automatically locates matching products and performs consistency verification, then extracts size information and product attributes from the matching product details, and renders them into size charts and attribute charts (SVG) that can be directly used on detail pages. The service also returns structured detail copy classifications and processing notes.
|
|
@@ -3146,32 +4704,34 @@ class Client extends openapi_core_1.default {
|
|
|
3146
4704
|
return await this.textCorrectWithOptions(request, runtime);
|
|
3147
4705
|
}
|
|
3148
4706
|
/**
|
|
3149
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for
|
|
4707
|
+
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
|
|
3150
4708
|
*
|
|
3151
4709
|
* @remarks
|
|
3152
4710
|
* ## Product Introduction
|
|
3153
|
-
*
|
|
4711
|
+
* Maas-MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
|
|
3154
4712
|
* ## Common scenarios
|
|
3155
|
-
* - Product titles:
|
|
3156
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting.
|
|
3157
|
-
* - Product attributes: Product attribute terms are
|
|
3158
|
-
* - Customer service conversations: In customer service scenarios,
|
|
3159
|
-
*
|
|
4713
|
+
* - Product titles: Maas-MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
4714
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Maas-MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
|
|
4715
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
|
|
4716
|
+
* - Customer service conversations: In customer service scenarios, Maas-MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
4717
|
+
* Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
3160
4718
|
* ## Functions and features
|
|
3161
4719
|
* - **Supported language directions**
|
|
3162
|
-
*
|
|
4720
|
+
* Maas-MT large model translation supports mutual translation among more than 400 languages and language detection for query phrases in 31 languages and general scenarios in 35 languages.
|
|
4721
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
4722
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
3163
4723
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
3164
|
-
*
|
|
3165
|
-
* - **Supported text format types**
|
|
4724
|
+
* Maas-MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
4725
|
+
* - **Supported text format types for translation**
|
|
3166
4726
|
* Currently, text and html text types are supported.
|
|
3167
4727
|
* - **Translation intervention support**
|
|
3168
|
-
* Custom translation results are supported, including do-not-translate (ABC
|
|
4728
|
+
* Custom translation results are supported, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
3169
4729
|
* ## Translation quality comparison
|
|
3170
|
-
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation
|
|
4730
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
3171
4731
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
3172
4732
|
* | 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 |
|
|
3173
4733
|
* | 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 segmentation |
|
|
3174
|
-
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject
|
|
4734
|
+
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject description. The translation correctly identifies the product as a "key bag" rather than a "keychain", avoiding ambiguity present in other translations.
|
|
3175
4735
|
*
|
|
3176
4736
|
* @param tmpReq - TextTranslateRequest
|
|
3177
4737
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3223,32 +4783,34 @@ class Client extends openapi_core_1.default {
|
|
|
3223
4783
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
|
|
3224
4784
|
}
|
|
3225
4785
|
/**
|
|
3226
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for
|
|
4786
|
+
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
|
|
3227
4787
|
*
|
|
3228
4788
|
* @remarks
|
|
3229
4789
|
* ## Product Introduction
|
|
3230
|
-
*
|
|
4790
|
+
* Maas-MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
|
|
3231
4791
|
* ## Common scenarios
|
|
3232
|
-
* - Product titles:
|
|
3233
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting.
|
|
3234
|
-
* - Product attributes: Product attribute terms are
|
|
3235
|
-
* - Customer service conversations: In customer service scenarios,
|
|
3236
|
-
*
|
|
4792
|
+
* - Product titles: Maas-MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
4793
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Maas-MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
|
|
4794
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
|
|
4795
|
+
* - Customer service conversations: In customer service scenarios, Maas-MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
4796
|
+
* Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
3237
4797
|
* ## Functions and features
|
|
3238
4798
|
* - **Supported language directions**
|
|
3239
|
-
*
|
|
4799
|
+
* Maas-MT large model translation supports mutual translation among more than 400 languages and language detection for query phrases in 31 languages and general scenarios in 35 languages.
|
|
4800
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
4801
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
3240
4802
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
3241
|
-
*
|
|
3242
|
-
* - **Supported text format types**
|
|
4803
|
+
* Maas-MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
4804
|
+
* - **Supported text format types for translation**
|
|
3243
4805
|
* Currently, text and html text types are supported.
|
|
3244
4806
|
* - **Translation intervention support**
|
|
3245
|
-
* Custom translation results are supported, including do-not-translate (ABC
|
|
4807
|
+
* Custom translation results are supported, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
3246
4808
|
* ## Translation quality comparison
|
|
3247
|
-
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation
|
|
4809
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
3248
4810
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
3249
4811
|
* | 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 |
|
|
3250
4812
|
* | 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 segmentation |
|
|
3251
|
-
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject
|
|
4813
|
+
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject description. The translation correctly identifies the product as a "key bag" rather than a "keychain", avoiding ambiguity present in other translations.
|
|
3252
4814
|
*
|
|
3253
4815
|
* @param request - TextTranslateRequest
|
|
3254
4816
|
* @returns TextTranslateResponse
|
|
@@ -3258,25 +4820,148 @@ class Client extends openapi_core_1.default {
|
|
|
3258
4820
|
return await this.textTranslateWithOptions(request, runtime);
|
|
3259
4821
|
}
|
|
3260
4822
|
/**
|
|
3261
|
-
*
|
|
4823
|
+
* 文本翻译异步
|
|
4824
|
+
*
|
|
4825
|
+
* @remarks
|
|
4826
|
+
* ## 适用场景
|
|
4827
|
+
* * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
|
|
4828
|
+
*
|
|
4829
|
+
* * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
|
|
4830
|
+
*
|
|
4831
|
+
* * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
|
|
4832
|
+
*
|
|
4833
|
+
* * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
|
|
4834
|
+
*
|
|
4835
|
+
* 同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
|
|
4836
|
+
* ## 功能介绍
|
|
4837
|
+
* * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
|
|
4838
|
+
*
|
|
4839
|
+
* * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
|
|
4840
|
+
*
|
|
4841
|
+
* * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
|
|
4842
|
+
*
|
|
4843
|
+
* * **翻译效果对比**
|
|
4844
|
+
* | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
|
|
4845
|
+
* | --- | --- | --- | --- | --- |
|
|
4846
|
+
* | 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 | 商品主体更清晰 |
|
|
4847
|
+
* | 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 | 句式更完整,表述更清晰,断句更合理 |
|
|
4848
|
+
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
|
|
4849
|
+
* ## 接入准备与调用流程
|
|
4850
|
+
* 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
|
|
4851
|
+
* 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
|
|
4852
|
+
* 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
|
|
4853
|
+
*
|
|
4854
|
+
* @param tmpReq - TextTranslateAsyncRequest
|
|
4855
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4856
|
+
* @returns TextTranslateAsyncResponse
|
|
4857
|
+
*/
|
|
4858
|
+
async textTranslateAsyncWithOptions(tmpReq, runtime) {
|
|
4859
|
+
tmpReq.validate();
|
|
4860
|
+
let request = new $_model.TextTranslateAsyncShrinkRequest({});
|
|
4861
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4862
|
+
if (!$dara.isNull(tmpReq.sourceTextList)) {
|
|
4863
|
+
request.sourceTextListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
|
|
4864
|
+
}
|
|
4865
|
+
let query = {};
|
|
4866
|
+
if (!$dara.isNull(request.bizId)) {
|
|
4867
|
+
query["BizId"] = request.bizId;
|
|
4868
|
+
}
|
|
4869
|
+
if (!$dara.isNull(request.bizName)) {
|
|
4870
|
+
query["BizName"] = request.bizName;
|
|
4871
|
+
}
|
|
4872
|
+
if (!$dara.isNull(request.formatType)) {
|
|
4873
|
+
query["FormatType"] = request.formatType;
|
|
4874
|
+
}
|
|
4875
|
+
if (!$dara.isNull(request.glossary)) {
|
|
4876
|
+
query["Glossary"] = request.glossary;
|
|
4877
|
+
}
|
|
4878
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
4879
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
4880
|
+
}
|
|
4881
|
+
if (!$dara.isNull(request.sourceTextListShrink)) {
|
|
4882
|
+
query["SourceTextList"] = request.sourceTextListShrink;
|
|
4883
|
+
}
|
|
4884
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
4885
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
4886
|
+
}
|
|
4887
|
+
if (!$dara.isNull(request.translateScene)) {
|
|
4888
|
+
query["TranslateScene"] = request.translateScene;
|
|
4889
|
+
}
|
|
4890
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4891
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4892
|
+
});
|
|
4893
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4894
|
+
action: "TextTranslateAsync",
|
|
4895
|
+
version: "2026-04-28",
|
|
4896
|
+
protocol: "HTTPS",
|
|
4897
|
+
pathname: "/",
|
|
4898
|
+
method: "POST",
|
|
4899
|
+
authType: "AK",
|
|
4900
|
+
style: "RPC",
|
|
4901
|
+
reqBodyType: "formData",
|
|
4902
|
+
bodyType: "json",
|
|
4903
|
+
});
|
|
4904
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
|
|
4905
|
+
}
|
|
4906
|
+
/**
|
|
4907
|
+
* 文本翻译异步
|
|
4908
|
+
*
|
|
4909
|
+
* @remarks
|
|
4910
|
+
* ## 适用场景
|
|
4911
|
+
* * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
|
|
4912
|
+
*
|
|
4913
|
+
* * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
|
|
4914
|
+
*
|
|
4915
|
+
* * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
|
|
4916
|
+
*
|
|
4917
|
+
* * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
|
|
4918
|
+
*
|
|
4919
|
+
* 同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
|
|
4920
|
+
* ## 功能介绍
|
|
4921
|
+
* * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
|
|
4922
|
+
*
|
|
4923
|
+
* * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
|
|
4924
|
+
*
|
|
4925
|
+
* * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
|
|
4926
|
+
*
|
|
4927
|
+
* * **翻译效果对比**
|
|
4928
|
+
* | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
|
|
4929
|
+
* | --- | --- | --- | --- | --- |
|
|
4930
|
+
* | 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 | 商品主体更清晰 |
|
|
4931
|
+
* | 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 | 句式更完整,表述更清晰,断句更合理 |
|
|
4932
|
+
* | 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 fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
|
|
4933
|
+
* ## 接入准备与调用流程
|
|
4934
|
+
* 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
|
|
4935
|
+
* 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
|
|
4936
|
+
* 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
|
|
4937
|
+
*
|
|
4938
|
+
* @param request - TextTranslateAsyncRequest
|
|
4939
|
+
* @returns TextTranslateAsyncResponse
|
|
4940
|
+
*/
|
|
4941
|
+
async textTranslateAsync(request) {
|
|
4942
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4943
|
+
return await this.textTranslateAsyncWithOptions(request, runtime);
|
|
4944
|
+
}
|
|
4945
|
+
/**
|
|
4946
|
+
* 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.
|
|
3262
4947
|
*
|
|
3263
4948
|
* @remarks
|
|
3264
4949
|
* # Scenarios
|
|
3265
|
-
* -
|
|
3266
|
-
* -
|
|
3267
|
-
* - High-fidelity
|
|
3268
|
-
* -
|
|
3269
|
-
* -
|
|
3270
|
-
* - Multi-product and multi-selling
|
|
4950
|
+
* - Batch generation of product short videos for sellers and platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), adapting to product detail page video slots, product homepage displays, information feed placements, short video promotions, and event venue materials.
|
|
4951
|
+
* - Quick generation of the first batch of video materials for new product launches: When merchants have a large number of new products to launch, they only need to upload basic information such as product images and titles to quickly generate product showcase videos, model wearing videos, and spoken explanation videos, helping merchants quickly complete material deployment during the launch phase.
|
|
4952
|
+
* - High-fidelity clothing display: Generates model display videos that are closer to real commercial shooting effects based on product main images, focusing on optimizing capabilities such as pattern restoration, fabric texture retention, accurate color presentation, and stable and consistent details. It supports common e-commerce display methods such as wearing, turning, walking, close-up shots, and multi-angle switching.
|
|
4953
|
+
* - Generation of high-quality commercial shooting models: Built-in target audience model library, covering plus-size women, plus-size men, swimwear, girl style, light mature commuting, youth casual, business menswear, sports and fitness, and other body types, skin colors, and races. It supports various commercial shooting expressions such as standing display, side display, walking display, and partial close-ups.
|
|
4954
|
+
* - High-frequency e-commerce scenarios such as standard product explanations: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, home cleaning daily necessities, and 3C digital products. It can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
4955
|
+
* - Multi-product and multi-selling point testing to improve delivery efficiency: For information feed advertising, short video delivery, and content promotion scenarios, it can quickly generate multiple versions of video materials, making it easy for enterprises to verify the conversion effects of different selling points and presentation forms at a low cost, and improve delivery ROI.
|
|
3271
4956
|
* # Features
|
|
3272
|
-
* - Fully
|
|
3273
|
-
* - Highly stable generation with low waste rate:
|
|
3274
|
-
* - E-commerce
|
|
3275
|
-
* - Reference image
|
|
3276
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3277
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3278
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3279
|
-
* -
|
|
4957
|
+
* - Fully automatic end-to-end batch generation with zero prompt threshold: Callers only need to pass in the product image URL and title, and the system automatically completes the entire process from product understanding, storyboard planning to video generation, without the need to manually write prompts, select templates, or repeatedly adjust parameters. Built-in multiple agents such as product understanding, image quality inspection, script planning, and director camera movement greatly lower the threshold for use.
|
|
4958
|
+
* - Highly stable generation with a low waste rate: Adopts a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, and making the overall production cost more controllable.
|
|
4959
|
+
* - E-commerce exclusive product fidelity capability: Built-in multi-round quality inspection agent locks the product state throughout the video generation process (such as zippers will not be pulled open, sleeves will not be put down, and prints will not disappear), ensuring product consistency through multi-layer defense of script rewriting, explicit constraint injection, and failure-aware retry.
|
|
4960
|
+
* - Reference image first + 6-axis consistency check: Adopts the Reference-Image-First generation paradigm, using the original product image as the only visual source of truth, and automatically performs 6-dimensional VL diagnosis (color drift, pattern missing, contour deviation, structure addition/reduction, model matching, dirt detection) to fundamentally eliminate the problem of generated images not looking like the product.
|
|
4961
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5 to 30 seconds; the agent independently plans independent storyboards to display the product effects in different scenarios; it also supports a fixed scene mode to deeply display the product tonality under a unified visual style.
|
|
4962
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes such as bullet time, Grammy slow motion, 360° surround rotation, and model full-body rotation display, achieving deterministic output through segmented precise control.
|
|
4963
|
+
* - Model library and customization services: Built-in multi-type model resource library, supporting merchants to specify fixed models, customize exclusive model images, and bind brand visual personas for a long time to ensure brand visual consistency.
|
|
4964
|
+
* - Adapting to high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16, adapting to product detail page video slots, product homepage video displays, waterfall/information feed placements, event venue materials, and new product and promotional video generation.
|
|
3280
4965
|
*
|
|
3281
4966
|
* @param tmpReq - VideoGenerationRequest
|
|
3282
4967
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3322,25 +5007,25 @@ class Client extends openapi_core_1.default {
|
|
|
3322
5007
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
|
|
3323
5008
|
}
|
|
3324
5009
|
/**
|
|
3325
|
-
* The
|
|
5010
|
+
* 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.
|
|
3326
5011
|
*
|
|
3327
5012
|
* @remarks
|
|
3328
5013
|
* # Scenarios
|
|
3329
|
-
* -
|
|
3330
|
-
* -
|
|
3331
|
-
* - High-fidelity
|
|
3332
|
-
* -
|
|
3333
|
-
* -
|
|
3334
|
-
* - Multi-product and multi-selling
|
|
5014
|
+
* - Batch generation of product short videos for sellers and platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), adapting to product detail page video slots, product homepage displays, information feed placements, short video promotions, and event venue materials.
|
|
5015
|
+
* - Quick generation of the first batch of video materials for new product launches: When merchants have a large number of new products to launch, they only need to upload basic information such as product images and titles to quickly generate product showcase videos, model wearing videos, and spoken explanation videos, helping merchants quickly complete material deployment during the launch phase.
|
|
5016
|
+
* - High-fidelity clothing display: Generates model display videos that are closer to real commercial shooting effects based on product main images, focusing on optimizing capabilities such as pattern restoration, fabric texture retention, accurate color presentation, and stable and consistent details. It supports common e-commerce display methods such as wearing, turning, walking, close-up shots, and multi-angle switching.
|
|
5017
|
+
* - Generation of high-quality commercial shooting models: Built-in target audience model library, covering plus-size women, plus-size men, swimwear, girl style, light mature commuting, youth casual, business menswear, sports and fitness, and other body types, skin colors, and races. It supports various commercial shooting expressions such as standing display, side display, walking display, and partial close-ups.
|
|
5018
|
+
* - High-frequency e-commerce scenarios such as standard product explanations: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, home cleaning daily necessities, and 3C digital products. It can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
5019
|
+
* - Multi-product and multi-selling point testing to improve delivery efficiency: For information feed advertising, short video delivery, and content promotion scenarios, it can quickly generate multiple versions of video materials, making it easy for enterprises to verify the conversion effects of different selling points and presentation forms at a low cost, and improve delivery ROI.
|
|
3335
5020
|
* # Features
|
|
3336
|
-
* - Fully
|
|
3337
|
-
* - Highly stable generation with low waste rate:
|
|
3338
|
-
* - E-commerce
|
|
3339
|
-
* - Reference image
|
|
3340
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3341
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3342
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3343
|
-
* -
|
|
5021
|
+
* - Fully automatic end-to-end batch generation with zero prompt threshold: Callers only need to pass in the product image URL and title, and the system automatically completes the entire process from product understanding, storyboard planning to video generation, without the need to manually write prompts, select templates, or repeatedly adjust parameters. Built-in multiple agents such as product understanding, image quality inspection, script planning, and director camera movement greatly lower the threshold for use.
|
|
5022
|
+
* - Highly stable generation with a low waste rate: Adopts a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, and making the overall production cost more controllable.
|
|
5023
|
+
* - E-commerce exclusive product fidelity capability: Built-in multi-round quality inspection agent locks the product state throughout the video generation process (such as zippers will not be pulled open, sleeves will not be put down, and prints will not disappear), ensuring product consistency through multi-layer defense of script rewriting, explicit constraint injection, and failure-aware retry.
|
|
5024
|
+
* - Reference image first + 6-axis consistency check: Adopts the Reference-Image-First generation paradigm, using the original product image as the only visual source of truth, and automatically performs 6-dimensional VL diagnosis (color drift, pattern missing, contour deviation, structure addition/reduction, model matching, dirt detection) to fundamentally eliminate the problem of generated images not looking like the product.
|
|
5025
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5 to 30 seconds; the agent independently plans independent storyboards to display the product effects in different scenarios; it also supports a fixed scene mode to deeply display the product tonality under a unified visual style.
|
|
5026
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes such as bullet time, Grammy slow motion, 360° surround rotation, and model full-body rotation display, achieving deterministic output through segmented precise control.
|
|
5027
|
+
* - Model library and customization services: Built-in multi-type model resource library, supporting merchants to specify fixed models, customize exclusive model images, and bind brand visual personas for a long time to ensure brand visual consistency.
|
|
5028
|
+
* - Adapting to high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16, adapting to product detail page video slots, product homepage video displays, waterfall/information feed placements, event venue materials, and new product and promotional video generation.
|
|
3344
5029
|
*
|
|
3345
5030
|
* @param request - VideoGenerationRequest
|
|
3346
5031
|
* @returns VideoGenerationResponse
|
|
@@ -3350,28 +5035,28 @@ class Client extends openapi_core_1.default {
|
|
|
3350
5035
|
return await this.videoGenerationWithOptions(request, runtime);
|
|
3351
5036
|
}
|
|
3352
5037
|
/**
|
|
3353
|
-
*
|
|
5038
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3354
5039
|
*
|
|
3355
5040
|
* @remarks
|
|
3356
|
-
* ##
|
|
3357
|
-
* The video translation API translates
|
|
3358
|
-
*
|
|
3359
|
-
* ##
|
|
3360
|
-
* * **Cross-border e-commerce video localization**: Translates
|
|
5041
|
+
* ## Product introduction
|
|
5042
|
+
* The video translation API translates speech and on-screen text in videos into a target language. You can select speech and subtitle translation, on-screen text translation, or both. This API is suitable for scenarios such as multi-language distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5043
|
+
* This API uses asynchronous invocation. After you submit a translation task, you obtain a TaskId. You can use the query API to poll the task status until the task is completed and then obtain the result.
|
|
5044
|
+
* ## 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.
|
|
3361
5046
|
*
|
|
3362
|
-
* * **International social media marketing**: Localizes text
|
|
5047
|
+
* * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
3363
5048
|
*
|
|
3364
|
-
* * **Global brand advertising**: Automatically generates video versions in the
|
|
5049
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
|
|
3365
5050
|
*
|
|
3366
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3367
|
-
* ##
|
|
5051
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5052
|
+
* ## Features
|
|
3368
5053
|
* | Feature | Identifier | Description |
|
|
3369
5054
|
* | --- | --- | --- |
|
|
3370
|
-
* |
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3373
|
-
*
|
|
3374
|
-
*
|
|
5055
|
+
* | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
|
|
5056
|
+
* | On-screen text translation | visual | Translates embedded text in video frames, such as subtitles and selling points, and erases the original text. You can enable quality check for on-screen text processing by using the API. |
|
|
5057
|
+
* Speech and subtitle translation (speech) generates target language voiceovers based on the spoken content in the video and synthesizes them into the video. It does not erase original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
|
|
5058
|
+
* On-screen text translation (visual) targets recognizable text in the original video language within the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech and subtitle translation first. The text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5059
|
+
* When both speech and visual are selected, the speech and subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video. The translated voiceover 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 the speech and subtitle phase does not erase or add subtitles. The subsequent on-screen text processing may still change the original subtitles.
|
|
3375
5060
|
*
|
|
3376
5061
|
* @param tmpReq - VideoTranslationRequest
|
|
3377
5062
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3384,10 +5069,23 @@ class Client extends openapi_core_1.default {
|
|
|
3384
5069
|
if (!$dara.isNull(tmpReq.capabilities)) {
|
|
3385
5070
|
request.capabilitiesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.capabilities, "Capabilities", "json");
|
|
3386
5071
|
}
|
|
5072
|
+
let query = {};
|
|
5073
|
+
if (!$dara.isNull(request.eraseOnly)) {
|
|
5074
|
+
query["EraseOnly"] = request.eraseOnly;
|
|
5075
|
+
}
|
|
5076
|
+
if (!$dara.isNull(request.removeLogo)) {
|
|
5077
|
+
query["RemoveLogo"] = request.removeLogo;
|
|
5078
|
+
}
|
|
5079
|
+
if (!$dara.isNull(request.subtitleMode)) {
|
|
5080
|
+
query["SubtitleMode"] = request.subtitleMode;
|
|
5081
|
+
}
|
|
3387
5082
|
let body = {};
|
|
3388
5083
|
if (!$dara.isNull(request.capabilitiesShrink)) {
|
|
3389
5084
|
body["Capabilities"] = request.capabilitiesShrink;
|
|
3390
5085
|
}
|
|
5086
|
+
if (!$dara.isNull(request.enableQualityCheck)) {
|
|
5087
|
+
body["EnableQualityCheck"] = request.enableQualityCheck;
|
|
5088
|
+
}
|
|
3391
5089
|
if (!$dara.isNull(request.sourceLanguage)) {
|
|
3392
5090
|
body["SourceLanguage"] = request.sourceLanguage;
|
|
3393
5091
|
}
|
|
@@ -3398,6 +5096,7 @@ class Client extends openapi_core_1.default {
|
|
|
3398
5096
|
body["VideoUrl"] = request.videoUrl;
|
|
3399
5097
|
}
|
|
3400
5098
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5099
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3401
5100
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3402
5101
|
});
|
|
3403
5102
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
@@ -3414,28 +5113,28 @@ class Client extends openapi_core_1.default {
|
|
|
3414
5113
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
|
|
3415
5114
|
}
|
|
3416
5115
|
/**
|
|
3417
|
-
*
|
|
5116
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3418
5117
|
*
|
|
3419
5118
|
* @remarks
|
|
3420
|
-
* ##
|
|
3421
|
-
* The video translation API translates
|
|
3422
|
-
*
|
|
3423
|
-
* ##
|
|
3424
|
-
* * **Cross-border e-commerce video localization**: Translates
|
|
5119
|
+
* ## Product introduction
|
|
5120
|
+
* The video translation API translates speech and on-screen text in videos into a target language. You can select speech and subtitle translation, on-screen text translation, or both. This API is suitable for scenarios such as multi-language distribution of e-commerce videos, international social media marketing, and global brand advertising.
|
|
5121
|
+
* This API uses asynchronous invocation. After you submit a translation task, you obtain a TaskId. You can use the query API to poll the task status until the task is completed and then obtain the result.
|
|
5122
|
+
* ## 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.
|
|
3425
5124
|
*
|
|
3426
|
-
* * **International social media marketing**: Localizes text
|
|
5125
|
+
* * **International social media marketing**: Localizes on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
|
|
3427
5126
|
*
|
|
3428
|
-
* * **Global brand advertising**: Automatically generates video versions in the
|
|
5127
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
|
|
3429
5128
|
*
|
|
3430
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3431
|
-
* ##
|
|
5129
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5130
|
+
* ## Features
|
|
3432
5131
|
* | Feature | Identifier | Description |
|
|
3433
5132
|
* | --- | --- | --- |
|
|
3434
|
-
* |
|
|
3435
|
-
*
|
|
3436
|
-
*
|
|
3437
|
-
*
|
|
3438
|
-
*
|
|
5133
|
+
* | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
|
|
5134
|
+
* | On-screen text translation | visual | Translates embedded text in video frames, such as subtitles and selling points, and erases the original text. You can enable quality check for on-screen text processing by using the API. |
|
|
5135
|
+
* Speech and subtitle translation (speech) generates target language voiceovers based on the spoken content in the video and synthesizes them into the video. It does not erase original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
|
|
5136
|
+
* On-screen text translation (visual) targets recognizable text in the original video language within the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech and subtitle translation first. The text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
|
|
5137
|
+
* When both speech and visual are selected, the speech and subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video. The translated voiceover 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 the speech and subtitle phase does not erase or add subtitles. The subsequent on-screen text processing may still change the original subtitles.
|
|
3439
5138
|
*
|
|
3440
5139
|
* @param request - VideoTranslationRequest
|
|
3441
5140
|
* @returns VideoTranslationResponse
|