@alicloud/aidge20260428 5.7.1 → 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 +1593 -286
- package/dist/client.js +2362 -401
- package/dist/client.js.map +1 -1
- package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
- package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
- package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
- 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/GeneralRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
- 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/ImageTranslationPlusResponseBody.d.ts +1 -1
- 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 +13 -9
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- 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/MerchandisePlacementDetectionProRequest.d.ts +39 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +12 -5
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
- 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 +28 -0
- package/dist/models/PetHealthAnalysisRequest.js +65 -0
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
- package/dist/models/PetHealthAnalysisResponse.js +69 -0
- package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +51 -0
- package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +28 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
- 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 +13 -13
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +13 -13
- 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 +110 -0
- package/dist/models/model.js +226 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2660 -580
- package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
- package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
- 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/GeneralRephotographyDetectionRequest.ts +36 -0
- package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
- 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/ImageTranslationPlusResponseBody.ts +1 -1
- 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 +13 -9
- package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
- package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
- package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
- package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
- package/src/models/MerchandisePlacementDetectionRequest.ts +12 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
- 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 +48 -0
- package/src/models/PetHealthAnalysisResponse.ts +40 -0
- package/src/models/PetHealthAnalysisResponseBody.ts +85 -0
- package/src/models/PetHealthAnalysisShrinkRequest.ts +45 -0
- 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 +13 -13
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +13 -13
- 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 +110 -0
package/dist/client.js
CHANGED
|
@@ -681,8 +681,71 @@ class Client extends openapi_core_1.default {
|
|
|
681
681
|
return await this.diduiAreaDeductionWithOptions(request, runtime);
|
|
682
682
|
}
|
|
683
683
|
/**
|
|
684
|
-
*
|
|
685
|
-
*
|
|
684
|
+
* Analyzes the floor display area based on product recognition, SKU asset knowledge base, and a dedicated area reasoning model building. The product first locates floor display products, then reads the actual length, width, height, and reference images of the corresponding SKUs to infer the two side lengths and area of the bounding rectangle of the floor display footprint. This is applicable to floor display scale assessment and inspection review in retail stores.
|
|
685
|
+
*
|
|
686
|
+
* @remarks
|
|
687
|
+
* *Scenarios**
|
|
688
|
+
* - Floor display area assessment: Infers the bounding rectangle area of the floor display footprint based on an overall photo of the floor display and the actual dimensions of the products.
|
|
689
|
+
* - Multi-SKU mixed arrangement analysis: Uses the dimensions of each different product to participate in side length inference.
|
|
690
|
+
* - Area result review: Verifies results by combining the original image, product assets, and the returned two side lengths and area.
|
|
691
|
+
* **Features**
|
|
692
|
+
* - SKU asset-driven: Specifies the asset knowledge base through ragId. Each participating product must have a name, positive length, width, and height values, and at least one HTTPS reference image.
|
|
693
|
+
* - Phased area inference: Sequentially forms decision edges, SKU projections, dimension accumulation, and final area.
|
|
694
|
+
* - Unified units: SKU asset dimensions are stored in centimeters. Result side lengths are output in meters and area in square meters.
|
|
695
|
+
* - Completeness and numerical validation: Returns failure when there are missing assets, no valid bounding boxes, or the area does not satisfy product consistency.
|
|
696
|
+
*
|
|
697
|
+
* @param request - DiduiAreaDeductionProRequest
|
|
698
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
699
|
+
* @returns DiduiAreaDeductionProResponse
|
|
700
|
+
*/
|
|
701
|
+
async diduiAreaDeductionProWithOptions(request, runtime) {
|
|
702
|
+
request.validate();
|
|
703
|
+
let query = {};
|
|
704
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
705
|
+
query["ImageUrl"] = request.imageUrl;
|
|
706
|
+
}
|
|
707
|
+
if (!$dara.isNull(request.ragId)) {
|
|
708
|
+
query["RagId"] = request.ragId;
|
|
709
|
+
}
|
|
710
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
711
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
712
|
+
});
|
|
713
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
714
|
+
action: "DiduiAreaDeductionPro",
|
|
715
|
+
version: "2026-04-28",
|
|
716
|
+
protocol: "HTTPS",
|
|
717
|
+
pathname: "/",
|
|
718
|
+
method: "POST",
|
|
719
|
+
authType: "AK",
|
|
720
|
+
style: "RPC",
|
|
721
|
+
reqBodyType: "formData",
|
|
722
|
+
bodyType: "json",
|
|
723
|
+
});
|
|
724
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DiduiAreaDeductionProResponse({}));
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Analyzes the floor display area based on product recognition, SKU asset knowledge base, and a dedicated area reasoning model building. The product first locates floor display products, then reads the actual length, width, height, and reference images of the corresponding SKUs to infer the two side lengths and area of the bounding rectangle of the floor display footprint. This is applicable to floor display scale assessment and inspection review in retail stores.
|
|
728
|
+
*
|
|
729
|
+
* @remarks
|
|
730
|
+
* *Scenarios**
|
|
731
|
+
* - Floor display area assessment: Infers the bounding rectangle area of the floor display footprint based on an overall photo of the floor display and the actual dimensions of the products.
|
|
732
|
+
* - Multi-SKU mixed arrangement analysis: Uses the dimensions of each different product to participate in side length inference.
|
|
733
|
+
* - Area result review: Verifies results by combining the original image, product assets, and the returned two side lengths and area.
|
|
734
|
+
* **Features**
|
|
735
|
+
* - SKU asset-driven: Specifies the asset knowledge base through ragId. Each participating product must have a name, positive length, width, and height values, and at least one HTTPS reference image.
|
|
736
|
+
* - Phased area inference: Sequentially forms decision edges, SKU projections, dimension accumulation, and final area.
|
|
737
|
+
* - Unified units: SKU asset dimensions are stored in centimeters. Result side lengths are output in meters and area in square meters.
|
|
738
|
+
* - Completeness and numerical validation: Returns failure when there are missing assets, no valid bounding boxes, or the area does not satisfy product consistency.
|
|
739
|
+
*
|
|
740
|
+
* @param request - DiduiAreaDeductionProRequest
|
|
741
|
+
* @returns DiduiAreaDeductionProResponse
|
|
742
|
+
*/
|
|
743
|
+
async diduiAreaDeductionPro(request) {
|
|
744
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
745
|
+
return await this.diduiAreaDeductionProWithOptions(request, runtime);
|
|
746
|
+
}
|
|
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. Excels in the following areas:
|
|
686
749
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
687
750
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
688
751
|
*
|
|
@@ -693,13 +756,13 @@ class Client extends openapi_core_1.default {
|
|
|
693
756
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
694
757
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
695
758
|
* ## Common scenarios
|
|
696
|
-
* 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.
|
|
697
760
|
* ## Functions and features
|
|
698
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
699
|
-
* - 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.
|
|
700
763
|
* - Supports high-fidelity layout restoration after translation.
|
|
701
764
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
702
|
-
* - 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.
|
|
703
766
|
*
|
|
704
767
|
* @param request - DocumentTranslateRequest
|
|
705
768
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -737,8 +800,7 @@ class Client extends openapi_core_1.default {
|
|
|
737
800
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
|
|
738
801
|
}
|
|
739
802
|
/**
|
|
740
|
-
* 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.
|
|
741
|
-
* 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:
|
|
742
804
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
743
805
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
744
806
|
*
|
|
@@ -749,13 +811,13 @@ class Client extends openapi_core_1.default {
|
|
|
749
811
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
750
812
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
751
813
|
* ## Common scenarios
|
|
752
|
-
* 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.
|
|
753
815
|
* ## Functions and features
|
|
754
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
755
|
-
* - 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.
|
|
756
818
|
* - Supports high-fidelity layout restoration after translation.
|
|
757
819
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
758
|
-
* - 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.
|
|
759
821
|
*
|
|
760
822
|
* @param request - DocumentTranslateRequest
|
|
761
823
|
* @returns DocumentTranslateResponse
|
|
@@ -765,30 +827,45 @@ class Client extends openapi_core_1.default {
|
|
|
765
827
|
return await this.documentTranslateWithOptions(request, runtime);
|
|
766
828
|
}
|
|
767
829
|
/**
|
|
768
|
-
*
|
|
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.
|
|
769
831
|
*
|
|
770
832
|
* @remarks
|
|
771
|
-
* ## **Product
|
|
772
|
-
* 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.
|
|
773
835
|
* ## **Scenarios**
|
|
774
|
-
* - **Video asset
|
|
775
|
-
* - **
|
|
776
|
-
* - **Product
|
|
777
|
-
* - **Multi-selling
|
|
778
|
-
* ## **
|
|
779
|
-
* ### **Core
|
|
780
|
-
*
|
|
781
|
-
*
|
|
782
|
-
*
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
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.
|
|
792
869
|
*
|
|
793
870
|
* @param tmpReq - EcomVideoRecreationRequest
|
|
794
871
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -828,30 +905,45 @@ class Client extends openapi_core_1.default {
|
|
|
828
905
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.EcomVideoRecreationResponse({}));
|
|
829
906
|
}
|
|
830
907
|
/**
|
|
831
|
-
*
|
|
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.
|
|
832
909
|
*
|
|
833
910
|
* @remarks
|
|
834
|
-
* ## **Product
|
|
835
|
-
* 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.
|
|
836
913
|
* ## **Scenarios**
|
|
837
|
-
* - **Video asset
|
|
838
|
-
* - **
|
|
839
|
-
* - **Product
|
|
840
|
-
* - **Multi-selling
|
|
841
|
-
* ## **
|
|
842
|
-
* ### **Core
|
|
843
|
-
*
|
|
844
|
-
*
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
*
|
|
850
|
-
*
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
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.
|
|
855
947
|
*
|
|
856
948
|
* @param request - EcomVideoRecreationRequest
|
|
857
949
|
* @returns EcomVideoRecreationResponse
|
|
@@ -860,6 +952,67 @@ class Client extends openapi_core_1.default {
|
|
|
860
952
|
let runtime = new $dara.RuntimeOptions({});
|
|
861
953
|
return await this.ecomVideoRecreationWithOptions(request, runtime);
|
|
862
954
|
}
|
|
955
|
+
/**
|
|
956
|
+
* Provides a general-purpose image review service built on recapture recognition and multimodal large model element localization. The service determines whether an image is a recaptured photo and locates primary physical products, screen display areas, printed photos, and visible recapture clues. It is applicable to risk screening and manual review of inspection photos across multiple store categories.
|
|
957
|
+
*
|
|
958
|
+
* @remarks
|
|
959
|
+
* *Scenarios**
|
|
960
|
+
* 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
|
|
961
|
+
* 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
|
|
962
|
+
* 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
|
|
963
|
+
* **Features**
|
|
964
|
+
* 1. General recapture detection: Returns an isFake Boolean result.
|
|
965
|
+
* 2. Review element localization: Distinguishes physical products, screens, printed photos, and visible recapture clues. Products displayed within a screen are not redundantly output as physical products.
|
|
966
|
+
* 3. Separate presentation of clues and conclusions: Localization text describes only visible phenomena. Normal reflections or standard packaging prints are not directly treated as recapture evidence.
|
|
967
|
+
* Supports a single HTTPS image as 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.
|
|
968
|
+
*
|
|
969
|
+
* @param request - GeneralRephotographyDetectionRequest
|
|
970
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
971
|
+
* @returns GeneralRephotographyDetectionResponse
|
|
972
|
+
*/
|
|
973
|
+
async generalRephotographyDetectionWithOptions(request, runtime) {
|
|
974
|
+
request.validate();
|
|
975
|
+
let query = {};
|
|
976
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
977
|
+
query["ImageUrl"] = request.imageUrl;
|
|
978
|
+
}
|
|
979
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
980
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
981
|
+
});
|
|
982
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
983
|
+
action: "GeneralRephotographyDetection",
|
|
984
|
+
version: "2026-04-28",
|
|
985
|
+
protocol: "HTTPS",
|
|
986
|
+
pathname: "/",
|
|
987
|
+
method: "POST",
|
|
988
|
+
authType: "AK",
|
|
989
|
+
style: "RPC",
|
|
990
|
+
reqBodyType: "formData",
|
|
991
|
+
bodyType: "json",
|
|
992
|
+
});
|
|
993
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GeneralRephotographyDetectionResponse({}));
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Provides a general-purpose image review service built on recapture recognition and multimodal large model element localization. The service determines whether an image is a recaptured photo and locates primary physical products, screen display areas, printed photos, and visible recapture clues. It is applicable to risk screening and manual review of inspection photos across multiple store categories.
|
|
997
|
+
*
|
|
998
|
+
* @remarks
|
|
999
|
+
* *Scenarios**
|
|
1000
|
+
* 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
|
|
1001
|
+
* 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
|
|
1002
|
+
* 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
|
|
1003
|
+
* **Features**
|
|
1004
|
+
* 1. General recapture detection: Returns an isFake Boolean result.
|
|
1005
|
+
* 2. Review element localization: Distinguishes physical products, screens, printed photos, and visible recapture clues. Products displayed within a screen are not redundantly output as physical products.
|
|
1006
|
+
* 3. Separate presentation of clues and conclusions: Localization text describes only visible phenomena. Normal reflections or standard packaging prints are not directly treated as recapture evidence.
|
|
1007
|
+
* Supports a single HTTPS image as 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.
|
|
1008
|
+
*
|
|
1009
|
+
* @param request - GeneralRephotographyDetectionRequest
|
|
1010
|
+
* @returns GeneralRephotographyDetectionResponse
|
|
1011
|
+
*/
|
|
1012
|
+
async generalRephotographyDetection(request) {
|
|
1013
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1014
|
+
return await this.generalRephotographyDetectionWithOptions(request, runtime);
|
|
1015
|
+
}
|
|
863
1016
|
/**
|
|
864
1017
|
* Intelligently crops images to specified dimensions, automatically identifies the main subject area, and precisely crops to various sizes to meet design requirements across different scenarios. (Synchronous)
|
|
865
1018
|
*
|
|
@@ -1042,6 +1195,103 @@ class Client extends openapi_core_1.default {
|
|
|
1042
1195
|
let runtime = new $dara.RuntimeOptions({});
|
|
1043
1196
|
return await this.imageMattingWithOptions(request, runtime);
|
|
1044
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
|
+
}
|
|
1045
1295
|
/**
|
|
1046
1296
|
* Intelligent element recognition.
|
|
1047
1297
|
*
|
|
@@ -1247,50 +1497,119 @@ class Client extends openapi_core_1.default {
|
|
|
1247
1497
|
return await this.imageRecognitionWithOptions(request, runtime);
|
|
1248
1498
|
}
|
|
1249
1499
|
/**
|
|
1250
|
-
*
|
|
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.
|
|
1251
1501
|
*
|
|
1252
1502
|
* @remarks
|
|
1253
|
-
*
|
|
1254
|
-
*
|
|
1255
|
-
*
|
|
1256
|
-
*
|
|
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.
|
|
1257
1511
|
*
|
|
1258
|
-
*
|
|
1259
|
-
* * **Multi-platform product information synchronization:**
|
|
1512
|
+
* * Image background: The rest of the image other than the product subject.
|
|
1260
1513
|
*
|
|
1261
|
-
*
|
|
1262
|
-
* ## Functions and features
|
|
1263
|
-
* 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
|
|
1514
|
+
* * Text: Horizontal, vertical, or diagonal English or Chinese text.
|
|
1264
1515
|
*
|
|
1265
|
-
*
|
|
1516
|
+
* * Logo: A logo or trademark.
|
|
1266
1517
|
*
|
|
1267
|
-
*
|
|
1518
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
|
|
1268
1519
|
*
|
|
1269
|
-
*
|
|
1270
|
-
*
|
|
1271
|
-
*
|
|
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** |
|
|
1272
1533
|
* | --- | --- |
|
|
1273
|
-
* |  | [Subject]
|
|
1535
|
+
* * Watermark: false
|
|
1275
1536
|
*
|
|
1276
|
-
*
|
|
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
|
|
1277
1570
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1278
|
-
* @returns
|
|
1571
|
+
* @returns ImageRecognitionAsyncResponse
|
|
1279
1572
|
*/
|
|
1280
|
-
async
|
|
1281
|
-
|
|
1282
|
-
let
|
|
1283
|
-
|
|
1284
|
-
|
|
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");
|
|
1285
1582
|
}
|
|
1583
|
+
let query = {};
|
|
1286
1584
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1287
1585
|
query["ImageUrl"] = request.imageUrl;
|
|
1288
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
|
+
}
|
|
1289
1608
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1290
1609
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1291
1610
|
});
|
|
1292
1611
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1293
|
-
action: "
|
|
1612
|
+
action: "ImageRecognitionAsync",
|
|
1294
1613
|
version: "2026-04-28",
|
|
1295
1614
|
protocol: "HTTPS",
|
|
1296
1615
|
pathname: "/",
|
|
@@ -1300,7 +1619,140 @@ class Client extends openapi_core_1.default {
|
|
|
1300
1619
|
reqBodyType: "formData",
|
|
1301
1620
|
bodyType: "json",
|
|
1302
1621
|
});
|
|
1303
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
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
|
+
}
|
|
1701
|
+
/**
|
|
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).
|
|
1703
|
+
*
|
|
1704
|
+
* @remarks
|
|
1705
|
+
* ## Product Introduction
|
|
1706
|
+
* The Intelligent Image Eraser product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows. (Synchronous/Asynchronous)
|
|
1707
|
+
* ## Common scenarios
|
|
1708
|
+
* * **Efficient e-commerce image processing:**
|
|
1709
|
+
*
|
|
1710
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
1711
|
+
* * **Multi-platform product information synchronization:**
|
|
1712
|
+
*
|
|
1713
|
+
* When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
|
|
1714
|
+
* ## Functions and features
|
|
1715
|
+
* 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
|
|
1716
|
+
*
|
|
1717
|
+
* 1. Image subject: the core product area in the image.
|
|
1718
|
+
*
|
|
1719
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
1720
|
+
*
|
|
1721
|
+
* 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1722
|
+
* ## Effect comparison
|
|
1723
|
+
* | **Original image** | **Image after erasure** |
|
|
1724
|
+
* | --- | --- |
|
|
1725
|
+
* |  |  |
|
|
1726
|
+
* |  |  |
|
|
1727
|
+
*
|
|
1728
|
+
* @param request - ImageRemovalProRequest
|
|
1729
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1730
|
+
* @returns ImageRemovalProResponse
|
|
1731
|
+
*/
|
|
1732
|
+
async imageRemovalProWithOptions(request, runtime) {
|
|
1733
|
+
request.validate();
|
|
1734
|
+
let query = {};
|
|
1735
|
+
if (!$dara.isNull(request.async)) {
|
|
1736
|
+
query["Async"] = request.async;
|
|
1737
|
+
}
|
|
1738
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1739
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1740
|
+
}
|
|
1741
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1742
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1743
|
+
});
|
|
1744
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1745
|
+
action: "ImageRemovalPro",
|
|
1746
|
+
version: "2026-04-28",
|
|
1747
|
+
protocol: "HTTPS",
|
|
1748
|
+
pathname: "/",
|
|
1749
|
+
method: "POST",
|
|
1750
|
+
authType: "AK",
|
|
1751
|
+
style: "RPC",
|
|
1752
|
+
reqBodyType: "formData",
|
|
1753
|
+
bodyType: "json",
|
|
1754
|
+
});
|
|
1755
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
|
|
1304
1756
|
}
|
|
1305
1757
|
/**
|
|
1306
1758
|
* 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).
|
|
@@ -1336,6 +1788,85 @@ class Client extends openapi_core_1.default {
|
|
|
1336
1788
|
let runtime = new $dara.RuntimeOptions({});
|
|
1337
1789
|
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1338
1790
|
}
|
|
1791
|
+
/**
|
|
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.
|
|
1793
|
+
*
|
|
1794
|
+
* @remarks
|
|
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
|
+
}
|
|
1339
1870
|
/**
|
|
1340
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)
|
|
1341
1872
|
*
|
|
@@ -1576,131 +2107,475 @@ class Client extends openapi_core_1.default {
|
|
|
1576
2107
|
return await this.imageRemoveWithOptions(request, runtime);
|
|
1577
2108
|
}
|
|
1578
2109
|
/**
|
|
1579
|
-
*
|
|
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.
|
|
1580
2111
|
*
|
|
1581
2112
|
* @remarks
|
|
1582
|
-
* ## Product Introduction
|
|
1583
|
-
* Image Translation PLUS is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Image Translation Lite and Pro editions. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
|
|
1584
|
-
* Supported language pairs:
|
|
1585
|
-
* | **Ordinal number** | **Source language** | | **Target language** | |
|
|
1586
|
-
* | --- | --- | --- | --- | --- |
|
|
1587
|
-
* | | Language code | Language name | Language code | Language name |
|
|
1588
|
-
* | 1 | en | English | ar | Arabic |
|
|
1589
|
-
* | 2 | en | English | id | Indonesian |
|
|
1590
|
-
* | 3 | en | English | th | Thai |
|
|
1591
|
-
* | 4 | en | English | ko | Korean |
|
|
1592
|
-
* | 5 | en | English | ja | Japanese |
|
|
1593
|
-
* | 6 | en | English | vi | Vietnamese |
|
|
1594
|
-
* | 7 | en | English | ru | Russian |
|
|
1595
|
-
* | 8 | en | English | tl | Filipino |
|
|
1596
|
-
* | 9 | en | English | es | Spanish |
|
|
1597
|
-
* | 10 | en | English | fr | French |
|
|
1598
|
-
* | 11 | en | English | de | German |
|
|
1599
|
-
* | 12 | en | English | pl | Polish |
|
|
1600
2113
|
* ## Scenarios
|
|
1601
|
-
*
|
|
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".
|
|
1602
2121
|
* ## Features
|
|
1603
|
-
*
|
|
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.
|
|
1604
2123
|
*
|
|
1605
|
-
*
|
|
2124
|
+
* 1. Image subject: the core product area in the image.
|
|
1606
2125
|
*
|
|
1607
|
-
*
|
|
2126
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
1608
2127
|
*
|
|
1609
|
-
*
|
|
1610
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
1611
|
-
* @returns ImageTranslationPlusResponse
|
|
1612
|
-
*/
|
|
1613
|
-
async imageTranslationPlusWithOptions(request, runtime) {
|
|
1614
|
-
request.validate();
|
|
1615
|
-
let body = {};
|
|
1616
|
-
if (!$dara.isNull(request.glossary)) {
|
|
1617
|
-
body["Glossary"] = request.glossary;
|
|
1618
|
-
}
|
|
1619
|
-
if (!$dara.isNull(request.imageUrl)) {
|
|
1620
|
-
body["ImageUrl"] = request.imageUrl;
|
|
1621
|
-
}
|
|
1622
|
-
if (!$dara.isNull(request.includingProductArea)) {
|
|
1623
|
-
body["IncludingProductArea"] = request.includingProductArea;
|
|
1624
|
-
}
|
|
1625
|
-
if (!$dara.isNull(request.sourceLanguage)) {
|
|
1626
|
-
body["SourceLanguage"] = request.sourceLanguage;
|
|
1627
|
-
}
|
|
1628
|
-
if (!$dara.isNull(request.targetLanguage)) {
|
|
1629
|
-
body["TargetLanguage"] = request.targetLanguage;
|
|
1630
|
-
}
|
|
1631
|
-
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
1632
|
-
body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
1633
|
-
}
|
|
1634
|
-
if (!$dara.isNull(request.useImageEditor)) {
|
|
1635
|
-
body["UseImageEditor"] = request.useImageEditor;
|
|
1636
|
-
}
|
|
1637
|
-
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1638
|
-
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1639
|
-
});
|
|
1640
|
-
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1641
|
-
action: "ImageTranslationPlus",
|
|
1642
|
-
version: "2026-04-28",
|
|
1643
|
-
protocol: "HTTPS",
|
|
1644
|
-
pathname: "/",
|
|
1645
|
-
method: "POST",
|
|
1646
|
-
authType: "AK",
|
|
1647
|
-
style: "RPC",
|
|
1648
|
-
reqBodyType: "formData",
|
|
1649
|
-
bodyType: "json",
|
|
1650
|
-
});
|
|
1651
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* The Image Translation PLUS edition is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Image Translation Lite and Pro editions. Use this edition for the following 8 language directions. More language directions will be supported in the future.
|
|
2128
|
+
* 2. Second, the objects to remove support the following three cases:
|
|
1655
2129
|
*
|
|
1656
|
-
*
|
|
1657
|
-
* ## Product Introduction
|
|
1658
|
-
* Image Translation PLUS is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Image Translation Lite and Pro editions. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
|
|
1659
|
-
* Supported language pairs:
|
|
1660
|
-
* | **Ordinal number** | **Source language** | | **Target language** | |
|
|
1661
|
-
* | --- | --- | --- | --- | --- |
|
|
1662
|
-
* | | Language code | Language name | Language code | Language name |
|
|
1663
|
-
* | 1 | en | English | ar | Arabic |
|
|
1664
|
-
* | 2 | en | English | id | Indonesian |
|
|
1665
|
-
* | 3 | en | English | th | Thai |
|
|
1666
|
-
* | 4 | en | English | ko | Korean |
|
|
1667
|
-
* | 5 | en | English | ja | Japanese |
|
|
1668
|
-
* | 6 | en | English | vi | Vietnamese |
|
|
1669
|
-
* | 7 | en | English | ru | Russian |
|
|
1670
|
-
* | 8 | en | English | tl | Filipino |
|
|
1671
|
-
* | 9 | en | English | es | Spanish |
|
|
1672
|
-
* | 10 | en | English | fr | French |
|
|
1673
|
-
* | 11 | en | English | de | German |
|
|
1674
|
-
* | 12 | en | English | pl | Polish |
|
|
1675
|
-
* ## Scenarios
|
|
1676
|
-
* Main product images and detail images for cross-border e-commerce.
|
|
1677
|
-
* ## Features
|
|
1678
|
-
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
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.
|
|
1679
2131
|
*
|
|
1680
|
-
*
|
|
2132
|
+
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
1681
2133
|
*
|
|
1682
|
-
*
|
|
2134
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
|
|
1683
2135
|
*
|
|
1684
|
-
*
|
|
1685
|
-
*
|
|
1686
|
-
|
|
1687
|
-
|
|
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.
|
|
2340
|
+
*
|
|
2341
|
+
* @remarks
|
|
2342
|
+
* ## Product Introduction
|
|
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.
|
|
2344
|
+
* Supported language pairs:
|
|
2345
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2346
|
+
* | --- | --- | --- | --- | --- |
|
|
2347
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2348
|
+
* | 1 | en | English | ar | Arabic |
|
|
2349
|
+
* | 2 | en | English | id | Indonesian |
|
|
2350
|
+
* | 3 | en | English | th | Thai |
|
|
2351
|
+
* | 4 | en | English | ko | Korean |
|
|
2352
|
+
* | 5 | en | English | ja | Japanese |
|
|
2353
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2354
|
+
* | 7 | en | English | ru | Russian |
|
|
2355
|
+
* | 8 | en | English | tl | Filipino |
|
|
2356
|
+
* | 9 | en | English | es | Spanish |
|
|
2357
|
+
* | 10 | en | English | fr | French |
|
|
2358
|
+
* | 11 | en | English | de | German |
|
|
2359
|
+
* | 12 | en | English | pl | Polish |
|
|
2360
|
+
* ## Scenarios
|
|
2361
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
2362
|
+
* ## Features
|
|
2363
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
2364
|
+
*
|
|
2365
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
2366
|
+
*
|
|
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.
|
|
2368
|
+
*
|
|
2369
|
+
* @param request - ImageTranslationPlusRequest
|
|
2370
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2371
|
+
* @returns ImageTranslationPlusResponse
|
|
2372
|
+
*/
|
|
2373
|
+
async imageTranslationPlusWithOptions(request, runtime) {
|
|
2374
|
+
request.validate();
|
|
2375
|
+
let body = {};
|
|
2376
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2377
|
+
body["Glossary"] = request.glossary;
|
|
2378
|
+
}
|
|
2379
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2380
|
+
body["ImageUrl"] = request.imageUrl;
|
|
2381
|
+
}
|
|
2382
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2383
|
+
body["IncludingProductArea"] = request.includingProductArea;
|
|
2384
|
+
}
|
|
2385
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2386
|
+
body["SourceLanguage"] = request.sourceLanguage;
|
|
2387
|
+
}
|
|
2388
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2389
|
+
body["TargetLanguage"] = request.targetLanguage;
|
|
2390
|
+
}
|
|
2391
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2392
|
+
body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2393
|
+
}
|
|
2394
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2395
|
+
body["UseImageEditor"] = request.useImageEditor;
|
|
2396
|
+
}
|
|
2397
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2398
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2399
|
+
});
|
|
2400
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2401
|
+
action: "ImageTranslationPlus",
|
|
2402
|
+
version: "2026-04-28",
|
|
2403
|
+
protocol: "HTTPS",
|
|
2404
|
+
pathname: "/",
|
|
2405
|
+
method: "POST",
|
|
2406
|
+
authType: "AK",
|
|
2407
|
+
style: "RPC",
|
|
2408
|
+
reqBodyType: "formData",
|
|
2409
|
+
bodyType: "json",
|
|
2410
|
+
});
|
|
2411
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
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.
|
|
2415
|
+
*
|
|
2416
|
+
* @remarks
|
|
2417
|
+
* ## Product Introduction
|
|
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.
|
|
2419
|
+
* Supported language pairs:
|
|
2420
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2421
|
+
* | --- | --- | --- | --- | --- |
|
|
2422
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2423
|
+
* | 1 | en | English | ar | Arabic |
|
|
2424
|
+
* | 2 | en | English | id | Indonesian |
|
|
2425
|
+
* | 3 | en | English | th | Thai |
|
|
2426
|
+
* | 4 | en | English | ko | Korean |
|
|
2427
|
+
* | 5 | en | English | ja | Japanese |
|
|
2428
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2429
|
+
* | 7 | en | English | ru | Russian |
|
|
2430
|
+
* | 8 | en | English | tl | Filipino |
|
|
2431
|
+
* | 9 | en | English | es | Spanish |
|
|
2432
|
+
* | 10 | en | English | fr | French |
|
|
2433
|
+
* | 11 | en | English | de | German |
|
|
2434
|
+
* | 12 | en | English | pl | Polish |
|
|
2435
|
+
* ## Scenarios
|
|
2436
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
2437
|
+
* ## Features
|
|
2438
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
2439
|
+
*
|
|
2440
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
2441
|
+
*
|
|
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.
|
|
2443
|
+
*
|
|
2444
|
+
* @param request - ImageTranslationPlusRequest
|
|
2445
|
+
* @returns ImageTranslationPlusResponse
|
|
2446
|
+
*/
|
|
2447
|
+
async imageTranslationPlus(request) {
|
|
1688
2448
|
let runtime = new $dara.RuntimeOptions({});
|
|
1689
2449
|
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
1690
2450
|
}
|
|
1691
2451
|
/**
|
|
1692
|
-
*
|
|
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.
|
|
2453
|
+
*
|
|
2454
|
+
* @remarks
|
|
2455
|
+
* ## Scenarios
|
|
2456
|
+
* Main images and detail images for cross-border e-commerce.
|
|
2457
|
+
* ## Features
|
|
2458
|
+
* * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect subject information, such as embedded product names, from being translated.
|
|
2459
|
+
*
|
|
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.
|
|
1693
2568
|
*
|
|
1694
2569
|
* @remarks
|
|
1695
2570
|
* ## Product Introduction
|
|
1696
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal
|
|
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.
|
|
1697
2572
|
* ## Scenarios
|
|
1698
2573
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1699
|
-
* ##
|
|
1700
|
-
* - **Product subject protection**:
|
|
1701
|
-
* - **Post-translation editing**:
|
|
1702
|
-
* - **Brand name protection**:
|
|
1703
|
-
* - **Translation intervention**:
|
|
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.
|
|
1704
2579
|
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1705
2580
|
*
|
|
1706
2581
|
* @param request - ImageTranslationProRequest
|
|
@@ -1751,18 +2626,18 @@ class Client extends openapi_core_1.default {
|
|
|
1751
2626
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
|
|
1752
2627
|
}
|
|
1753
2628
|
/**
|
|
1754
|
-
*
|
|
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.
|
|
1755
2630
|
*
|
|
1756
2631
|
* @remarks
|
|
1757
2632
|
* ## Product Introduction
|
|
1758
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal
|
|
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.
|
|
1759
2634
|
* ## Scenarios
|
|
1760
2635
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1761
|
-
* ##
|
|
1762
|
-
* - **Product subject protection**:
|
|
1763
|
-
* - **Post-translation editing**:
|
|
1764
|
-
* - **Brand name protection**:
|
|
1765
|
-
* - **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.
|
|
1766
2641
|
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1767
2642
|
*
|
|
1768
2643
|
* @param request - ImageTranslationProRequest
|
|
@@ -1770,31 +2645,208 @@ class Client extends openapi_core_1.default {
|
|
|
1770
2645
|
*/
|
|
1771
2646
|
async imageTranslationPro(request) {
|
|
1772
2647
|
let runtime = new $dara.RuntimeOptions({});
|
|
1773
|
-
return await this.imageTranslationProWithOptions(request, runtime);
|
|
2648
|
+
return await this.imageTranslationProWithOptions(request, runtime);
|
|
2649
|
+
}
|
|
2650
|
+
/**
|
|
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.
|
|
2741
|
+
*
|
|
2742
|
+
* @remarks
|
|
2743
|
+
* # 1. Product Introduction
|
|
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.
|
|
2745
|
+
* # 2. Common scenarios
|
|
2746
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2747
|
+
* # 3. Features
|
|
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.
|
|
2749
|
+
*
|
|
2750
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
2751
|
+
*
|
|
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.
|
|
2753
|
+
*
|
|
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).
|
|
2756
|
+
*
|
|
2757
|
+
* @param request - ImageTranslationStandardRequest
|
|
2758
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2759
|
+
* @returns ImageTranslationStandardResponse
|
|
2760
|
+
*/
|
|
2761
|
+
async imageTranslationStandardWithOptions(request, runtime) {
|
|
2762
|
+
request.validate();
|
|
2763
|
+
let query = {};
|
|
2764
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2765
|
+
query["Glossary"] = request.glossary;
|
|
2766
|
+
}
|
|
2767
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2768
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2769
|
+
}
|
|
2770
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2771
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2772
|
+
}
|
|
2773
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2774
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2775
|
+
}
|
|
2776
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2777
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2778
|
+
}
|
|
2779
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2780
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2781
|
+
}
|
|
2782
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2783
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2784
|
+
}
|
|
2785
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2786
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2787
|
+
});
|
|
2788
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2789
|
+
action: "ImageTranslationStandard",
|
|
2790
|
+
version: "2026-04-28",
|
|
2791
|
+
protocol: "HTTPS",
|
|
2792
|
+
pathname: "/",
|
|
2793
|
+
method: "POST",
|
|
2794
|
+
authType: "AK",
|
|
2795
|
+
style: "RPC",
|
|
2796
|
+
reqBodyType: "formData",
|
|
2797
|
+
bodyType: "json",
|
|
2798
|
+
});
|
|
2799
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
|
|
2800
|
+
}
|
|
2801
|
+
/**
|
|
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.
|
|
2803
|
+
*
|
|
2804
|
+
* @remarks
|
|
2805
|
+
* # 1. Product Introduction
|
|
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.
|
|
2807
|
+
* # 2. Common scenarios
|
|
2808
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2809
|
+
* # 3. Features
|
|
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.
|
|
2811
|
+
*
|
|
2812
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
2813
|
+
*
|
|
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.
|
|
2815
|
+
*
|
|
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).
|
|
2818
|
+
*
|
|
2819
|
+
* @param request - ImageTranslationStandardRequest
|
|
2820
|
+
* @returns ImageTranslationStandardResponse
|
|
2821
|
+
*/
|
|
2822
|
+
async imageTranslationStandard(request) {
|
|
2823
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2824
|
+
return await this.imageTranslationStandardWithOptions(request, runtime);
|
|
1774
2825
|
}
|
|
1775
2826
|
/**
|
|
1776
|
-
*
|
|
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.
|
|
1777
2828
|
*
|
|
1778
2829
|
* @remarks
|
|
1779
|
-
*
|
|
1780
|
-
* Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This 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 within images, making it easy to integrate with image editors for secondary editing of translation results.
|
|
1781
|
-
* # 2. Applicable scenarios
|
|
2830
|
+
* ## Scenarios
|
|
1782
2831
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1783
|
-
*
|
|
1784
|
-
* * **Product
|
|
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.
|
|
1785
2834
|
*
|
|
1786
|
-
* * **Brand name protection**: Allows you to
|
|
2835
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
1787
2836
|
*
|
|
1788
|
-
* * **Secondary editing after translation (layer information)**: Allows you to
|
|
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.
|
|
1789
2838
|
*
|
|
1790
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text
|
|
1791
|
-
*
|
|
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).
|
|
1792
2844
|
*
|
|
1793
|
-
* @param request -
|
|
2845
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
1794
2846
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1795
|
-
* @returns
|
|
2847
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
1796
2848
|
*/
|
|
1797
|
-
async
|
|
2849
|
+
async imageTranslationStandardAsyncWithOptions(request, runtime) {
|
|
1798
2850
|
request.validate();
|
|
1799
2851
|
let query = {};
|
|
1800
2852
|
if (!$dara.isNull(request.glossary)) {
|
|
@@ -1822,7 +2874,7 @@ class Client extends openapi_core_1.default {
|
|
|
1822
2874
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1823
2875
|
});
|
|
1824
2876
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1825
|
-
action: "
|
|
2877
|
+
action: "ImageTranslationStandardAsync",
|
|
1826
2878
|
version: "2026-04-28",
|
|
1827
2879
|
protocol: "HTTPS",
|
|
1828
2880
|
pathname: "/",
|
|
@@ -1832,32 +2884,33 @@ class Client extends openapi_core_1.default {
|
|
|
1832
2884
|
reqBodyType: "formData",
|
|
1833
2885
|
bodyType: "json",
|
|
1834
2886
|
});
|
|
1835
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
2887
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardAsyncResponse({}));
|
|
1836
2888
|
}
|
|
1837
2889
|
/**
|
|
1838
|
-
*
|
|
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.
|
|
1839
2891
|
*
|
|
1840
2892
|
* @remarks
|
|
1841
|
-
*
|
|
1842
|
-
* Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This 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 within images, making it easy to integrate with image editors for secondary editing of translation results.
|
|
1843
|
-
* # 2. Applicable scenarios
|
|
2893
|
+
* ## Scenarios
|
|
1844
2894
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1845
|
-
*
|
|
1846
|
-
* * **Product
|
|
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.
|
|
1847
2897
|
*
|
|
1848
|
-
* * **Brand name protection**: Allows you to
|
|
2898
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
1849
2899
|
*
|
|
1850
|
-
* * **Secondary editing after translation (layer information)**: Allows you to
|
|
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.
|
|
1851
2901
|
*
|
|
1852
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text
|
|
1853
|
-
*
|
|
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).
|
|
1854
2907
|
*
|
|
1855
|
-
* @param request -
|
|
1856
|
-
* @returns
|
|
2908
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
2909
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
1857
2910
|
*/
|
|
1858
|
-
async
|
|
2911
|
+
async imageTranslationStandardAsync(request) {
|
|
1859
2912
|
let runtime = new $dara.RuntimeOptions({});
|
|
1860
|
-
return await this.
|
|
2913
|
+
return await this.imageTranslationStandardAsyncWithOptions(request, runtime);
|
|
1861
2914
|
}
|
|
1862
2915
|
/**
|
|
1863
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.
|
|
@@ -1997,61 +3050,440 @@ class Client extends openapi_core_1.default {
|
|
|
1997
3050
|
*
|
|
1998
3051
|
* - **Timeout settings**: Set the request timeout to no less than the maximum response time of the API (refer to the official release for the specific value).
|
|
1999
3052
|
*
|
|
2000
|
-
* @param request - MaterialInspectionRequest
|
|
2001
|
-
* @returns MaterialInspectionResponse
|
|
3053
|
+
* @param request - MaterialInspectionRequest
|
|
3054
|
+
* @returns MaterialInspectionResponse
|
|
3055
|
+
*/
|
|
3056
|
+
async materialInspection(request) {
|
|
3057
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3058
|
+
return await this.materialInspectionWithOptions(request, runtime);
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Detects and identifies products displayed on store shelves or floor stacks by using a multimodal large language model (MLLM) combined with visual vector recall. The service is designed for shelf and floor stack inspection scenarios in offline retail and channel stores. It first uses the MLLM to detect the bounding box and preliminary name of each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This service is suitable for large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
3062
|
+
*
|
|
3063
|
+
* @remarks
|
|
3064
|
+
* ## **Product Introduction**
|
|
3065
|
+
* Display detection is an intelligent product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It is designed for shelf and floor stack inspection scenarios in offline retail and channel stores. The service takes real photos of store shelves and floor stacks, first uses the MLLM to detect the bounding box and preliminary name of each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This service is suitable for large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
3066
|
+
* ## **Scenarios**
|
|
3067
|
+
* - **Shelf/floor stack display recognition and inventory**: Identifies each product in a shelf or floor stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
|
|
3068
|
+
*
|
|
3069
|
+
* - **Distribution verification/SKU compliance**: Verifies whether a store displays the specified SKUs as required by headquarters and whether any out-of-stock or misplaced items exist. This supports batch automated verification during sales promotions or new product launches.
|
|
3070
|
+
*
|
|
3071
|
+
* - **Customer-specific SKU library**: Customers can upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within the corresponding customer library, ensuring name accuracy and data isolation between customers.
|
|
3072
|
+
* ## **Functions and features**
|
|
3073
|
+
* - **Two-stage detection + retrieval pipeline**: The MLLM detects each product bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then, visual embedding vectors are used for similarity retrieval within the customer\\"s SKU library, and the top-1 precise SKU name overrides the preliminary name, balancing recall rate and name accuracy.
|
|
3074
|
+
*
|
|
3075
|
+
* - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
3076
|
+
*
|
|
3077
|
+
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory and verification systems and supports case-level manual review and traceability.
|
|
3078
|
+
*
|
|
3079
|
+
* - **Supported input formats**: Currently supports image URLs accessible over the Internet or through OSS. A single shelf or floor stack image is sufficient for recognition, and the output structure is consistent.
|
|
3080
|
+
*
|
|
3081
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
3082
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3083
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
3084
|
+
*/
|
|
3085
|
+
async merchandisePlacementDetectionWithOptions(request, runtime) {
|
|
3086
|
+
request.validate();
|
|
3087
|
+
let query = {};
|
|
3088
|
+
if (!$dara.isNull(request.apiId)) {
|
|
3089
|
+
query["ApiId"] = request.apiId;
|
|
3090
|
+
}
|
|
3091
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3092
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3093
|
+
}
|
|
3094
|
+
if (!$dara.isNull(request.ragId)) {
|
|
3095
|
+
query["RagId"] = request.ragId;
|
|
3096
|
+
}
|
|
3097
|
+
if (!$dara.isNull(request.rule)) {
|
|
3098
|
+
query["Rule"] = request.rule;
|
|
3099
|
+
}
|
|
3100
|
+
if (!$dara.isNull(request.type)) {
|
|
3101
|
+
query["Type"] = request.type;
|
|
3102
|
+
}
|
|
3103
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3104
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3105
|
+
});
|
|
3106
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3107
|
+
action: "MerchandisePlacementDetection",
|
|
3108
|
+
version: "2026-04-28",
|
|
3109
|
+
protocol: "HTTPS",
|
|
3110
|
+
pathname: "/",
|
|
3111
|
+
method: "POST",
|
|
3112
|
+
authType: "AK",
|
|
3113
|
+
style: "RPC",
|
|
3114
|
+
reqBodyType: "formData",
|
|
3115
|
+
bodyType: "json",
|
|
3116
|
+
});
|
|
3117
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionResponse({}));
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Detects and identifies products displayed on store shelves or floor stacks by using a multimodal large language model (MLLM) combined with visual vector recall. The service is designed for shelf and floor stack inspection scenarios in offline retail and channel stores. It first uses the MLLM to detect the bounding box and preliminary name of each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This service is suitable for large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
3121
|
+
*
|
|
3122
|
+
* @remarks
|
|
3123
|
+
* ## **Product Introduction**
|
|
3124
|
+
* Display detection is an intelligent product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It is designed for shelf and floor stack inspection scenarios in offline retail and channel stores. The service takes real photos of store shelves and floor stacks, first uses the MLLM to detect the bounding box and preliminary name of each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This service is suitable for large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
3125
|
+
* ## **Scenarios**
|
|
3126
|
+
* - **Shelf/floor stack display recognition and inventory**: Identifies each product in a shelf or floor stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
|
|
3127
|
+
*
|
|
3128
|
+
* - **Distribution verification/SKU compliance**: Verifies whether a store displays the specified SKUs as required by headquarters and whether any out-of-stock or misplaced items exist. This supports batch automated verification during sales promotions or new product launches.
|
|
3129
|
+
*
|
|
3130
|
+
* - **Customer-specific SKU library**: Customers can upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within the corresponding customer library, ensuring name accuracy and data isolation between customers.
|
|
3131
|
+
* ## **Functions and features**
|
|
3132
|
+
* - **Two-stage detection + retrieval pipeline**: The MLLM detects each product bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then, visual embedding vectors are used for similarity retrieval within the customer\\"s SKU library, and the top-1 precise SKU name overrides the preliminary name, balancing recall rate and name accuracy.
|
|
3133
|
+
*
|
|
3134
|
+
* - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
3135
|
+
*
|
|
3136
|
+
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory and verification systems and supports case-level manual review and traceability.
|
|
3137
|
+
*
|
|
3138
|
+
* - **Supported input formats**: Currently supports image URLs accessible over the Internet or through OSS. A single shelf or floor stack image is sufficient for recognition, and the output structure is consistent.
|
|
3139
|
+
*
|
|
3140
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
3141
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
3142
|
+
*/
|
|
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
|
|
2002
3453
|
*/
|
|
2003
|
-
async
|
|
3454
|
+
async milkPowderCanBottomCodeRephotographyDetection(request) {
|
|
2004
3455
|
let runtime = new $dara.RuntimeOptions({});
|
|
2005
|
-
return await this.
|
|
3456
|
+
return await this.milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2006
3457
|
}
|
|
2007
3458
|
/**
|
|
2008
|
-
*
|
|
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.
|
|
2009
3460
|
*
|
|
2010
3461
|
* @remarks
|
|
2011
|
-
* ##
|
|
2012
|
-
*
|
|
2013
|
-
*
|
|
2014
|
-
* -
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
*
|
|
2018
|
-
* -
|
|
2019
|
-
*
|
|
2020
|
-
* - **Two-stage detection + recall pipeline**: The MLLM detects each product box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then, visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, and the top-1 precise SKU name overrides the preliminary name, balancing recall rate and name accuracy.
|
|
2021
|
-
*
|
|
2022
|
-
* - **Dedicated vector library with isolated recall**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
2023
|
-
*
|
|
2024
|
-
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
|
|
2025
|
-
*
|
|
2026
|
-
* - **Supported input formats**: Currently supports image URLs accessible over the Internet or from OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
|
|
3462
|
+
* ## Features
|
|
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.
|
|
2027
3471
|
*
|
|
2028
|
-
* @param request -
|
|
3472
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
2029
3473
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2030
|
-
* @returns
|
|
3474
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2031
3475
|
*/
|
|
2032
|
-
async
|
|
3476
|
+
async milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime) {
|
|
2033
3477
|
request.validate();
|
|
2034
3478
|
let query = {};
|
|
2035
|
-
if (!$dara.isNull(request.apiId)) {
|
|
2036
|
-
query["ApiId"] = request.apiId;
|
|
2037
|
-
}
|
|
2038
3479
|
if (!$dara.isNull(request.imageUrl)) {
|
|
2039
3480
|
query["ImageUrl"] = request.imageUrl;
|
|
2040
3481
|
}
|
|
2041
|
-
if (!$dara.isNull(request.ragId)) {
|
|
2042
|
-
query["RagId"] = request.ragId;
|
|
2043
|
-
}
|
|
2044
|
-
if (!$dara.isNull(request.rule)) {
|
|
2045
|
-
query["Rule"] = request.rule;
|
|
2046
|
-
}
|
|
2047
|
-
if (!$dara.isNull(request.type)) {
|
|
2048
|
-
query["Type"] = request.type;
|
|
2049
|
-
}
|
|
2050
3482
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2051
3483
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2052
3484
|
});
|
|
2053
3485
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2054
|
-
action: "
|
|
3486
|
+
action: "MilkPowderCartonCodeRephotographyDetection",
|
|
2055
3487
|
version: "2026-04-28",
|
|
2056
3488
|
protocol: "HTTPS",
|
|
2057
3489
|
pathname: "/",
|
|
@@ -2061,35 +3493,28 @@ class Client extends openapi_core_1.default {
|
|
|
2061
3493
|
reqBodyType: "formData",
|
|
2062
3494
|
bodyType: "json",
|
|
2063
3495
|
});
|
|
2064
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3496
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MilkPowderCartonCodeRephotographyDetectionResponse({}));
|
|
2065
3497
|
}
|
|
2066
3498
|
/**
|
|
2067
|
-
*
|
|
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.
|
|
2068
3500
|
*
|
|
2069
3501
|
* @remarks
|
|
2070
|
-
* ##
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2073
|
-
* -
|
|
2074
|
-
*
|
|
2075
|
-
*
|
|
2076
|
-
*
|
|
2077
|
-
* -
|
|
2078
|
-
*
|
|
2079
|
-
* - **Two-stage detection + recall pipeline**: The MLLM detects each product box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then, visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, and the top-1 precise SKU name overrides the preliminary name, balancing recall rate and name accuracy.
|
|
2080
|
-
*
|
|
2081
|
-
* - **Dedicated vector library with isolated recall**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
|
|
2082
|
-
*
|
|
2083
|
-
* - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
|
|
2084
|
-
*
|
|
2085
|
-
* - **Supported input formats**: Currently supports image URLs accessible over the Internet or from OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
|
|
3502
|
+
* ## Features
|
|
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.
|
|
2086
3511
|
*
|
|
2087
|
-
* @param request -
|
|
2088
|
-
* @returns
|
|
3512
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
3513
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2089
3514
|
*/
|
|
2090
|
-
async
|
|
3515
|
+
async milkPowderCartonCodeRephotographyDetection(request) {
|
|
2091
3516
|
let runtime = new $dara.RuntimeOptions({});
|
|
2092
|
-
return await this.
|
|
3517
|
+
return await this.milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2093
3518
|
}
|
|
2094
3519
|
/**
|
|
2095
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.
|
|
@@ -2163,6 +3588,56 @@ class Client extends openapi_core_1.default {
|
|
|
2163
3588
|
let runtime = new $dara.RuntimeOptions({});
|
|
2164
3589
|
return await this.packageWeightSizeCheckWithOptions(request, runtime);
|
|
2165
3590
|
}
|
|
3591
|
+
/**
|
|
3592
|
+
* 宠物健康分析
|
|
3593
|
+
*
|
|
3594
|
+
* @param tmpReq - PetHealthAnalysisRequest
|
|
3595
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3596
|
+
* @returns PetHealthAnalysisResponse
|
|
3597
|
+
*/
|
|
3598
|
+
async petHealthAnalysisWithOptions(tmpReq, runtime) {
|
|
3599
|
+
tmpReq.validate();
|
|
3600
|
+
let request = new $_model.PetHealthAnalysisShrinkRequest({});
|
|
3601
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3602
|
+
if (!$dara.isNull(tmpReq.imageUrl)) {
|
|
3603
|
+
request.imageUrlShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageUrl, "ImageUrl", "json");
|
|
3604
|
+
}
|
|
3605
|
+
let query = {};
|
|
3606
|
+
if (!$dara.isNull(request.imageUrlShrink)) {
|
|
3607
|
+
query["ImageUrl"] = request.imageUrlShrink;
|
|
3608
|
+
}
|
|
3609
|
+
if (!$dara.isNull(request.systemPrompt)) {
|
|
3610
|
+
query["SystemPrompt"] = request.systemPrompt;
|
|
3611
|
+
}
|
|
3612
|
+
if (!$dara.isNull(request.userPrompt)) {
|
|
3613
|
+
query["UserPrompt"] = request.userPrompt;
|
|
3614
|
+
}
|
|
3615
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3616
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3617
|
+
});
|
|
3618
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3619
|
+
action: "PetHealthAnalysis",
|
|
3620
|
+
version: "2026-04-28",
|
|
3621
|
+
protocol: "HTTPS",
|
|
3622
|
+
pathname: "/",
|
|
3623
|
+
method: "POST",
|
|
3624
|
+
authType: "AK",
|
|
3625
|
+
style: "RPC",
|
|
3626
|
+
reqBodyType: "formData",
|
|
3627
|
+
bodyType: "json",
|
|
3628
|
+
});
|
|
3629
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PetHealthAnalysisResponse({}));
|
|
3630
|
+
}
|
|
3631
|
+
/**
|
|
3632
|
+
* 宠物健康分析
|
|
3633
|
+
*
|
|
3634
|
+
* @param request - PetHealthAnalysisRequest
|
|
3635
|
+
* @returns PetHealthAnalysisResponse
|
|
3636
|
+
*/
|
|
3637
|
+
async petHealthAnalysis(request) {
|
|
3638
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3639
|
+
return await this.petHealthAnalysisWithOptions(request, runtime);
|
|
3640
|
+
}
|
|
2166
3641
|
/**
|
|
2167
3642
|
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2168
3643
|
*
|
|
@@ -2577,13 +4052,300 @@ class Client extends openapi_core_1.default {
|
|
|
2577
4052
|
* \\]
|
|
2578
4053
|
* } |
|
|
2579
4054
|
*
|
|
2580
|
-
* @param tmpReq - SizeChartExtractRequest
|
|
2581
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
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
|
|
2582
4216
|
* @returns SizeChartExtractResponse
|
|
2583
4217
|
*/
|
|
2584
|
-
async
|
|
4218
|
+
async sizeChartExtract(request) {
|
|
4219
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4220
|
+
return await this.sizeChartExtractWithOptions(request, runtime);
|
|
4221
|
+
}
|
|
4222
|
+
/**
|
|
4223
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
4224
|
+
*
|
|
4225
|
+
* @remarks
|
|
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 |
|
|
4234
|
+
* | --- | --- |
|
|
4235
|
+
* |  | {
|
|
4236
|
+
* "SizeChart": [
|
|
4237
|
+
* {
|
|
4238
|
+
* "尺码": {
|
|
4239
|
+
* "value": "S"
|
|
4240
|
+
* },
|
|
4241
|
+
* "腰围": {
|
|
4242
|
+
* "unit": "CM",
|
|
4243
|
+
* "value": 58
|
|
4244
|
+
* },
|
|
4245
|
+
* "裙长": {
|
|
4246
|
+
* "unit": "CM",
|
|
4247
|
+
* "value": 81
|
|
4248
|
+
* },
|
|
4249
|
+
* "体重建议": {
|
|
4250
|
+
* "unit": "kg",
|
|
4251
|
+
* "lower_value": 40,
|
|
4252
|
+
* "upper_value": 47.5
|
|
4253
|
+
* }
|
|
4254
|
+
* },
|
|
4255
|
+
* {
|
|
4256
|
+
* "尺码": {
|
|
4257
|
+
* "value": "M"
|
|
4258
|
+
* },
|
|
4259
|
+
* "腰围": {
|
|
4260
|
+
* "unit": "CM",
|
|
4261
|
+
* "value": 59
|
|
4262
|
+
* },
|
|
4263
|
+
* "裙长": {
|
|
4264
|
+
* "unit": "CM",
|
|
4265
|
+
* "value": 82
|
|
4266
|
+
* },
|
|
4267
|
+
* "体重建议": {
|
|
4268
|
+
* "unit": "kg",
|
|
4269
|
+
* "lower_value": 45,
|
|
4270
|
+
* "upper_value": 52.5
|
|
4271
|
+
* }
|
|
4272
|
+
* },
|
|
4273
|
+
* {
|
|
4274
|
+
* "尺码": {
|
|
4275
|
+
* "value": "L"
|
|
4276
|
+
* },
|
|
4277
|
+
* "腰围": {
|
|
4278
|
+
* "unit": "CM",
|
|
4279
|
+
* "value": 60
|
|
4280
|
+
* },
|
|
4281
|
+
* "裙长": {
|
|
4282
|
+
* "unit": "CM",
|
|
4283
|
+
* "value": 83
|
|
4284
|
+
* },
|
|
4285
|
+
* "体重建议": {
|
|
4286
|
+
* "unit": "kg",
|
|
4287
|
+
* "lower_value": 50,
|
|
4288
|
+
* "upper_value": 57.5
|
|
4289
|
+
* }
|
|
4290
|
+
* },
|
|
4291
|
+
* {
|
|
4292
|
+
* "尺码": {
|
|
4293
|
+
* "value": "XL"
|
|
4294
|
+
* },
|
|
4295
|
+
* "腰围": {
|
|
4296
|
+
* "unit": "CM",
|
|
4297
|
+
* "value": 61
|
|
4298
|
+
* },
|
|
4299
|
+
* "裙长": {
|
|
4300
|
+
* "unit": "CM",
|
|
4301
|
+
* "value": 84
|
|
4302
|
+
* },
|
|
4303
|
+
* "体重建议": {
|
|
4304
|
+
* "unit": "kg",
|
|
4305
|
+
* "lower_value": 55,
|
|
4306
|
+
* "upper_value": 62.5
|
|
4307
|
+
* }
|
|
4308
|
+
* },
|
|
4309
|
+
* {
|
|
4310
|
+
* "尺码": {
|
|
4311
|
+
* "value": "2XL"
|
|
4312
|
+
* },
|
|
4313
|
+
* "腰围": {
|
|
4314
|
+
* "unit": "CM",
|
|
4315
|
+
* "value": 62
|
|
4316
|
+
* },
|
|
4317
|
+
* "裙长": {
|
|
4318
|
+
* "unit": "CM",
|
|
4319
|
+
* "value": 85
|
|
4320
|
+
* },
|
|
4321
|
+
* "体重建议": {
|
|
4322
|
+
* "unit": "kg",
|
|
4323
|
+
* "lower_value": 60,
|
|
4324
|
+
* "upper_value": 67.5
|
|
4325
|
+
* }
|
|
4326
|
+
* }
|
|
4327
|
+
* \\],
|
|
4328
|
+
* "SizeChartAttributes": [
|
|
4329
|
+
* "Size",
|
|
4330
|
+
* "Skirt length",
|
|
4331
|
+
* "Waist",
|
|
4332
|
+
* "Weight recommendation"
|
|
4333
|
+
* \\],
|
|
4334
|
+
* "IntersectionAttributes": [
|
|
4335
|
+
* "Size",
|
|
4336
|
+
* "Skirt length",
|
|
4337
|
+
* "Waist (stretched)",
|
|
4338
|
+
* "Weight recommendation"
|
|
4339
|
+
* \\]
|
|
4340
|
+
* } |
|
|
4341
|
+
*
|
|
4342
|
+
* @param tmpReq - SizeChartExtractAsyncRequest
|
|
4343
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4344
|
+
* @returns SizeChartExtractAsyncResponse
|
|
4345
|
+
*/
|
|
4346
|
+
async sizeChartExtractAsyncWithOptions(tmpReq, runtime) {
|
|
2585
4347
|
tmpReq.validate();
|
|
2586
|
-
let request = new $_model.
|
|
4348
|
+
let request = new $_model.SizeChartExtractAsyncShrinkRequest({});
|
|
2587
4349
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2588
4350
|
if (!$dara.isNull(tmpReq.columnNameList)) {
|
|
2589
4351
|
request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
@@ -2602,7 +4364,7 @@ class Client extends openapi_core_1.default {
|
|
|
2602
4364
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2603
4365
|
});
|
|
2604
4366
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2605
|
-
action: "
|
|
4367
|
+
action: "SizeChartExtractAsync",
|
|
2606
4368
|
version: "2026-04-28",
|
|
2607
4369
|
protocol: "HTTPS",
|
|
2608
4370
|
pathname: "/",
|
|
@@ -2612,23 +4374,20 @@ class Client extends openapi_core_1.default {
|
|
|
2612
4374
|
reqBodyType: "formData",
|
|
2613
4375
|
bodyType: "json",
|
|
2614
4376
|
});
|
|
2615
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
4377
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractAsyncResponse({}));
|
|
2616
4378
|
}
|
|
2617
4379
|
/**
|
|
2618
|
-
*
|
|
4380
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
2619
4381
|
*
|
|
2620
4382
|
* @remarks
|
|
2621
|
-
* ##
|
|
2622
|
-
*
|
|
2623
|
-
*
|
|
2624
|
-
*
|
|
2625
|
-
*
|
|
2626
|
-
*
|
|
2627
|
-
* ##
|
|
2628
|
-
*
|
|
2629
|
-
* 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.
|
|
2630
|
-
* ## Comparison
|
|
2631
|
-
* | **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 |
|
|
2632
4391
|
* | --- | --- |
|
|
2633
4392
|
* |  | {
|
|
2634
4393
|
* "SizeChart": [
|
|
@@ -2724,25 +4483,86 @@ class Client extends openapi_core_1.default {
|
|
|
2724
4483
|
* }
|
|
2725
4484
|
* \\],
|
|
2726
4485
|
* "SizeChartAttributes": [
|
|
2727
|
-
* "
|
|
2728
|
-
* "
|
|
2729
|
-
* "
|
|
2730
|
-
* "
|
|
4486
|
+
* "Size",
|
|
4487
|
+
* "Skirt length",
|
|
4488
|
+
* "Waist",
|
|
4489
|
+
* "Weight recommendation"
|
|
2731
4490
|
* \\],
|
|
2732
4491
|
* "IntersectionAttributes": [
|
|
2733
|
-
* "
|
|
2734
|
-
* "
|
|
2735
|
-
* "
|
|
2736
|
-
* "
|
|
4492
|
+
* "Size",
|
|
4493
|
+
* "Skirt length",
|
|
4494
|
+
* "Waist (stretched)",
|
|
4495
|
+
* "Weight recommendation"
|
|
2737
4496
|
* \\]
|
|
2738
4497
|
* } |
|
|
2739
4498
|
*
|
|
2740
|
-
* @param request -
|
|
2741
|
-
* @returns
|
|
4499
|
+
* @param request - SizeChartExtractAsyncRequest
|
|
4500
|
+
* @returns SizeChartExtractAsyncResponse
|
|
2742
4501
|
*/
|
|
2743
|
-
async
|
|
4502
|
+
async sizeChartExtractAsync(request) {
|
|
2744
4503
|
let runtime = new $dara.RuntimeOptions({});
|
|
2745
|
-
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);
|
|
2746
4566
|
}
|
|
2747
4567
|
/**
|
|
2748
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.
|
|
@@ -2884,32 +4704,34 @@ class Client extends openapi_core_1.default {
|
|
|
2884
4704
|
return await this.textCorrectWithOptions(request, runtime);
|
|
2885
4705
|
}
|
|
2886
4706
|
/**
|
|
2887
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
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.
|
|
2888
4708
|
*
|
|
2889
4709
|
* @remarks
|
|
2890
4710
|
* ## Product Introduction
|
|
2891
|
-
*
|
|
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.
|
|
2892
4712
|
* ## Common scenarios
|
|
2893
|
-
* -
|
|
2894
|
-
* -
|
|
2895
|
-
* -
|
|
2896
|
-
* -
|
|
2897
|
-
*
|
|
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.
|
|
2898
4718
|
* ## Functions and features
|
|
2899
4719
|
* - **Supported language directions**
|
|
2900
|
-
*
|
|
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)
|
|
2901
4723
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
2902
|
-
*
|
|
2903
|
-
* - **Supported text format types**
|
|
2904
|
-
* Currently
|
|
2905
|
-
* - **Translation intervention**
|
|
2906
|
-
*
|
|
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**
|
|
4726
|
+
* Currently, text and html text types are supported.
|
|
4727
|
+
* - **Translation intervention support**
|
|
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.
|
|
2907
4729
|
* ## Translation quality comparison
|
|
2908
|
-
* | **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** |
|
|
2909
4731
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2910
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 |
|
|
2911
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 |
|
|
2912
|
-
* | 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.
|
|
2913
4735
|
*
|
|
2914
4736
|
* @param tmpReq - TextTranslateRequest
|
|
2915
4737
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2961,32 +4783,34 @@ class Client extends openapi_core_1.default {
|
|
|
2961
4783
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
|
|
2962
4784
|
}
|
|
2963
4785
|
/**
|
|
2964
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
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.
|
|
2965
4787
|
*
|
|
2966
4788
|
* @remarks
|
|
2967
4789
|
* ## Product Introduction
|
|
2968
|
-
*
|
|
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.
|
|
2969
4791
|
* ## Common scenarios
|
|
2970
|
-
* -
|
|
2971
|
-
* -
|
|
2972
|
-
* -
|
|
2973
|
-
* -
|
|
2974
|
-
*
|
|
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.
|
|
2975
4797
|
* ## Functions and features
|
|
2976
4798
|
* - **Supported language directions**
|
|
2977
|
-
*
|
|
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)
|
|
2978
4802
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
2979
|
-
*
|
|
2980
|
-
* - **Supported text format types**
|
|
2981
|
-
* Currently
|
|
2982
|
-
* - **Translation intervention**
|
|
2983
|
-
*
|
|
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**
|
|
4805
|
+
* Currently, text and html text types are supported.
|
|
4806
|
+
* - **Translation intervention support**
|
|
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.
|
|
2984
4808
|
* ## Translation quality comparison
|
|
2985
|
-
* | **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** |
|
|
2986
4810
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2987
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 |
|
|
2988
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 |
|
|
2989
|
-
* | 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.
|
|
2990
4814
|
*
|
|
2991
4815
|
* @param request - TextTranslateRequest
|
|
2992
4816
|
* @returns TextTranslateResponse
|
|
@@ -2996,25 +4820,148 @@ class Client extends openapi_core_1.default {
|
|
|
2996
4820
|
return await this.textTranslateWithOptions(request, runtime);
|
|
2997
4821
|
}
|
|
2998
4822
|
/**
|
|
2999
|
-
*
|
|
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.
|
|
3000
4947
|
*
|
|
3001
4948
|
* @remarks
|
|
3002
4949
|
* # Scenarios
|
|
3003
|
-
* -
|
|
3004
|
-
* -
|
|
3005
|
-
* - High-fidelity
|
|
3006
|
-
* -
|
|
3007
|
-
* -
|
|
3008
|
-
* - 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.
|
|
3009
4956
|
* # Features
|
|
3010
|
-
* - Fully
|
|
3011
|
-
* - Highly stable generation with low waste rate:
|
|
3012
|
-
* - E-commerce
|
|
3013
|
-
* - Reference image
|
|
3014
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3015
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3016
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3017
|
-
* -
|
|
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.
|
|
3018
4965
|
*
|
|
3019
4966
|
* @param tmpReq - VideoGenerationRequest
|
|
3020
4967
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3060,25 +5007,25 @@ class Client extends openapi_core_1.default {
|
|
|
3060
5007
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
|
|
3061
5008
|
}
|
|
3062
5009
|
/**
|
|
3063
|
-
* 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.
|
|
3064
5011
|
*
|
|
3065
5012
|
* @remarks
|
|
3066
5013
|
* # Scenarios
|
|
3067
|
-
* -
|
|
3068
|
-
* -
|
|
3069
|
-
* - High-fidelity
|
|
3070
|
-
* -
|
|
3071
|
-
* -
|
|
3072
|
-
* - 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.
|
|
3073
5020
|
* # Features
|
|
3074
|
-
* - Fully
|
|
3075
|
-
* - Highly stable generation with low waste rate:
|
|
3076
|
-
* - E-commerce
|
|
3077
|
-
* - Reference image
|
|
3078
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3079
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3080
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3081
|
-
* -
|
|
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.
|
|
3082
5029
|
*
|
|
3083
5030
|
* @param request - VideoGenerationRequest
|
|
3084
5031
|
* @returns VideoGenerationResponse
|
|
@@ -3088,28 +5035,28 @@ class Client extends openapi_core_1.default {
|
|
|
3088
5035
|
return await this.videoGenerationWithOptions(request, runtime);
|
|
3089
5036
|
}
|
|
3090
5037
|
/**
|
|
3091
|
-
*
|
|
5038
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3092
5039
|
*
|
|
3093
5040
|
* @remarks
|
|
3094
|
-
* ##
|
|
3095
|
-
* The video translation API translates
|
|
3096
|
-
*
|
|
3097
|
-
* ##
|
|
3098
|
-
* * **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.
|
|
3099
5046
|
*
|
|
3100
|
-
* * **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.
|
|
3101
5048
|
*
|
|
3102
|
-
* * **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.
|
|
3103
5050
|
*
|
|
3104
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3105
|
-
* ##
|
|
5051
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5052
|
+
* ## Features
|
|
3106
5053
|
* | Feature | Identifier | Description |
|
|
3107
5054
|
* | --- | --- | --- |
|
|
3108
|
-
* |
|
|
3109
|
-
*
|
|
3110
|
-
*
|
|
3111
|
-
*
|
|
3112
|
-
*
|
|
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.
|
|
3113
5060
|
*
|
|
3114
5061
|
* @param tmpReq - VideoTranslationRequest
|
|
3115
5062
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3122,10 +5069,23 @@ class Client extends openapi_core_1.default {
|
|
|
3122
5069
|
if (!$dara.isNull(tmpReq.capabilities)) {
|
|
3123
5070
|
request.capabilitiesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.capabilities, "Capabilities", "json");
|
|
3124
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
|
+
}
|
|
3125
5082
|
let body = {};
|
|
3126
5083
|
if (!$dara.isNull(request.capabilitiesShrink)) {
|
|
3127
5084
|
body["Capabilities"] = request.capabilitiesShrink;
|
|
3128
5085
|
}
|
|
5086
|
+
if (!$dara.isNull(request.enableQualityCheck)) {
|
|
5087
|
+
body["EnableQualityCheck"] = request.enableQualityCheck;
|
|
5088
|
+
}
|
|
3129
5089
|
if (!$dara.isNull(request.sourceLanguage)) {
|
|
3130
5090
|
body["SourceLanguage"] = request.sourceLanguage;
|
|
3131
5091
|
}
|
|
@@ -3136,6 +5096,7 @@ class Client extends openapi_core_1.default {
|
|
|
3136
5096
|
body["VideoUrl"] = request.videoUrl;
|
|
3137
5097
|
}
|
|
3138
5098
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5099
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3139
5100
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3140
5101
|
});
|
|
3141
5102
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
@@ -3152,28 +5113,28 @@ class Client extends openapi_core_1.default {
|
|
|
3152
5113
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
|
|
3153
5114
|
}
|
|
3154
5115
|
/**
|
|
3155
|
-
*
|
|
5116
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3156
5117
|
*
|
|
3157
5118
|
* @remarks
|
|
3158
|
-
* ##
|
|
3159
|
-
* The video translation API translates
|
|
3160
|
-
*
|
|
3161
|
-
* ##
|
|
3162
|
-
* * **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.
|
|
3163
5124
|
*
|
|
3164
|
-
* * **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.
|
|
3165
5126
|
*
|
|
3166
|
-
* * **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.
|
|
3167
5128
|
*
|
|
3168
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3169
|
-
* ##
|
|
5129
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5130
|
+
* ## Features
|
|
3170
5131
|
* | Feature | Identifier | Description |
|
|
3171
5132
|
* | --- | --- | --- |
|
|
3172
|
-
* |
|
|
3173
|
-
*
|
|
3174
|
-
*
|
|
3175
|
-
*
|
|
3176
|
-
*
|
|
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.
|
|
3177
5138
|
*
|
|
3178
5139
|
* @param request - VideoTranslationRequest
|
|
3179
5140
|
* @returns VideoTranslationResponse
|