@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/src/client.ts
CHANGED
|
@@ -708,8 +708,75 @@ export default class Client extends OpenApi {
|
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
/**
|
|
711
|
-
*
|
|
712
|
-
*
|
|
711
|
+
* 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.
|
|
712
|
+
*
|
|
713
|
+
* @remarks
|
|
714
|
+
* *Scenarios**
|
|
715
|
+
* - 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.
|
|
716
|
+
* - Multi-SKU mixed arrangement analysis: Uses the dimensions of each different product to participate in side length inference.
|
|
717
|
+
* - Area result review: Verifies results by combining the original image, product assets, and the returned two side lengths and area.
|
|
718
|
+
* **Features**
|
|
719
|
+
* - 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.
|
|
720
|
+
* - Phased area inference: Sequentially forms decision edges, SKU projections, dimension accumulation, and final area.
|
|
721
|
+
* - Unified units: SKU asset dimensions are stored in centimeters. Result side lengths are output in meters and area in square meters.
|
|
722
|
+
* - Completeness and numerical validation: Returns failure when there are missing assets, no valid bounding boxes, or the area does not satisfy product consistency.
|
|
723
|
+
*
|
|
724
|
+
* @param request - DiduiAreaDeductionProRequest
|
|
725
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
726
|
+
* @returns DiduiAreaDeductionProResponse
|
|
727
|
+
*/
|
|
728
|
+
async diduiAreaDeductionProWithOptions(request: $_model.DiduiAreaDeductionProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DiduiAreaDeductionProResponse> {
|
|
729
|
+
request.validate();
|
|
730
|
+
let query = { };
|
|
731
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
732
|
+
query["ImageUrl"] = request.imageUrl;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
if (!$dara.isNull(request.ragId)) {
|
|
736
|
+
query["RagId"] = request.ragId;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
740
|
+
query: OpenApiUtil.query(query),
|
|
741
|
+
});
|
|
742
|
+
let params = new $OpenApiUtil.Params({
|
|
743
|
+
action: "DiduiAreaDeductionPro",
|
|
744
|
+
version: "2026-04-28",
|
|
745
|
+
protocol: "HTTPS",
|
|
746
|
+
pathname: "/",
|
|
747
|
+
method: "POST",
|
|
748
|
+
authType: "AK",
|
|
749
|
+
style: "RPC",
|
|
750
|
+
reqBodyType: "formData",
|
|
751
|
+
bodyType: "json",
|
|
752
|
+
});
|
|
753
|
+
return $dara.cast<$_model.DiduiAreaDeductionProResponse>(await this.callApi(params, req, runtime), new $_model.DiduiAreaDeductionProResponse({}));
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* 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.
|
|
758
|
+
*
|
|
759
|
+
* @remarks
|
|
760
|
+
* *Scenarios**
|
|
761
|
+
* - 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.
|
|
762
|
+
* - Multi-SKU mixed arrangement analysis: Uses the dimensions of each different product to participate in side length inference.
|
|
763
|
+
* - Area result review: Verifies results by combining the original image, product assets, and the returned two side lengths and area.
|
|
764
|
+
* **Features**
|
|
765
|
+
* - 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.
|
|
766
|
+
* - Phased area inference: Sequentially forms decision edges, SKU projections, dimension accumulation, and final area.
|
|
767
|
+
* - Unified units: SKU asset dimensions are stored in centimeters. Result side lengths are output in meters and area in square meters.
|
|
768
|
+
* - Completeness and numerical validation: Returns failure when there are missing assets, no valid bounding boxes, or the area does not satisfy product consistency.
|
|
769
|
+
*
|
|
770
|
+
* @param request - DiduiAreaDeductionProRequest
|
|
771
|
+
* @returns DiduiAreaDeductionProResponse
|
|
772
|
+
*/
|
|
773
|
+
async diduiAreaDeductionPro(request: $_model.DiduiAreaDeductionProRequest): Promise<$_model.DiduiAreaDeductionProResponse> {
|
|
774
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
775
|
+
return await this.diduiAreaDeductionProWithOptions(request, runtime);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* 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:
|
|
713
780
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
714
781
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
715
782
|
*
|
|
@@ -720,13 +787,13 @@ export default class Client extends OpenApi {
|
|
|
720
787
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
721
788
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
722
789
|
* ## Common scenarios
|
|
723
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
790
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
724
791
|
* ## Functions and features
|
|
725
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
726
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios
|
|
792
|
+
* - 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).
|
|
793
|
+
* - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
|
|
727
794
|
* - Supports high-fidelity layout restoration after translation.
|
|
728
795
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
729
|
-
* - 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
|
|
796
|
+
* - 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.
|
|
730
797
|
*
|
|
731
798
|
* @param request - DocumentTranslateRequest
|
|
732
799
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -769,8 +836,7 @@ export default class Client extends OpenApi {
|
|
|
769
836
|
}
|
|
770
837
|
|
|
771
838
|
/**
|
|
772
|
-
* 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.
|
|
773
|
-
* Excels in the following areas:
|
|
839
|
+
* 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:
|
|
774
840
|
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
775
841
|
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
776
842
|
*
|
|
@@ -781,13 +847,13 @@ export default class Client extends OpenApi {
|
|
|
781
847
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
782
848
|
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
783
849
|
* ## Common scenarios
|
|
784
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks
|
|
850
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
785
851
|
* ## Functions and features
|
|
786
|
-
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see
|
|
787
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios
|
|
852
|
+
* - 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).
|
|
853
|
+
* - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
|
|
788
854
|
* - Supports high-fidelity layout restoration after translation.
|
|
789
855
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
790
|
-
* - 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
|
|
856
|
+
* - 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.
|
|
791
857
|
*
|
|
792
858
|
* @param request - DocumentTranslateRequest
|
|
793
859
|
* @returns DocumentTranslateResponse
|
|
@@ -798,30 +864,45 @@ export default class Client extends OpenApi {
|
|
|
798
864
|
}
|
|
799
865
|
|
|
800
866
|
/**
|
|
801
|
-
*
|
|
867
|
+
* 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.
|
|
802
868
|
*
|
|
803
869
|
* @remarks
|
|
804
|
-
* ## **Product
|
|
805
|
-
* E-commerce
|
|
870
|
+
* ## **Product introduction**
|
|
871
|
+
* 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.
|
|
806
872
|
* ## **Scenarios**
|
|
807
|
-
* - **Video asset
|
|
808
|
-
* - **
|
|
809
|
-
* - **Product
|
|
810
|
-
* - **Multi-selling
|
|
811
|
-
* ## **
|
|
812
|
-
* ### **Core
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
*
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
*
|
|
873
|
+
* - **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.
|
|
874
|
+
* - **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.
|
|
875
|
+
* - **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.
|
|
876
|
+
* - **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.
|
|
877
|
+
* ## **Feature overview**
|
|
878
|
+
* ### **Core features**
|
|
879
|
+
* * **Supports two replacement modes:**
|
|
880
|
+
*
|
|
881
|
+
* * **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.
|
|
882
|
+
*
|
|
883
|
+
* * **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.
|
|
884
|
+
*
|
|
885
|
+
* * **Supports two generation modes:**
|
|
886
|
+
*
|
|
887
|
+
* * **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.
|
|
888
|
+
*
|
|
889
|
+
* * **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.
|
|
890
|
+
*
|
|
891
|
+
* * **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.
|
|
892
|
+
*
|
|
893
|
+
* * **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.
|
|
894
|
+
*
|
|
895
|
+
* * **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.
|
|
896
|
+
*
|
|
897
|
+
* * **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.
|
|
898
|
+
*
|
|
899
|
+
* * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
|
|
900
|
+
*
|
|
901
|
+
* * **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.
|
|
902
|
+
*
|
|
903
|
+
* * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
|
|
904
|
+
*
|
|
905
|
+
* * **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.
|
|
825
906
|
*
|
|
826
907
|
* @param tmpReq - EcomVideoRecreationRequest
|
|
827
908
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -866,30 +947,45 @@ export default class Client extends OpenApi {
|
|
|
866
947
|
}
|
|
867
948
|
|
|
868
949
|
/**
|
|
869
|
-
*
|
|
950
|
+
* 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.
|
|
870
951
|
*
|
|
871
952
|
* @remarks
|
|
872
|
-
* ## **Product
|
|
873
|
-
* E-commerce
|
|
953
|
+
* ## **Product introduction**
|
|
954
|
+
* 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.
|
|
874
955
|
* ## **Scenarios**
|
|
875
|
-
* - **Video asset
|
|
876
|
-
* - **
|
|
877
|
-
* - **Product
|
|
878
|
-
* - **Multi-selling
|
|
879
|
-
* ## **
|
|
880
|
-
* ### **Core
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
*
|
|
956
|
+
* - **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.
|
|
957
|
+
* - **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.
|
|
958
|
+
* - **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.
|
|
959
|
+
* - **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.
|
|
960
|
+
* ## **Feature overview**
|
|
961
|
+
* ### **Core features**
|
|
962
|
+
* * **Supports two replacement modes:**
|
|
963
|
+
*
|
|
964
|
+
* * **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.
|
|
965
|
+
*
|
|
966
|
+
* * **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.
|
|
967
|
+
*
|
|
968
|
+
* * **Supports two generation modes:**
|
|
969
|
+
*
|
|
970
|
+
* * **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.
|
|
971
|
+
*
|
|
972
|
+
* * **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.
|
|
973
|
+
*
|
|
974
|
+
* * **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.
|
|
975
|
+
*
|
|
976
|
+
* * **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.
|
|
977
|
+
*
|
|
978
|
+
* * **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.
|
|
979
|
+
*
|
|
980
|
+
* * **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.
|
|
981
|
+
*
|
|
982
|
+
* * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
|
|
983
|
+
*
|
|
984
|
+
* * **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.
|
|
985
|
+
*
|
|
986
|
+
* * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
|
|
987
|
+
*
|
|
988
|
+
* * **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.
|
|
893
989
|
*
|
|
894
990
|
* @param request - EcomVideoRecreationRequest
|
|
895
991
|
* @returns EcomVideoRecreationResponse
|
|
@@ -899,6 +995,70 @@ export default class Client extends OpenApi {
|
|
|
899
995
|
return await this.ecomVideoRecreationWithOptions(request, runtime);
|
|
900
996
|
}
|
|
901
997
|
|
|
998
|
+
/**
|
|
999
|
+
* 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.
|
|
1000
|
+
*
|
|
1001
|
+
* @remarks
|
|
1002
|
+
* *Scenarios**
|
|
1003
|
+
* 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
|
|
1004
|
+
* 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
|
|
1005
|
+
* 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
|
|
1006
|
+
* **Features**
|
|
1007
|
+
* 1. General recapture detection: Returns an isFake Boolean result.
|
|
1008
|
+
* 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.
|
|
1009
|
+
* 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.
|
|
1010
|
+
* 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.
|
|
1011
|
+
*
|
|
1012
|
+
* @param request - GeneralRephotographyDetectionRequest
|
|
1013
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1014
|
+
* @returns GeneralRephotographyDetectionResponse
|
|
1015
|
+
*/
|
|
1016
|
+
async generalRephotographyDetectionWithOptions(request: $_model.GeneralRephotographyDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GeneralRephotographyDetectionResponse> {
|
|
1017
|
+
request.validate();
|
|
1018
|
+
let query = { };
|
|
1019
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1020
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1024
|
+
query: OpenApiUtil.query(query),
|
|
1025
|
+
});
|
|
1026
|
+
let params = new $OpenApiUtil.Params({
|
|
1027
|
+
action: "GeneralRephotographyDetection",
|
|
1028
|
+
version: "2026-04-28",
|
|
1029
|
+
protocol: "HTTPS",
|
|
1030
|
+
pathname: "/",
|
|
1031
|
+
method: "POST",
|
|
1032
|
+
authType: "AK",
|
|
1033
|
+
style: "RPC",
|
|
1034
|
+
reqBodyType: "formData",
|
|
1035
|
+
bodyType: "json",
|
|
1036
|
+
});
|
|
1037
|
+
return $dara.cast<$_model.GeneralRephotographyDetectionResponse>(await this.callApi(params, req, runtime), new $_model.GeneralRephotographyDetectionResponse({}));
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* 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.
|
|
1042
|
+
*
|
|
1043
|
+
* @remarks
|
|
1044
|
+
* *Scenarios**
|
|
1045
|
+
* 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
|
|
1046
|
+
* 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
|
|
1047
|
+
* 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
|
|
1048
|
+
* **Features**
|
|
1049
|
+
* 1. General recapture detection: Returns an isFake Boolean result.
|
|
1050
|
+
* 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.
|
|
1051
|
+
* 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.
|
|
1052
|
+
* 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.
|
|
1053
|
+
*
|
|
1054
|
+
* @param request - GeneralRephotographyDetectionRequest
|
|
1055
|
+
* @returns GeneralRephotographyDetectionResponse
|
|
1056
|
+
*/
|
|
1057
|
+
async generalRephotographyDetection(request: $_model.GeneralRephotographyDetectionRequest): Promise<$_model.GeneralRephotographyDetectionResponse> {
|
|
1058
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1059
|
+
return await this.generalRephotographyDetectionWithOptions(request, runtime);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
902
1062
|
/**
|
|
903
1063
|
* 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)
|
|
904
1064
|
*
|
|
@@ -1093,6 +1253,110 @@ export default class Client extends OpenApi {
|
|
|
1093
1253
|
return await this.imageMattingWithOptions(request, runtime);
|
|
1094
1254
|
}
|
|
1095
1255
|
|
|
1256
|
+
/**
|
|
1257
|
+
* 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.
|
|
1258
|
+
*
|
|
1259
|
+
* @remarks
|
|
1260
|
+
* # Scenarios
|
|
1261
|
+
* * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
|
|
1262
|
+
*
|
|
1263
|
+
* * 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.
|
|
1264
|
+
* # Features.
|
|
1265
|
+
* #### 1. One-click precise subject recognition
|
|
1266
|
+
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
1267
|
+
*
|
|
1268
|
+
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
|
|
1269
|
+
* #### 2. Intelligent edge optimization
|
|
1270
|
+
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1271
|
+
* #### 3. Multi-format output and background operations
|
|
1272
|
+
* * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
|
|
1273
|
+
*
|
|
1274
|
+
* * **Supports custom background colors**
|
|
1275
|
+
* # Effect comparison
|
|
1276
|
+
* | **Original image (input)** | **Result image (output)** |
|
|
1277
|
+
* | --- | --- |
|
|
1278
|
+
* |  |  |
|
|
1279
|
+
* |  |  |
|
|
1280
|
+
* |  |  |
|
|
1281
|
+
*
|
|
1282
|
+
* @param request - ImageMattingAsyncRequest
|
|
1283
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1284
|
+
* @returns ImageMattingAsyncResponse
|
|
1285
|
+
*/
|
|
1286
|
+
async imageMattingAsyncWithOptions(request: $_model.ImageMattingAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageMattingAsyncResponse> {
|
|
1287
|
+
request.validate();
|
|
1288
|
+
let query = { };
|
|
1289
|
+
if (!$dara.isNull(request.backGroundType)) {
|
|
1290
|
+
query["BackGroundType"] = request.backGroundType;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
if (!$dara.isNull(request.bgColor)) {
|
|
1294
|
+
query["BgColor"] = request.bgColor;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1298
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
if (!$dara.isNull(request.targetHeight)) {
|
|
1302
|
+
query["TargetHeight"] = request.targetHeight;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
if (!$dara.isNull(request.targetWidth)) {
|
|
1306
|
+
query["TargetWidth"] = request.targetWidth;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1310
|
+
query: OpenApiUtil.query(query),
|
|
1311
|
+
});
|
|
1312
|
+
let params = new $OpenApiUtil.Params({
|
|
1313
|
+
action: "ImageMattingAsync",
|
|
1314
|
+
version: "2026-04-28",
|
|
1315
|
+
protocol: "HTTPS",
|
|
1316
|
+
pathname: "/",
|
|
1317
|
+
method: "POST",
|
|
1318
|
+
authType: "AK",
|
|
1319
|
+
style: "RPC",
|
|
1320
|
+
reqBodyType: "formData",
|
|
1321
|
+
bodyType: "json",
|
|
1322
|
+
});
|
|
1323
|
+
return $dara.cast<$_model.ImageMattingAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageMattingAsyncResponse({}));
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/**
|
|
1327
|
+
* 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.
|
|
1328
|
+
*
|
|
1329
|
+
* @remarks
|
|
1330
|
+
* # Scenarios
|
|
1331
|
+
* * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
|
|
1332
|
+
*
|
|
1333
|
+
* * 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.
|
|
1334
|
+
* # Features.
|
|
1335
|
+
* #### 1. One-click precise subject recognition
|
|
1336
|
+
* * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
|
|
1337
|
+
*
|
|
1338
|
+
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
|
|
1339
|
+
* #### 2. Intelligent edge optimization
|
|
1340
|
+
* * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
|
|
1341
|
+
* #### 3. Multi-format output and background operations
|
|
1342
|
+
* * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
|
|
1343
|
+
*
|
|
1344
|
+
* * **Supports custom background colors**
|
|
1345
|
+
* # Effect comparison
|
|
1346
|
+
* | **Original image (input)** | **Result image (output)** |
|
|
1347
|
+
* | --- | --- |
|
|
1348
|
+
* |  |  |
|
|
1349
|
+
* |  |  |
|
|
1350
|
+
* |  |  |
|
|
1351
|
+
*
|
|
1352
|
+
* @param request - ImageMattingAsyncRequest
|
|
1353
|
+
* @returns ImageMattingAsyncResponse
|
|
1354
|
+
*/
|
|
1355
|
+
async imageMattingAsync(request: $_model.ImageMattingAsyncRequest): Promise<$_model.ImageMattingAsyncResponse> {
|
|
1356
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1357
|
+
return await this.imageMattingAsyncWithOptions(request, runtime);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1096
1360
|
/**
|
|
1097
1361
|
* Intelligent element recognition.
|
|
1098
1362
|
*
|
|
@@ -1310,49 +1574,263 @@ export default class Client extends OpenApi {
|
|
|
1310
1574
|
}
|
|
1311
1575
|
|
|
1312
1576
|
/**
|
|
1313
|
-
*
|
|
1577
|
+
* 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.
|
|
1314
1578
|
*
|
|
1315
1579
|
* @remarks
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1580
|
+
* # Scenarios
|
|
1581
|
+
* 1. Intelligent image filtering and optimization:
|
|
1582
|
+
* 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.
|
|
1583
|
+
* 2. Automated image processing and efficiency improvement:
|
|
1584
|
+
* 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.
|
|
1585
|
+
* # Features
|
|
1586
|
+
* **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).**
|
|
1587
|
+
* * Image subject: The core product area in the image.
|
|
1320
1588
|
*
|
|
1321
|
-
*
|
|
1322
|
-
* * **Multi-platform product information synchronization:**
|
|
1589
|
+
* * Image background: The rest of the image other than the product subject.
|
|
1323
1590
|
*
|
|
1324
|
-
*
|
|
1325
|
-
* ## Functions and features
|
|
1326
|
-
* 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.
|
|
1591
|
+
* * Text: Horizontal, vertical, or diagonal English or Chinese text.
|
|
1327
1592
|
*
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1332
|
-
*
|
|
1333
|
-
*
|
|
1334
|
-
*
|
|
1593
|
+
* * Logo: A logo or trademark.
|
|
1594
|
+
*
|
|
1595
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
|
|
1596
|
+
*
|
|
1597
|
+
* * Text-containing color block: A color block containing text outside the subject.
|
|
1598
|
+
*
|
|
1599
|
+
* **2. The main features of the intelligent element recognition API include:**
|
|
1600
|
+
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1601
|
+
*
|
|
1602
|
+
* * 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.
|
|
1603
|
+
*
|
|
1604
|
+
* **3. Technical advantages:**
|
|
1605
|
+
* * 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.
|
|
1606
|
+
*
|
|
1607
|
+
* * 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.
|
|
1608
|
+
* # Effect comparison
|
|
1609
|
+
* | **Original image** | **Recognition result** |
|
|
1335
1610
|
* | --- | --- |
|
|
1336
|
-
* |  | [Subject]
|
|
1612
|
+
* * Watermark: false
|
|
1613
|
+
*
|
|
1614
|
+
* * Logo: false
|
|
1615
|
+
*
|
|
1616
|
+
* * Text: false
|
|
1617
|
+
*
|
|
1618
|
+
* * Text-containing color block: false
|
|
1619
|
+
*
|
|
1620
|
+
* [Non-subject]
|
|
1621
|
+
* * Watermark: false
|
|
1622
|
+
*
|
|
1623
|
+
* * Logo: true
|
|
1624
|
+
*
|
|
1625
|
+
* * Text: true
|
|
1626
|
+
*
|
|
1627
|
+
* * Text-containing color block: false |
|
|
1628
|
+
* |  | [Subject]
|
|
1629
|
+
* * Watermark: false
|
|
1630
|
+
*
|
|
1631
|
+
* * Logo: false
|
|
1632
|
+
*
|
|
1633
|
+
* * Text: false
|
|
1634
|
+
*
|
|
1635
|
+
* * Text-containing color block: false
|
|
1636
|
+
*
|
|
1637
|
+
* [Non-subject]
|
|
1638
|
+
* * Watermark: true
|
|
1639
|
+
*
|
|
1640
|
+
* * Logo: false
|
|
1641
|
+
*
|
|
1642
|
+
* * Text: true
|
|
1643
|
+
*
|
|
1644
|
+
* * Text-containing color block: true |
|
|
1338
1645
|
*
|
|
1339
|
-
* @param
|
|
1646
|
+
* @param tmpReq - ImageRecognitionAsyncRequest
|
|
1340
1647
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1341
|
-
* @returns
|
|
1648
|
+
* @returns ImageRecognitionAsyncResponse
|
|
1342
1649
|
*/
|
|
1343
|
-
async
|
|
1344
|
-
|
|
1345
|
-
let
|
|
1346
|
-
|
|
1347
|
-
|
|
1650
|
+
async imageRecognitionAsyncWithOptions(tmpReq: $_model.ImageRecognitionAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRecognitionAsyncResponse> {
|
|
1651
|
+
tmpReq.validate();
|
|
1652
|
+
let request = new $_model.ImageRecognitionAsyncShrinkRequest({ });
|
|
1653
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1654
|
+
if (!$dara.isNull(tmpReq.nonObjectDetectElements)) {
|
|
1655
|
+
request.nonObjectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectDetectElements, "NonObjectDetectElements", "json");
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
if (!$dara.isNull(tmpReq.objectDetectElements)) {
|
|
1659
|
+
request.objectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
|
|
1348
1660
|
}
|
|
1349
1661
|
|
|
1662
|
+
let query = { };
|
|
1350
1663
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1351
1664
|
query["ImageUrl"] = request.imageUrl;
|
|
1352
1665
|
}
|
|
1353
1666
|
|
|
1354
|
-
|
|
1355
|
-
query
|
|
1667
|
+
if (!$dara.isNull(request.nonObjectDetectElementsShrink)) {
|
|
1668
|
+
query["NonObjectDetectElements"] = request.nonObjectDetectElementsShrink;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
if (!$dara.isNull(request.objectDetectElementsShrink)) {
|
|
1672
|
+
query["ObjectDetectElements"] = request.objectDetectElementsShrink;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
if (!$dara.isNull(request.returnBorderPixel)) {
|
|
1676
|
+
query["ReturnBorderPixel"] = request.returnBorderPixel;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
if (!$dara.isNull(request.returnCharacter)) {
|
|
1680
|
+
query["ReturnCharacter"] = request.returnCharacter;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
if (!$dara.isNull(request.returnCharacterProp)) {
|
|
1684
|
+
query["ReturnCharacterProp"] = request.returnCharacterProp;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
if (!$dara.isNull(request.returnProductNum)) {
|
|
1688
|
+
query["ReturnProductNum"] = request.returnProductNum;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
if (!$dara.isNull(request.returnProductProp)) {
|
|
1692
|
+
query["ReturnProductProp"] = request.returnProductProp;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1696
|
+
query: OpenApiUtil.query(query),
|
|
1697
|
+
});
|
|
1698
|
+
let params = new $OpenApiUtil.Params({
|
|
1699
|
+
action: "ImageRecognitionAsync",
|
|
1700
|
+
version: "2026-04-28",
|
|
1701
|
+
protocol: "HTTPS",
|
|
1702
|
+
pathname: "/",
|
|
1703
|
+
method: "POST",
|
|
1704
|
+
authType: "AK",
|
|
1705
|
+
style: "RPC",
|
|
1706
|
+
reqBodyType: "formData",
|
|
1707
|
+
bodyType: "json",
|
|
1708
|
+
});
|
|
1709
|
+
return $dara.cast<$_model.ImageRecognitionAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageRecognitionAsyncResponse({}));
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* 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.
|
|
1714
|
+
*
|
|
1715
|
+
* @remarks
|
|
1716
|
+
* # Scenarios
|
|
1717
|
+
* 1. Intelligent image filtering and optimization:
|
|
1718
|
+
* 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.
|
|
1719
|
+
* 2. Automated image processing and efficiency improvement:
|
|
1720
|
+
* 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.
|
|
1721
|
+
* # Features
|
|
1722
|
+
* **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).**
|
|
1723
|
+
* * Image subject: The core product area in the image.
|
|
1724
|
+
*
|
|
1725
|
+
* * Image background: The rest of the image other than the product subject.
|
|
1726
|
+
*
|
|
1727
|
+
* * Text: Horizontal, vertical, or diagonal English or Chinese text.
|
|
1728
|
+
*
|
|
1729
|
+
* * Logo: A logo or trademark.
|
|
1730
|
+
*
|
|
1731
|
+
* * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
|
|
1732
|
+
*
|
|
1733
|
+
* * Text-containing color block: A color block containing text outside the subject.
|
|
1734
|
+
*
|
|
1735
|
+
* **2. The main features of the intelligent element recognition API include:**
|
|
1736
|
+
* * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
|
|
1737
|
+
*
|
|
1738
|
+
* * 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.
|
|
1739
|
+
*
|
|
1740
|
+
* **3. Technical advantages:**
|
|
1741
|
+
* * 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.
|
|
1742
|
+
*
|
|
1743
|
+
* * 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.
|
|
1744
|
+
* # Effect comparison
|
|
1745
|
+
* | **Original image** | **Recognition result** |
|
|
1746
|
+
* | --- | --- |
|
|
1747
|
+
* |  | [Subject]
|
|
1748
|
+
* * Watermark: false
|
|
1749
|
+
*
|
|
1750
|
+
* * Logo: false
|
|
1751
|
+
*
|
|
1752
|
+
* * Text: false
|
|
1753
|
+
*
|
|
1754
|
+
* * Text-containing color block: false
|
|
1755
|
+
*
|
|
1756
|
+
* [Non-subject]
|
|
1757
|
+
* * Watermark: false
|
|
1758
|
+
*
|
|
1759
|
+
* * Logo: true
|
|
1760
|
+
*
|
|
1761
|
+
* * Text: true
|
|
1762
|
+
*
|
|
1763
|
+
* * Text-containing color block: false |
|
|
1764
|
+
* |  | [Subject]
|
|
1765
|
+
* * Watermark: false
|
|
1766
|
+
*
|
|
1767
|
+
* * Logo: false
|
|
1768
|
+
*
|
|
1769
|
+
* * Text: false
|
|
1770
|
+
*
|
|
1771
|
+
* * Text-containing color block: false
|
|
1772
|
+
*
|
|
1773
|
+
* [Non-subject]
|
|
1774
|
+
* * Watermark: true
|
|
1775
|
+
*
|
|
1776
|
+
* * Logo: false
|
|
1777
|
+
*
|
|
1778
|
+
* * Text: true
|
|
1779
|
+
*
|
|
1780
|
+
* * Text-containing color block: true |
|
|
1781
|
+
*
|
|
1782
|
+
* @param request - ImageRecognitionAsyncRequest
|
|
1783
|
+
* @returns ImageRecognitionAsyncResponse
|
|
1784
|
+
*/
|
|
1785
|
+
async imageRecognitionAsync(request: $_model.ImageRecognitionAsyncRequest): Promise<$_model.ImageRecognitionAsyncResponse> {
|
|
1786
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1787
|
+
return await this.imageRecognitionAsyncWithOptions(request, runtime);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* 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).
|
|
1792
|
+
*
|
|
1793
|
+
* @remarks
|
|
1794
|
+
* ## Product Introduction
|
|
1795
|
+
* 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)
|
|
1796
|
+
* ## Common scenarios
|
|
1797
|
+
* * **Efficient e-commerce image processing:**
|
|
1798
|
+
*
|
|
1799
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
1800
|
+
* * **Multi-platform product information synchronization:**
|
|
1801
|
+
*
|
|
1802
|
+
* When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
|
|
1803
|
+
* ## Functions and features
|
|
1804
|
+
* 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.
|
|
1805
|
+
*
|
|
1806
|
+
* 1. Image subject: the core product area in the image.
|
|
1807
|
+
*
|
|
1808
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
1809
|
+
*
|
|
1810
|
+
* 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:
|
|
1811
|
+
* ## Effect comparison
|
|
1812
|
+
* | **Original image** | **Image after erasure** |
|
|
1813
|
+
* | --- | --- |
|
|
1814
|
+
* |  |  |
|
|
1815
|
+
* |  |  |
|
|
1816
|
+
*
|
|
1817
|
+
* @param request - ImageRemovalProRequest
|
|
1818
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1819
|
+
* @returns ImageRemovalProResponse
|
|
1820
|
+
*/
|
|
1821
|
+
async imageRemovalProWithOptions(request: $_model.ImageRemovalProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemovalProResponse> {
|
|
1822
|
+
request.validate();
|
|
1823
|
+
let query = { };
|
|
1824
|
+
if (!$dara.isNull(request.async)) {
|
|
1825
|
+
query["Async"] = request.async;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1829
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1833
|
+
query: OpenApiUtil.query(query),
|
|
1356
1834
|
});
|
|
1357
1835
|
let params = new $OpenApiUtil.Params({
|
|
1358
1836
|
action: "ImageRemovalPro",
|
|
@@ -1403,6 +1881,88 @@ export default class Client extends OpenApi {
|
|
|
1403
1881
|
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1404
1882
|
}
|
|
1405
1883
|
|
|
1884
|
+
/**
|
|
1885
|
+
* 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.
|
|
1886
|
+
*
|
|
1887
|
+
* @remarks
|
|
1888
|
+
* ## Scenarios
|
|
1889
|
+
* * **Efficient e-commerce image processing:**
|
|
1890
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1891
|
+
* * **Multi-platform product information synchronization:**
|
|
1892
|
+
* 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.
|
|
1893
|
+
* ## Features
|
|
1894
|
+
* 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.
|
|
1895
|
+
*
|
|
1896
|
+
* 1. Image subject: the core product area in the image.
|
|
1897
|
+
*
|
|
1898
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
1899
|
+
*
|
|
1900
|
+
* 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:
|
|
1901
|
+
* ## Before and after
|
|
1902
|
+
* | **Original image** | **Erased image** |
|
|
1903
|
+
* | --- | --- |
|
|
1904
|
+
* |  |  |
|
|
1905
|
+
* |  |  |
|
|
1906
|
+
*
|
|
1907
|
+
* @param request - ImageRemovalProAsyncRequest
|
|
1908
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1909
|
+
* @returns ImageRemovalProAsyncResponse
|
|
1910
|
+
*/
|
|
1911
|
+
async imageRemovalProAsyncWithOptions(request: $_model.ImageRemovalProAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemovalProAsyncResponse> {
|
|
1912
|
+
request.validate();
|
|
1913
|
+
let query = { };
|
|
1914
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1915
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1919
|
+
query: OpenApiUtil.query(query),
|
|
1920
|
+
});
|
|
1921
|
+
let params = new $OpenApiUtil.Params({
|
|
1922
|
+
action: "ImageRemovalProAsync",
|
|
1923
|
+
version: "2026-04-28",
|
|
1924
|
+
protocol: "HTTPS",
|
|
1925
|
+
pathname: "/",
|
|
1926
|
+
method: "POST",
|
|
1927
|
+
authType: "AK",
|
|
1928
|
+
style: "RPC",
|
|
1929
|
+
reqBodyType: "formData",
|
|
1930
|
+
bodyType: "json",
|
|
1931
|
+
});
|
|
1932
|
+
return $dara.cast<$_model.ImageRemovalProAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageRemovalProAsyncResponse({}));
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* 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.
|
|
1937
|
+
*
|
|
1938
|
+
* @remarks
|
|
1939
|
+
* ## Scenarios
|
|
1940
|
+
* * **Efficient e-commerce image processing:**
|
|
1941
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
1942
|
+
* * **Multi-platform product information synchronization:**
|
|
1943
|
+
* 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.
|
|
1944
|
+
* ## Features
|
|
1945
|
+
* 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.
|
|
1946
|
+
*
|
|
1947
|
+
* 1. Image subject: the core product area in the image.
|
|
1948
|
+
*
|
|
1949
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
1950
|
+
*
|
|
1951
|
+
* 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:
|
|
1952
|
+
* ## Before and after
|
|
1953
|
+
* | **Original image** | **Erased image** |
|
|
1954
|
+
* | --- | --- |
|
|
1955
|
+
* |  |  |
|
|
1956
|
+
* |  |  |
|
|
1957
|
+
*
|
|
1958
|
+
* @param request - ImageRemovalProAsyncRequest
|
|
1959
|
+
* @returns ImageRemovalProAsyncResponse
|
|
1960
|
+
*/
|
|
1961
|
+
async imageRemovalProAsync(request: $_model.ImageRemovalProAsyncRequest): Promise<$_model.ImageRemovalProAsyncResponse> {
|
|
1962
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1963
|
+
return await this.imageRemovalProAsyncWithOptions(request, runtime);
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1406
1966
|
/**
|
|
1407
1967
|
* 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)
|
|
1408
1968
|
*
|
|
@@ -1656,76 +2216,145 @@ export default class Client extends OpenApi {
|
|
|
1656
2216
|
}
|
|
1657
2217
|
|
|
1658
2218
|
/**
|
|
1659
|
-
*
|
|
2219
|
+
* 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.
|
|
1660
2220
|
*
|
|
1661
2221
|
* @remarks
|
|
1662
|
-
* ## Product Introduction
|
|
1663
|
-
* 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.
|
|
1664
|
-
* Supported language pairs:
|
|
1665
|
-
* | **Ordinal number** | **Source language** | | **Target language** | |
|
|
1666
|
-
* | --- | --- | --- | --- | --- |
|
|
1667
|
-
* | | Language code | Language name | Language code | Language name |
|
|
1668
|
-
* | 1 | en | English | ar | Arabic |
|
|
1669
|
-
* | 2 | en | English | id | Indonesian |
|
|
1670
|
-
* | 3 | en | English | th | Thai |
|
|
1671
|
-
* | 4 | en | English | ko | Korean |
|
|
1672
|
-
* | 5 | en | English | ja | Japanese |
|
|
1673
|
-
* | 6 | en | English | vi | Vietnamese |
|
|
1674
|
-
* | 7 | en | English | ru | Russian |
|
|
1675
|
-
* | 8 | en | English | tl | Filipino |
|
|
1676
|
-
* | 9 | en | English | es | Spanish |
|
|
1677
|
-
* | 10 | en | English | fr | French |
|
|
1678
|
-
* | 11 | en | English | de | German |
|
|
1679
|
-
* | 12 | en | English | pl | Polish |
|
|
1680
2222
|
* ## Scenarios
|
|
1681
|
-
*
|
|
2223
|
+
* * **Efficient processing of e-commerce images:**
|
|
2224
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2225
|
+
* * **Multi-platform product information synchronization:**
|
|
2226
|
+
* 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.
|
|
2227
|
+
* * **Marketing material preparation:**
|
|
2228
|
+
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2229
|
+
* > 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".
|
|
1682
2230
|
* ## Features
|
|
1683
|
-
*
|
|
2231
|
+
* 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.
|
|
1684
2232
|
*
|
|
1685
|
-
*
|
|
2233
|
+
* 1. Image subject: the core product area in the image.
|
|
2234
|
+
*
|
|
2235
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
2236
|
+
*
|
|
2237
|
+
* 2. Second, the objects to remove support the following three cases:
|
|
1686
2238
|
*
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1689
|
-
*
|
|
1690
|
-
*
|
|
1691
|
-
*
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
2239
|
+
* 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.
|
|
2240
|
+
*
|
|
2241
|
+
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2242
|
+
*
|
|
2243
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
|
|
2244
|
+
*
|
|
2245
|
+
* 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.
|
|
2246
|
+
* ## Effect comparison
|
|
2247
|
+
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2248
|
+
* | --- | --- | --- |
|
|
2249
|
+
* | Text | * Involves the image subject area
|
|
2250
|
+
*
|
|
2251
|
+
* 
|
|
2252
|
+
*
|
|
2253
|
+
* * Does not involve the image subject area
|
|
2254
|
+
*
|
|
2255
|
+
*  | * Involves the image subject area
|
|
2256
|
+
*
|
|
2257
|
+
* 
|
|
2258
|
+
* * Does not involve the image subject area
|
|
2259
|
+
*
|
|
2260
|
+
*  |
|
|
2261
|
+
* | Specific names | * Involves the image subject area
|
|
2262
|
+
*
|
|
2263
|
+
* 
|
|
2264
|
+
*
|
|
2265
|
+
* * Does not involve the image subject area
|
|
2266
|
+
*
|
|
2267
|
+
*  | * Involves the image subject area
|
|
2268
|
+
*
|
|
2269
|
+
* 
|
|
2270
|
+
* * Does not involve the image subject area
|
|
2271
|
+
*
|
|
2272
|
+
*  |
|
|
2273
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
2274
|
+
*
|
|
2275
|
+
* 
|
|
2276
|
+
*
|
|
2277
|
+
* * Does not involve the image subject area
|
|
2278
|
+
*
|
|
2279
|
+
*  | * Involves the image subject area
|
|
2280
|
+
*
|
|
2281
|
+
* 
|
|
2282
|
+
* * Does not involve the image subject area
|
|
2283
|
+
*
|
|
2284
|
+
*  |
|
|
2285
|
+
* | Watermarks | * Involves the image subject area
|
|
2286
|
+
*
|
|
2287
|
+
* 
|
|
2288
|
+
*
|
|
2289
|
+
* * Does not involve the image subject area
|
|
2290
|
+
*
|
|
2291
|
+
*  | * Involves the image subject area
|
|
2292
|
+
*
|
|
2293
|
+
* 
|
|
2294
|
+
* * Does not involve the image subject area
|
|
2295
|
+
*
|
|
2296
|
+
*  |
|
|
2297
|
+
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2298
|
+
* | Specified text erasure (supports multiple texts) |  |  |
|
|
2299
|
+
*
|
|
2300
|
+
* @param tmpReq - ImageRemoveAsyncRequest
|
|
2301
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2302
|
+
* @returns ImageRemoveAsyncResponse
|
|
2303
|
+
*/
|
|
2304
|
+
async imageRemoveAsyncWithOptions(tmpReq: $_model.ImageRemoveAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemoveAsyncResponse> {
|
|
2305
|
+
tmpReq.validate();
|
|
2306
|
+
let request = new $_model.ImageRemoveAsyncShrinkRequest({ });
|
|
2307
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2308
|
+
if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
|
|
2309
|
+
request.nonObjectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
if (!$dara.isNull(tmpReq.objectRemoveElements)) {
|
|
2313
|
+
request.objectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
if (!$dara.isNull(tmpReq.userImage)) {
|
|
2317
|
+
request.userImageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
if (!$dara.isNull(tmpReq.userText)) {
|
|
2321
|
+
request.userTextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
let query = { };
|
|
2325
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2326
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
if (!$dara.isNull(request.mask)) {
|
|
2330
|
+
query["Mask"] = request.mask;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
|
|
2334
|
+
query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
if (!$dara.isNull(request.objectRemoveElementsShrink)) {
|
|
2338
|
+
query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
if (!$dara.isNull(request.position)) {
|
|
2342
|
+
query["Position"] = request.position;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
if (!$dara.isNull(request.userImageShrink)) {
|
|
2346
|
+
query["UserImage"] = request.userImageShrink;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
if (!$dara.isNull(request.userTextShrink)) {
|
|
2350
|
+
query["UserText"] = request.userTextShrink;
|
|
1722
2351
|
}
|
|
1723
2352
|
|
|
1724
2353
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1725
|
-
|
|
2354
|
+
query: OpenApiUtil.query(query),
|
|
1726
2355
|
});
|
|
1727
2356
|
let params = new $OpenApiUtil.Params({
|
|
1728
|
-
action: "
|
|
2357
|
+
action: "ImageRemoveAsync",
|
|
1729
2358
|
version: "2026-04-28",
|
|
1730
2359
|
protocol: "HTTPS",
|
|
1731
2360
|
pathname: "/",
|
|
@@ -1735,17 +2364,107 @@ export default class Client extends OpenApi {
|
|
|
1735
2364
|
reqBodyType: "formData",
|
|
1736
2365
|
bodyType: "json",
|
|
1737
2366
|
});
|
|
1738
|
-
return $dara.cast<$_model.
|
|
2367
|
+
return $dara.cast<$_model.ImageRemoveAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageRemoveAsyncResponse({}));
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* 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.
|
|
2372
|
+
*
|
|
2373
|
+
* @remarks
|
|
2374
|
+
* ## Scenarios
|
|
2375
|
+
* * **Efficient processing of e-commerce images:**
|
|
2376
|
+
* Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
|
|
2377
|
+
* * **Multi-platform product information synchronization:**
|
|
2378
|
+
* 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.
|
|
2379
|
+
* * **Marketing material preparation:**
|
|
2380
|
+
* Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
|
|
2381
|
+
* > 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".
|
|
2382
|
+
* ## Features
|
|
2383
|
+
* 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.
|
|
2384
|
+
*
|
|
2385
|
+
* 1. Image subject: the core product area in the image.
|
|
2386
|
+
*
|
|
2387
|
+
* 2. Image background: the rest of the image other than the product subject.
|
|
2388
|
+
*
|
|
2389
|
+
* 2. Second, the objects to remove support the following three cases:
|
|
2390
|
+
*
|
|
2391
|
+
* 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.
|
|
2392
|
+
*
|
|
2393
|
+
* 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
|
|
2394
|
+
*
|
|
2395
|
+
* 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
|
|
2396
|
+
*
|
|
2397
|
+
* 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.
|
|
2398
|
+
* ## Effect comparison
|
|
2399
|
+
* | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
|
|
2400
|
+
* | --- | --- | --- |
|
|
2401
|
+
* | Text | * Involves the image subject area
|
|
2402
|
+
*
|
|
2403
|
+
* 
|
|
2404
|
+
*
|
|
2405
|
+
* * Does not involve the image subject area
|
|
2406
|
+
*
|
|
2407
|
+
*  | * Involves the image subject area
|
|
2408
|
+
*
|
|
2409
|
+
* 
|
|
2410
|
+
* * Does not involve the image subject area
|
|
2411
|
+
*
|
|
2412
|
+
*  |
|
|
2413
|
+
* | Specific names | * Involves the image subject area
|
|
2414
|
+
*
|
|
2415
|
+
* 
|
|
2416
|
+
*
|
|
2417
|
+
* * Does not involve the image subject area
|
|
2418
|
+
*
|
|
2419
|
+
*  | * Involves the image subject area
|
|
2420
|
+
*
|
|
2421
|
+
* 
|
|
2422
|
+
* * Does not involve the image subject area
|
|
2423
|
+
*
|
|
2424
|
+
*  |
|
|
2425
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
2426
|
+
*
|
|
2427
|
+
* 
|
|
2428
|
+
*
|
|
2429
|
+
* * Does not involve the image subject area
|
|
2430
|
+
*
|
|
2431
|
+
*  | * Involves the image subject area
|
|
2432
|
+
*
|
|
2433
|
+
* 
|
|
2434
|
+
* * Does not involve the image subject area
|
|
2435
|
+
*
|
|
2436
|
+
*  |
|
|
2437
|
+
* | Watermarks | * Involves the image subject area
|
|
2438
|
+
*
|
|
2439
|
+
* 
|
|
2440
|
+
*
|
|
2441
|
+
* * Does not involve the image subject area
|
|
2442
|
+
*
|
|
2443
|
+
*  | * Involves the image subject area
|
|
2444
|
+
*
|
|
2445
|
+
* 
|
|
2446
|
+
* * Does not involve the image subject area
|
|
2447
|
+
*
|
|
2448
|
+
*  |
|
|
2449
|
+
* | Specified image element erasure (supports multiple image links) |  |  |
|
|
2450
|
+
* | Specified text erasure (supports multiple texts) |  |  |
|
|
2451
|
+
*
|
|
2452
|
+
* @param request - ImageRemoveAsyncRequest
|
|
2453
|
+
* @returns ImageRemoveAsyncResponse
|
|
2454
|
+
*/
|
|
2455
|
+
async imageRemoveAsync(request: $_model.ImageRemoveAsyncRequest): Promise<$_model.ImageRemoveAsyncResponse> {
|
|
2456
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2457
|
+
return await this.imageRemoveAsyncWithOptions(request, runtime);
|
|
1739
2458
|
}
|
|
1740
2459
|
|
|
1741
2460
|
/**
|
|
1742
|
-
*
|
|
2461
|
+
* 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.
|
|
1743
2462
|
*
|
|
1744
2463
|
* @remarks
|
|
1745
2464
|
* ## Product Introduction
|
|
1746
|
-
* Image Translation PLUS is designed specifically for e-commerce images
|
|
2465
|
+
* 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.
|
|
1747
2466
|
* Supported language pairs:
|
|
1748
|
-
* | **
|
|
2467
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
1749
2468
|
* | --- | --- | --- | --- | --- |
|
|
1750
2469
|
* | | Language code | Language name | Language code | Language name |
|
|
1751
2470
|
* | 1 | en | English | ar | Arabic |
|
|
@@ -1767,42 +2486,15 @@ export default class Client extends OpenApi {
|
|
|
1767
2486
|
*
|
|
1768
2487
|
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1769
2488
|
*
|
|
1770
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC
|
|
2489
|
+
* * **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.
|
|
1771
2490
|
*
|
|
1772
2491
|
* @param request - ImageTranslationPlusRequest
|
|
1773
|
-
* @returns ImageTranslationPlusResponse
|
|
1774
|
-
*/
|
|
1775
|
-
async imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse> {
|
|
1776
|
-
let runtime = new $dara.RuntimeOptions({ });
|
|
1777
|
-
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
/**
|
|
1781
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 100 language directions (including bridged directions).
|
|
1782
|
-
*
|
|
1783
|
-
* @remarks
|
|
1784
|
-
* ## Product Introduction
|
|
1785
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
|
|
1786
|
-
* ## Scenarios
|
|
1787
|
-
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1788
|
-
* ## Features
|
|
1789
|
-
* - **Product subject protection**: Specify whether to translate text on the product subject. This helps you protect subject information from being translated, such as embedded information like product names.
|
|
1790
|
-
* - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
|
|
1791
|
-
* - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
|
|
1792
|
-
* - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1793
|
-
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1794
|
-
*
|
|
1795
|
-
* @param request - ImageTranslationProRequest
|
|
1796
2492
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1797
|
-
* @returns
|
|
2493
|
+
* @returns ImageTranslationPlusResponse
|
|
1798
2494
|
*/
|
|
1799
|
-
async
|
|
2495
|
+
async imageTranslationPlusWithOptions(request: $_model.ImageTranslationPlusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusResponse> {
|
|
1800
2496
|
request.validate();
|
|
1801
2497
|
let body : {[key: string ]: any} = { };
|
|
1802
|
-
if (!$dara.isNull(request.async)) {
|
|
1803
|
-
body["Async"] = request.async;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
2498
|
if (!$dara.isNull(request.glossary)) {
|
|
1807
2499
|
body["Glossary"] = request.glossary;
|
|
1808
2500
|
}
|
|
@@ -1832,10 +2524,987 @@ export default class Client extends OpenApi {
|
|
|
1832
2524
|
}
|
|
1833
2525
|
|
|
1834
2526
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1835
|
-
body: OpenApiUtil.parseToMap(body),
|
|
2527
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2528
|
+
});
|
|
2529
|
+
let params = new $OpenApiUtil.Params({
|
|
2530
|
+
action: "ImageTranslationPlus",
|
|
2531
|
+
version: "2026-04-28",
|
|
2532
|
+
protocol: "HTTPS",
|
|
2533
|
+
pathname: "/",
|
|
2534
|
+
method: "POST",
|
|
2535
|
+
authType: "AK",
|
|
2536
|
+
style: "RPC",
|
|
2537
|
+
reqBodyType: "formData",
|
|
2538
|
+
bodyType: "json",
|
|
2539
|
+
});
|
|
2540
|
+
return $dara.cast<$_model.ImageTranslationPlusResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* 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.
|
|
2545
|
+
*
|
|
2546
|
+
* @remarks
|
|
2547
|
+
* ## Product Introduction
|
|
2548
|
+
* 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.
|
|
2549
|
+
* Supported language pairs:
|
|
2550
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2551
|
+
* | --- | --- | --- | --- | --- |
|
|
2552
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2553
|
+
* | 1 | en | English | ar | Arabic |
|
|
2554
|
+
* | 2 | en | English | id | Indonesian |
|
|
2555
|
+
* | 3 | en | English | th | Thai |
|
|
2556
|
+
* | 4 | en | English | ko | Korean |
|
|
2557
|
+
* | 5 | en | English | ja | Japanese |
|
|
2558
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2559
|
+
* | 7 | en | English | ru | Russian |
|
|
2560
|
+
* | 8 | en | English | tl | Filipino |
|
|
2561
|
+
* | 9 | en | English | es | Spanish |
|
|
2562
|
+
* | 10 | en | English | fr | French |
|
|
2563
|
+
* | 11 | en | English | de | German |
|
|
2564
|
+
* | 12 | en | English | pl | Polish |
|
|
2565
|
+
* ## Scenarios
|
|
2566
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
2567
|
+
* ## Features
|
|
2568
|
+
* * **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.
|
|
2569
|
+
*
|
|
2570
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
2571
|
+
*
|
|
2572
|
+
* * **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.
|
|
2573
|
+
*
|
|
2574
|
+
* @param request - ImageTranslationPlusRequest
|
|
2575
|
+
* @returns ImageTranslationPlusResponse
|
|
2576
|
+
*/
|
|
2577
|
+
async imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse> {
|
|
2578
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2579
|
+
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* 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.
|
|
2584
|
+
*
|
|
2585
|
+
* @remarks
|
|
2586
|
+
* ## Scenarios
|
|
2587
|
+
* Main images and detail images for cross-border e-commerce.
|
|
2588
|
+
* ## Features
|
|
2589
|
+
* * **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.
|
|
2590
|
+
*
|
|
2591
|
+
* * **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.
|
|
2592
|
+
*
|
|
2593
|
+
* * **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.
|
|
2594
|
+
* ## Supported language pairs
|
|
2595
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2596
|
+
* | --- | --- | --- | --- | --- |
|
|
2597
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2598
|
+
* | 1 | en | English | ar | Arabic |
|
|
2599
|
+
* | 2 | en | English | id | Indonesian |
|
|
2600
|
+
* | 3 | en | English | th | Thai |
|
|
2601
|
+
* | 4 | en | English | ko | Korean |
|
|
2602
|
+
* | 5 | en | English | ja | Japanese |
|
|
2603
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2604
|
+
* | 7 | en | English | ru | Russian |
|
|
2605
|
+
* | 8 | en | English | tl | Filipino |
|
|
2606
|
+
* | 9 | en | English | es | Spanish |
|
|
2607
|
+
* | 10 | en | English | fr | French |
|
|
2608
|
+
* | 11 | en | English | de | German |
|
|
2609
|
+
* | 12 | en | English | pl | Polish |
|
|
2610
|
+
* ## Preparations and call process
|
|
2611
|
+
* 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.
|
|
2612
|
+
* 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).
|
|
2613
|
+
*
|
|
2614
|
+
* @param request - ImageTranslationPlusAsyncRequest
|
|
2615
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2616
|
+
* @returns ImageTranslationPlusAsyncResponse
|
|
2617
|
+
*/
|
|
2618
|
+
async imageTranslationPlusAsyncWithOptions(request: $_model.ImageTranslationPlusAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusAsyncResponse> {
|
|
2619
|
+
request.validate();
|
|
2620
|
+
let query = { };
|
|
2621
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2622
|
+
query["Glossary"] = request.glossary;
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2626
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2630
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2634
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2638
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2642
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2646
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2650
|
+
query: OpenApiUtil.query(query),
|
|
2651
|
+
});
|
|
2652
|
+
let params = new $OpenApiUtil.Params({
|
|
2653
|
+
action: "ImageTranslationPlusAsync",
|
|
2654
|
+
version: "2026-04-28",
|
|
2655
|
+
protocol: "HTTPS",
|
|
2656
|
+
pathname: "/",
|
|
2657
|
+
method: "POST",
|
|
2658
|
+
authType: "AK",
|
|
2659
|
+
style: "RPC",
|
|
2660
|
+
reqBodyType: "formData",
|
|
2661
|
+
bodyType: "json",
|
|
2662
|
+
});
|
|
2663
|
+
return $dara.cast<$_model.ImageTranslationPlusAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusAsyncResponse({}));
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* 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.
|
|
2668
|
+
*
|
|
2669
|
+
* @remarks
|
|
2670
|
+
* ## Scenarios
|
|
2671
|
+
* Main images and detail images for cross-border e-commerce.
|
|
2672
|
+
* ## Features
|
|
2673
|
+
* * **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.
|
|
2674
|
+
*
|
|
2675
|
+
* * **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.
|
|
2676
|
+
*
|
|
2677
|
+
* * **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.
|
|
2678
|
+
* ## Supported language pairs
|
|
2679
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
2680
|
+
* | --- | --- | --- | --- | --- |
|
|
2681
|
+
* | | Language code | Language name | Language code | Language name |
|
|
2682
|
+
* | 1 | en | English | ar | Arabic |
|
|
2683
|
+
* | 2 | en | English | id | Indonesian |
|
|
2684
|
+
* | 3 | en | English | th | Thai |
|
|
2685
|
+
* | 4 | en | English | ko | Korean |
|
|
2686
|
+
* | 5 | en | English | ja | Japanese |
|
|
2687
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
2688
|
+
* | 7 | en | English | ru | Russian |
|
|
2689
|
+
* | 8 | en | English | tl | Filipino |
|
|
2690
|
+
* | 9 | en | English | es | Spanish |
|
|
2691
|
+
* | 10 | en | English | fr | French |
|
|
2692
|
+
* | 11 | en | English | de | German |
|
|
2693
|
+
* | 12 | en | English | pl | Polish |
|
|
2694
|
+
* ## Preparations and call process
|
|
2695
|
+
* 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.
|
|
2696
|
+
* 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).
|
|
2697
|
+
*
|
|
2698
|
+
* @param request - ImageTranslationPlusAsyncRequest
|
|
2699
|
+
* @returns ImageTranslationPlusAsyncResponse
|
|
2700
|
+
*/
|
|
2701
|
+
async imageTranslationPlusAsync(request: $_model.ImageTranslationPlusAsyncRequest): Promise<$_model.ImageTranslationPlusAsyncResponse> {
|
|
2702
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2703
|
+
return await this.imageTranslationPlusAsyncWithOptions(request, runtime);
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
/**
|
|
2707
|
+
* 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.
|
|
2708
|
+
*
|
|
2709
|
+
* @remarks
|
|
2710
|
+
* ## Product Introduction
|
|
2711
|
+
* 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.
|
|
2712
|
+
* ## Scenarios
|
|
2713
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2714
|
+
* ## Functions and features
|
|
2715
|
+
* - **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.
|
|
2716
|
+
* - **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.
|
|
2717
|
+
* - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
|
|
2718
|
+
* - **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.
|
|
2719
|
+
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
2720
|
+
*
|
|
2721
|
+
* @param request - ImageTranslationProRequest
|
|
2722
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2723
|
+
* @returns ImageTranslationProResponse
|
|
2724
|
+
*/
|
|
2725
|
+
async imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse> {
|
|
2726
|
+
request.validate();
|
|
2727
|
+
let body : {[key: string ]: any} = { };
|
|
2728
|
+
if (!$dara.isNull(request.async)) {
|
|
2729
|
+
body["Async"] = request.async;
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2733
|
+
body["Glossary"] = request.glossary;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2737
|
+
body["ImageUrl"] = request.imageUrl;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2741
|
+
body["IncludingProductArea"] = request.includingProductArea;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2745
|
+
body["SourceLanguage"] = request.sourceLanguage;
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2749
|
+
body["TargetLanguage"] = request.targetLanguage;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2753
|
+
body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2757
|
+
body["UseImageEditor"] = request.useImageEditor;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2761
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2762
|
+
});
|
|
2763
|
+
let params = new $OpenApiUtil.Params({
|
|
2764
|
+
action: "ImageTranslationPro",
|
|
2765
|
+
version: "2026-04-28",
|
|
2766
|
+
protocol: "HTTPS",
|
|
2767
|
+
pathname: "/",
|
|
2768
|
+
method: "POST",
|
|
2769
|
+
authType: "AK",
|
|
2770
|
+
style: "RPC",
|
|
2771
|
+
reqBodyType: "formData",
|
|
2772
|
+
bodyType: "json",
|
|
2773
|
+
});
|
|
2774
|
+
return $dara.cast<$_model.ImageTranslationProResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
* 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.
|
|
2779
|
+
*
|
|
2780
|
+
* @remarks
|
|
2781
|
+
* ## Product Introduction
|
|
2782
|
+
* 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.
|
|
2783
|
+
* ## Scenarios
|
|
2784
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2785
|
+
* ## Functions and features
|
|
2786
|
+
* - **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.
|
|
2787
|
+
* - **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.
|
|
2788
|
+
* - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
|
|
2789
|
+
* - **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.
|
|
2790
|
+
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
2791
|
+
*
|
|
2792
|
+
* @param request - ImageTranslationProRequest
|
|
2793
|
+
* @returns ImageTranslationProResponse
|
|
2794
|
+
*/
|
|
2795
|
+
async imageTranslationPro(request: $_model.ImageTranslationProRequest): Promise<$_model.ImageTranslationProResponse> {
|
|
2796
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2797
|
+
return await this.imageTranslationProWithOptions(request, runtime);
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
/**
|
|
2801
|
+
* 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.
|
|
2802
|
+
*
|
|
2803
|
+
* @remarks
|
|
2804
|
+
* ## Scenarios
|
|
2805
|
+
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2806
|
+
* ## Features
|
|
2807
|
+
* * 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.
|
|
2808
|
+
*
|
|
2809
|
+
* * 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.
|
|
2810
|
+
*
|
|
2811
|
+
* * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2812
|
+
*
|
|
2813
|
+
* * 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.
|
|
2814
|
+
* ## Preparations and call process
|
|
2815
|
+
* 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).
|
|
2816
|
+
* 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.
|
|
2817
|
+
* 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).
|
|
2818
|
+
*
|
|
2819
|
+
* @param request - ImageTranslationProAsyncRequest
|
|
2820
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2821
|
+
* @returns ImageTranslationProAsyncResponse
|
|
2822
|
+
*/
|
|
2823
|
+
async imageTranslationProAsyncWithOptions(request: $_model.ImageTranslationProAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProAsyncResponse> {
|
|
2824
|
+
request.validate();
|
|
2825
|
+
let query = { };
|
|
2826
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2827
|
+
query["Glossary"] = request.glossary;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2831
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2835
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2839
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2843
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2847
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2851
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2855
|
+
query: OpenApiUtil.query(query),
|
|
2856
|
+
});
|
|
2857
|
+
let params = new $OpenApiUtil.Params({
|
|
2858
|
+
action: "ImageTranslationProAsync",
|
|
2859
|
+
version: "2026-04-28",
|
|
2860
|
+
protocol: "HTTPS",
|
|
2861
|
+
pathname: "/",
|
|
2862
|
+
method: "POST",
|
|
2863
|
+
authType: "AK",
|
|
2864
|
+
style: "RPC",
|
|
2865
|
+
reqBodyType: "formData",
|
|
2866
|
+
bodyType: "json",
|
|
2867
|
+
});
|
|
2868
|
+
return $dara.cast<$_model.ImageTranslationProAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationProAsyncResponse({}));
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* 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.
|
|
2873
|
+
*
|
|
2874
|
+
* @remarks
|
|
2875
|
+
* ## Scenarios
|
|
2876
|
+
* E-commerce product images, marketing images, and images in various other scenarios.
|
|
2877
|
+
* ## Features
|
|
2878
|
+
* * 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.
|
|
2879
|
+
*
|
|
2880
|
+
* * 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.
|
|
2881
|
+
*
|
|
2882
|
+
* * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
|
|
2883
|
+
*
|
|
2884
|
+
* * 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.
|
|
2885
|
+
* ## Preparations and call process
|
|
2886
|
+
* 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).
|
|
2887
|
+
* 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.
|
|
2888
|
+
* 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).
|
|
2889
|
+
*
|
|
2890
|
+
* @param request - ImageTranslationProAsyncRequest
|
|
2891
|
+
* @returns ImageTranslationProAsyncResponse
|
|
2892
|
+
*/
|
|
2893
|
+
async imageTranslationProAsync(request: $_model.ImageTranslationProAsyncRequest): Promise<$_model.ImageTranslationProAsyncResponse> {
|
|
2894
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2895
|
+
return await this.imageTranslationProAsyncWithOptions(request, runtime);
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* 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.
|
|
2900
|
+
*
|
|
2901
|
+
* @remarks
|
|
2902
|
+
* # 1. Product Introduction
|
|
2903
|
+
* 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.
|
|
2904
|
+
* # 2. Common scenarios
|
|
2905
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2906
|
+
* # 3. Features
|
|
2907
|
+
* * **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.
|
|
2908
|
+
*
|
|
2909
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
2910
|
+
*
|
|
2911
|
+
* * **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.
|
|
2912
|
+
*
|
|
2913
|
+
* * **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.
|
|
2914
|
+
* <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
2915
|
+
*
|
|
2916
|
+
* @param request - ImageTranslationStandardRequest
|
|
2917
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2918
|
+
* @returns ImageTranslationStandardResponse
|
|
2919
|
+
*/
|
|
2920
|
+
async imageTranslationStandardWithOptions(request: $_model.ImageTranslationStandardRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationStandardResponse> {
|
|
2921
|
+
request.validate();
|
|
2922
|
+
let query = { };
|
|
2923
|
+
if (!$dara.isNull(request.glossary)) {
|
|
2924
|
+
query["Glossary"] = request.glossary;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
2928
|
+
query["ImageUrl"] = request.imageUrl;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
2932
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
2936
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
2940
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
2944
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
2948
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2952
|
+
query: OpenApiUtil.query(query),
|
|
2953
|
+
});
|
|
2954
|
+
let params = new $OpenApiUtil.Params({
|
|
2955
|
+
action: "ImageTranslationStandard",
|
|
2956
|
+
version: "2026-04-28",
|
|
2957
|
+
protocol: "HTTPS",
|
|
2958
|
+
pathname: "/",
|
|
2959
|
+
method: "POST",
|
|
2960
|
+
authType: "AK",
|
|
2961
|
+
style: "RPC",
|
|
2962
|
+
reqBodyType: "formData",
|
|
2963
|
+
bodyType: "json",
|
|
2964
|
+
});
|
|
2965
|
+
return $dara.cast<$_model.ImageTranslationStandardResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* 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.
|
|
2970
|
+
*
|
|
2971
|
+
* @remarks
|
|
2972
|
+
* # 1. Product Introduction
|
|
2973
|
+
* 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.
|
|
2974
|
+
* # 2. Common scenarios
|
|
2975
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
2976
|
+
* # 3. Features
|
|
2977
|
+
* * **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.
|
|
2978
|
+
*
|
|
2979
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
|
|
2980
|
+
*
|
|
2981
|
+
* * **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.
|
|
2982
|
+
*
|
|
2983
|
+
* * **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.
|
|
2984
|
+
* <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
2985
|
+
*
|
|
2986
|
+
* @param request - ImageTranslationStandardRequest
|
|
2987
|
+
* @returns ImageTranslationStandardResponse
|
|
2988
|
+
*/
|
|
2989
|
+
async imageTranslationStandard(request: $_model.ImageTranslationStandardRequest): Promise<$_model.ImageTranslationStandardResponse> {
|
|
2990
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2991
|
+
return await this.imageTranslationStandardWithOptions(request, runtime);
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2994
|
+
/**
|
|
2995
|
+
* 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.
|
|
2996
|
+
*
|
|
2997
|
+
* @remarks
|
|
2998
|
+
* ## Scenarios
|
|
2999
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
3000
|
+
* ## Features
|
|
3001
|
+
* * **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.
|
|
3002
|
+
*
|
|
3003
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
3004
|
+
*
|
|
3005
|
+
* * **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.
|
|
3006
|
+
*
|
|
3007
|
+
* * **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.
|
|
3008
|
+
* ## Preparations and call process
|
|
3009
|
+
* * 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).
|
|
3010
|
+
* * 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.
|
|
3011
|
+
* * 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).
|
|
3012
|
+
*
|
|
3013
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
3014
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3015
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
3016
|
+
*/
|
|
3017
|
+
async imageTranslationStandardAsyncWithOptions(request: $_model.ImageTranslationStandardAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationStandardAsyncResponse> {
|
|
3018
|
+
request.validate();
|
|
3019
|
+
let query = { };
|
|
3020
|
+
if (!$dara.isNull(request.glossary)) {
|
|
3021
|
+
query["Glossary"] = request.glossary;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3025
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
3029
|
+
query["IncludingProductArea"] = request.includingProductArea;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
3032
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
3033
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
3037
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
3041
|
+
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
3045
|
+
query["UseImageEditor"] = request.useImageEditor;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3049
|
+
query: OpenApiUtil.query(query),
|
|
3050
|
+
});
|
|
3051
|
+
let params = new $OpenApiUtil.Params({
|
|
3052
|
+
action: "ImageTranslationStandardAsync",
|
|
3053
|
+
version: "2026-04-28",
|
|
3054
|
+
protocol: "HTTPS",
|
|
3055
|
+
pathname: "/",
|
|
3056
|
+
method: "POST",
|
|
3057
|
+
authType: "AK",
|
|
3058
|
+
style: "RPC",
|
|
3059
|
+
reqBodyType: "formData",
|
|
3060
|
+
bodyType: "json",
|
|
3061
|
+
});
|
|
3062
|
+
return $dara.cast<$_model.ImageTranslationStandardAsyncResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardAsyncResponse({}));
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* 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.
|
|
3067
|
+
*
|
|
3068
|
+
* @remarks
|
|
3069
|
+
* ## Scenarios
|
|
3070
|
+
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
3071
|
+
* ## Features
|
|
3072
|
+
* * **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.
|
|
3073
|
+
*
|
|
3074
|
+
* * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
|
|
3075
|
+
*
|
|
3076
|
+
* * **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.
|
|
3077
|
+
*
|
|
3078
|
+
* * **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.
|
|
3079
|
+
* ## Preparations and call process
|
|
3080
|
+
* * 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).
|
|
3081
|
+
* * 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.
|
|
3082
|
+
* * 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).
|
|
3083
|
+
*
|
|
3084
|
+
* @param request - ImageTranslationStandardAsyncRequest
|
|
3085
|
+
* @returns ImageTranslationStandardAsyncResponse
|
|
3086
|
+
*/
|
|
3087
|
+
async imageTranslationStandardAsync(request: $_model.ImageTranslationStandardAsyncRequest): Promise<$_model.ImageTranslationStandardAsyncResponse> {
|
|
3088
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3089
|
+
return await this.imageTranslationStandardAsyncWithOptions(request, runtime);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* 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.
|
|
3094
|
+
*
|
|
3095
|
+
* @remarks
|
|
3096
|
+
* ## Product Introduction
|
|
3097
|
+
* Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
3098
|
+
*
|
|
3099
|
+
* @param request - LanguageDetectRequest
|
|
3100
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3101
|
+
* @returns LanguageDetectResponse
|
|
3102
|
+
*/
|
|
3103
|
+
async languageDetectWithOptions(request: $_model.LanguageDetectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.LanguageDetectResponse> {
|
|
3104
|
+
request.validate();
|
|
3105
|
+
let query = { };
|
|
3106
|
+
if (!$dara.isNull(request.scene)) {
|
|
3107
|
+
query["Scene"] = request.scene;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
if (!$dara.isNull(request.sourceText)) {
|
|
3111
|
+
query["SourceText"] = request.sourceText;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3115
|
+
query: OpenApiUtil.query(query),
|
|
3116
|
+
});
|
|
3117
|
+
let params = new $OpenApiUtil.Params({
|
|
3118
|
+
action: "LanguageDetect",
|
|
3119
|
+
version: "2026-04-28",
|
|
3120
|
+
protocol: "HTTPS",
|
|
3121
|
+
pathname: "/",
|
|
3122
|
+
method: "POST",
|
|
3123
|
+
authType: "AK",
|
|
3124
|
+
style: "RPC",
|
|
3125
|
+
reqBodyType: "formData",
|
|
3126
|
+
bodyType: "json",
|
|
3127
|
+
});
|
|
3128
|
+
return $dara.cast<$_model.LanguageDetectResponse>(await this.callApi(params, req, runtime), new $_model.LanguageDetectResponse({}));
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
/**
|
|
3132
|
+
* 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.
|
|
3133
|
+
*
|
|
3134
|
+
* @remarks
|
|
3135
|
+
* ## Product Introduction
|
|
3136
|
+
* Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
3137
|
+
*
|
|
3138
|
+
* @param request - LanguageDetectRequest
|
|
3139
|
+
* @returns LanguageDetectResponse
|
|
3140
|
+
*/
|
|
3141
|
+
async languageDetect(request: $_model.LanguageDetectRequest): Promise<$_model.LanguageDetectResponse> {
|
|
3142
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3143
|
+
return await this.languageDetectWithOptions(request, runtime);
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
/**
|
|
3147
|
+
* Material display detection is an intelligent compliance detection capability for in-store marketing materials built on a Multimodal Large Language Model (MLLM), designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as functional card stands, posters, and door-shaped display stands, as well as long-tail materials such as light cloth banners, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
|
|
3148
|
+
*
|
|
3149
|
+
* @remarks
|
|
3150
|
+
* ## **Scenarios**
|
|
3151
|
+
* - **In-store marketing material compliance inspection**: Automatically determines whether marketing materials (functional card stands, posters, door-shaped display stands, etc.) are placed or posted in the store according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "incorrectly placed," or "content mismatch."
|
|
3152
|
+
*
|
|
3153
|
+
* - **New product / campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials have been listed as required based on store photos, replacing manual spot checks.
|
|
3154
|
+
*
|
|
3155
|
+
* - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode switches automatically based on whether `ImageRefer` is provided, so callers do not need to differentiate between invocation methods.
|
|
3156
|
+
* ## **Features**
|
|
3157
|
+
* - **Multi-mode intelligent routing**: Built-in material type parsing capability that automatically identifies the target material type based on `Rules` natural language text and routes to the corresponding detection pipeline. Callers only need to provide image URLs and rule text. Currently, four detection routing pipelines are supported: "functional card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
|
|
3158
|
+
*
|
|
3159
|
+
* - **MLLM semantic-level understanding + structured rule coordination**: Uses a multimodal large language model for material recognition, content comparison, text OCR, and other semantic-level understanding tasks. Combined with rule cleaning and structured models, natural language rules are decomposed into individually evaluable steps (S1 / S2…), ensuring accuracy while maintaining rule flexibility and traceability.
|
|
3160
|
+
*
|
|
3161
|
+
* - **Structured inspection conclusion output**: Output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logical AND of all steps. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
3162
|
+
*
|
|
3163
|
+
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) calling modes are supported, with identical output structures.
|
|
3164
|
+
* ## **Invocation method**
|
|
3165
|
+
* - **Synchronous call**: A single request returns the detection result without polling. The response follows a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
3166
|
+
*
|
|
3167
|
+
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
3168
|
+
*
|
|
3169
|
+
* - **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).
|
|
3170
|
+
*
|
|
3171
|
+
* @param request - MaterialInspectionRequest
|
|
3172
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3173
|
+
* @returns MaterialInspectionResponse
|
|
3174
|
+
*/
|
|
3175
|
+
async materialInspectionWithOptions(request: $_model.MaterialInspectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MaterialInspectionResponse> {
|
|
3176
|
+
request.validate();
|
|
3177
|
+
let query = { };
|
|
3178
|
+
if (!$dara.isNull(request.apiId)) {
|
|
3179
|
+
query["ApiId"] = request.apiId;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
if (!$dara.isNull(request.imageRefer)) {
|
|
3183
|
+
query["ImageRefer"] = request.imageRefer;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3187
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
if (!$dara.isNull(request.reqId)) {
|
|
3191
|
+
query["ReqId"] = request.reqId;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
if (!$dara.isNull(request.rules)) {
|
|
3195
|
+
query["Rules"] = request.rules;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3199
|
+
query: OpenApiUtil.query(query),
|
|
3200
|
+
});
|
|
3201
|
+
let params = new $OpenApiUtil.Params({
|
|
3202
|
+
action: "MaterialInspection",
|
|
3203
|
+
version: "2026-04-28",
|
|
3204
|
+
protocol: "HTTPS",
|
|
3205
|
+
pathname: "/",
|
|
3206
|
+
method: "POST",
|
|
3207
|
+
authType: "AK",
|
|
3208
|
+
style: "RPC",
|
|
3209
|
+
reqBodyType: "formData",
|
|
3210
|
+
bodyType: "json",
|
|
3211
|
+
});
|
|
3212
|
+
return $dara.cast<$_model.MaterialInspectionResponse>(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
/**
|
|
3216
|
+
* Material display detection is an intelligent compliance detection capability for in-store marketing materials built on a Multimodal Large Language Model (MLLM), designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as functional card stands, posters, and door-shaped display stands, as well as long-tail materials such as light cloth banners, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
|
|
3217
|
+
*
|
|
3218
|
+
* @remarks
|
|
3219
|
+
* ## **Scenarios**
|
|
3220
|
+
* - **In-store marketing material compliance inspection**: Automatically determines whether marketing materials (functional card stands, posters, door-shaped display stands, etc.) are placed or posted in the store according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "incorrectly placed," or "content mismatch."
|
|
3221
|
+
*
|
|
3222
|
+
* - **New product / campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials have been listed as required based on store photos, replacing manual spot checks.
|
|
3223
|
+
*
|
|
3224
|
+
* - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode switches automatically based on whether `ImageRefer` is provided, so callers do not need to differentiate between invocation methods.
|
|
3225
|
+
* ## **Features**
|
|
3226
|
+
* - **Multi-mode intelligent routing**: Built-in material type parsing capability that automatically identifies the target material type based on `Rules` natural language text and routes to the corresponding detection pipeline. Callers only need to provide image URLs and rule text. Currently, four detection routing pipelines are supported: "functional card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
|
|
3227
|
+
*
|
|
3228
|
+
* - **MLLM semantic-level understanding + structured rule coordination**: Uses a multimodal large language model for material recognition, content comparison, text OCR, and other semantic-level understanding tasks. Combined with rule cleaning and structured models, natural language rules are decomposed into individually evaluable steps (S1 / S2…), ensuring accuracy while maintaining rule flexibility and traceability.
|
|
3229
|
+
*
|
|
3230
|
+
* - **Structured inspection conclusion output**: Output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logical AND of all steps. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
3231
|
+
*
|
|
3232
|
+
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) calling modes are supported, with identical output structures.
|
|
3233
|
+
* ## **Invocation method**
|
|
3234
|
+
* - **Synchronous call**: A single request returns the detection result without polling. The response follows a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
3235
|
+
*
|
|
3236
|
+
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
3237
|
+
*
|
|
3238
|
+
* - **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).
|
|
3239
|
+
*
|
|
3240
|
+
* @param request - MaterialInspectionRequest
|
|
3241
|
+
* @returns MaterialInspectionResponse
|
|
3242
|
+
*/
|
|
3243
|
+
async materialInspection(request: $_model.MaterialInspectionRequest): Promise<$_model.MaterialInspectionResponse> {
|
|
3244
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3245
|
+
return await this.materialInspectionWithOptions(request, runtime);
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* 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.
|
|
3250
|
+
*
|
|
3251
|
+
* @remarks
|
|
3252
|
+
* ## **Product Introduction**
|
|
3253
|
+
* 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.
|
|
3254
|
+
* ## **Scenarios**
|
|
3255
|
+
* - **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.
|
|
3256
|
+
*
|
|
3257
|
+
* - **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.
|
|
3258
|
+
*
|
|
3259
|
+
* - **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.
|
|
3260
|
+
* ## **Functions and features**
|
|
3261
|
+
* - **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.
|
|
3262
|
+
*
|
|
3263
|
+
* - **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.
|
|
3264
|
+
*
|
|
3265
|
+
* - **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.
|
|
3266
|
+
*
|
|
3267
|
+
* - **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.
|
|
3268
|
+
*
|
|
3269
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
3270
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3271
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
3272
|
+
*/
|
|
3273
|
+
async merchandisePlacementDetectionWithOptions(request: $_model.MerchandisePlacementDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
3274
|
+
request.validate();
|
|
3275
|
+
let query = { };
|
|
3276
|
+
if (!$dara.isNull(request.apiId)) {
|
|
3277
|
+
query["ApiId"] = request.apiId;
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3281
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
if (!$dara.isNull(request.ragId)) {
|
|
3285
|
+
query["RagId"] = request.ragId;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
if (!$dara.isNull(request.rule)) {
|
|
3289
|
+
query["Rule"] = request.rule;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
if (!$dara.isNull(request.type)) {
|
|
3293
|
+
query["Type"] = request.type;
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3297
|
+
query: OpenApiUtil.query(query),
|
|
3298
|
+
});
|
|
3299
|
+
let params = new $OpenApiUtil.Params({
|
|
3300
|
+
action: "MerchandisePlacementDetection",
|
|
3301
|
+
version: "2026-04-28",
|
|
3302
|
+
protocol: "HTTPS",
|
|
3303
|
+
pathname: "/",
|
|
3304
|
+
method: "POST",
|
|
3305
|
+
authType: "AK",
|
|
3306
|
+
style: "RPC",
|
|
3307
|
+
reqBodyType: "formData",
|
|
3308
|
+
bodyType: "json",
|
|
3309
|
+
});
|
|
3310
|
+
return $dara.cast<$_model.MerchandisePlacementDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionResponse({}));
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* 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.
|
|
3315
|
+
*
|
|
3316
|
+
* @remarks
|
|
3317
|
+
* ## **Product Introduction**
|
|
3318
|
+
* 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.
|
|
3319
|
+
* ## **Scenarios**
|
|
3320
|
+
* - **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.
|
|
3321
|
+
*
|
|
3322
|
+
* - **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.
|
|
3323
|
+
*
|
|
3324
|
+
* - **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.
|
|
3325
|
+
* ## **Functions and features**
|
|
3326
|
+
* - **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.
|
|
3327
|
+
*
|
|
3328
|
+
* - **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.
|
|
3329
|
+
*
|
|
3330
|
+
* - **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.
|
|
3331
|
+
*
|
|
3332
|
+
* - **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.
|
|
3333
|
+
*
|
|
3334
|
+
* @param request - MerchandisePlacementDetectionRequest
|
|
3335
|
+
* @returns MerchandisePlacementDetectionResponse
|
|
3336
|
+
*/
|
|
3337
|
+
async merchandisePlacementDetection(request: $_model.MerchandisePlacementDetectionRequest): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
3338
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3339
|
+
return await this.merchandisePlacementDetectionWithOptions(request, runtime);
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* 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.
|
|
3344
|
+
*
|
|
3345
|
+
* @remarks
|
|
3346
|
+
* ## Scenarios
|
|
3347
|
+
* - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
|
|
3348
|
+
* - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
|
|
3349
|
+
* - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
|
|
3350
|
+
* ## Features
|
|
3351
|
+
* - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
|
|
3352
|
+
* - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
|
|
3353
|
+
* - 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.
|
|
3354
|
+
* - 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.
|
|
3355
|
+
*
|
|
3356
|
+
* @param request - MerchandisePlacementDetectionLiteRequest
|
|
3357
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3358
|
+
* @returns MerchandisePlacementDetectionLiteResponse
|
|
3359
|
+
*/
|
|
3360
|
+
async merchandisePlacementDetectionLiteWithOptions(request: $_model.MerchandisePlacementDetectionLiteRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionLiteResponse> {
|
|
3361
|
+
request.validate();
|
|
3362
|
+
let query = { };
|
|
3363
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3364
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3368
|
+
query: OpenApiUtil.query(query),
|
|
3369
|
+
});
|
|
3370
|
+
let params = new $OpenApiUtil.Params({
|
|
3371
|
+
action: "MerchandisePlacementDetectionLite",
|
|
3372
|
+
version: "2026-04-28",
|
|
3373
|
+
protocol: "HTTPS",
|
|
3374
|
+
pathname: "/",
|
|
3375
|
+
method: "POST",
|
|
3376
|
+
authType: "AK",
|
|
3377
|
+
style: "RPC",
|
|
3378
|
+
reqBodyType: "formData",
|
|
3379
|
+
bodyType: "json",
|
|
3380
|
+
});
|
|
3381
|
+
return $dara.cast<$_model.MerchandisePlacementDetectionLiteResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionLiteResponse({}));
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
/**
|
|
3385
|
+
* 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.
|
|
3386
|
+
*
|
|
3387
|
+
* @remarks
|
|
3388
|
+
* ## Scenarios
|
|
3389
|
+
* - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
|
|
3390
|
+
* - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
|
|
3391
|
+
* - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
|
|
3392
|
+
* ## Features
|
|
3393
|
+
* - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
|
|
3394
|
+
* - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
|
|
3395
|
+
* - 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.
|
|
3396
|
+
* - 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.
|
|
3397
|
+
*
|
|
3398
|
+
* @param request - MerchandisePlacementDetectionLiteRequest
|
|
3399
|
+
* @returns MerchandisePlacementDetectionLiteResponse
|
|
3400
|
+
*/
|
|
3401
|
+
async merchandisePlacementDetectionLite(request: $_model.MerchandisePlacementDetectionLiteRequest): Promise<$_model.MerchandisePlacementDetectionLiteResponse> {
|
|
3402
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3403
|
+
return await this.merchandisePlacementDetectionLiteWithOptions(request, runtime);
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
/**
|
|
3407
|
+
* 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.
|
|
3408
|
+
*
|
|
3409
|
+
* @remarks
|
|
3410
|
+
* ## Scenarios
|
|
3411
|
+
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
3412
|
+
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
3413
|
+
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
3414
|
+
* ## Features
|
|
3415
|
+
* - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
|
|
3416
|
+
* - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
|
|
3417
|
+
* - 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.
|
|
3418
|
+
* - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
|
|
3419
|
+
*
|
|
3420
|
+
* @param request - MerchandisePlacementDetectionProRequest
|
|
3421
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3422
|
+
* @returns MerchandisePlacementDetectionProResponse
|
|
3423
|
+
*/
|
|
3424
|
+
async merchandisePlacementDetectionProWithOptions(request: $_model.MerchandisePlacementDetectionProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionProResponse> {
|
|
3425
|
+
request.validate();
|
|
3426
|
+
let query = { };
|
|
3427
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3428
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
if (!$dara.isNull(request.rule)) {
|
|
3432
|
+
query["Rule"] = request.rule;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
if (!$dara.isNull(request.type)) {
|
|
3436
|
+
query["Type"] = request.type;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3440
|
+
query: OpenApiUtil.query(query),
|
|
3441
|
+
});
|
|
3442
|
+
let params = new $OpenApiUtil.Params({
|
|
3443
|
+
action: "MerchandisePlacementDetectionPro",
|
|
3444
|
+
version: "2026-04-28",
|
|
3445
|
+
protocol: "HTTPS",
|
|
3446
|
+
pathname: "/",
|
|
3447
|
+
method: "POST",
|
|
3448
|
+
authType: "AK",
|
|
3449
|
+
style: "RPC",
|
|
3450
|
+
reqBodyType: "formData",
|
|
3451
|
+
bodyType: "json",
|
|
3452
|
+
});
|
|
3453
|
+
return $dara.cast<$_model.MerchandisePlacementDetectionProResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionProResponse({}));
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* 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.
|
|
3458
|
+
*
|
|
3459
|
+
* @remarks
|
|
3460
|
+
* ## Scenarios
|
|
3461
|
+
* - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
|
|
3462
|
+
* - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
|
|
3463
|
+
* - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
|
|
3464
|
+
* ## Features
|
|
3465
|
+
* - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
|
|
3466
|
+
* - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
|
|
3467
|
+
* - 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.
|
|
3468
|
+
* - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
|
|
3469
|
+
*
|
|
3470
|
+
* @param request - MerchandisePlacementDetectionProRequest
|
|
3471
|
+
* @returns MerchandisePlacementDetectionProResponse
|
|
3472
|
+
*/
|
|
3473
|
+
async merchandisePlacementDetectionPro(request: $_model.MerchandisePlacementDetectionProRequest): Promise<$_model.MerchandisePlacementDetectionProResponse> {
|
|
3474
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3475
|
+
return await this.merchandisePlacementDetectionProWithOptions(request, runtime);
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
/**
|
|
3479
|
+
* 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.
|
|
3480
|
+
*
|
|
3481
|
+
* @remarks
|
|
3482
|
+
* ## Scenarios
|
|
3483
|
+
* - Store price collection: Reads the recognized selling prices and available original prices of price tags.
|
|
3484
|
+
* - Price execution verification: Compares the recognized prices with the business-side price list.
|
|
3485
|
+
* - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
|
|
3486
|
+
* ## Features
|
|
3487
|
+
* - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
|
|
3488
|
+
* - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
|
|
3489
|
+
* - 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.
|
|
3490
|
+
* - 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.
|
|
3491
|
+
*
|
|
3492
|
+
* @param request - MerchandisePriceTagDetectionRequest
|
|
3493
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3494
|
+
* @returns MerchandisePriceTagDetectionResponse
|
|
3495
|
+
*/
|
|
3496
|
+
async merchandisePriceTagDetectionWithOptions(request: $_model.MerchandisePriceTagDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePriceTagDetectionResponse> {
|
|
3497
|
+
request.validate();
|
|
3498
|
+
let query = { };
|
|
3499
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3500
|
+
query["ImageUrl"] = request.imageUrl;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3504
|
+
query: OpenApiUtil.query(query),
|
|
1836
3505
|
});
|
|
1837
3506
|
let params = new $OpenApiUtil.Params({
|
|
1838
|
-
action: "
|
|
3507
|
+
action: "MerchandisePriceTagDetection",
|
|
1839
3508
|
version: "2026-04-28",
|
|
1840
3509
|
protocol: "HTTPS",
|
|
1841
3510
|
pathname: "/",
|
|
@@ -1845,90 +3514,61 @@ export default class Client extends OpenApi {
|
|
|
1845
3514
|
reqBodyType: "formData",
|
|
1846
3515
|
bodyType: "json",
|
|
1847
3516
|
});
|
|
1848
|
-
return $dara.cast<$_model.
|
|
3517
|
+
return $dara.cast<$_model.MerchandisePriceTagDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePriceTagDetectionResponse({}));
|
|
1849
3518
|
}
|
|
1850
3519
|
|
|
1851
3520
|
/**
|
|
1852
|
-
*
|
|
3521
|
+
* 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.
|
|
1853
3522
|
*
|
|
1854
3523
|
* @remarks
|
|
1855
|
-
* ## Product Introduction
|
|
1856
|
-
* Image Translation Pro is designed for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
|
|
1857
3524
|
* ## Scenarios
|
|
1858
|
-
*
|
|
3525
|
+
* - Store price collection: Reads the recognized selling prices and available original prices of price tags.
|
|
3526
|
+
* - Price execution verification: Compares the recognized prices with the business-side price list.
|
|
3527
|
+
* - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
|
|
1859
3528
|
* ## Features
|
|
1860
|
-
* -
|
|
1861
|
-
* -
|
|
1862
|
-
* -
|
|
1863
|
-
* -
|
|
1864
|
-
* - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
3529
|
+
* - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
|
|
3530
|
+
* - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
|
|
3531
|
+
* - 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.
|
|
3532
|
+
* - 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.
|
|
1865
3533
|
*
|
|
1866
|
-
* @param request -
|
|
1867
|
-
* @returns
|
|
3534
|
+
* @param request - MerchandisePriceTagDetectionRequest
|
|
3535
|
+
* @returns MerchandisePriceTagDetectionResponse
|
|
1868
3536
|
*/
|
|
1869
|
-
async
|
|
3537
|
+
async merchandisePriceTagDetection(request: $_model.MerchandisePriceTagDetectionRequest): Promise<$_model.MerchandisePriceTagDetectionResponse> {
|
|
1870
3538
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1871
|
-
return await this.
|
|
3539
|
+
return await this.merchandisePriceTagDetectionWithOptions(request, runtime);
|
|
1872
3540
|
}
|
|
1873
3541
|
|
|
1874
3542
|
/**
|
|
1875
|
-
*
|
|
3543
|
+
* 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.
|
|
1876
3544
|
*
|
|
1877
3545
|
* @remarks
|
|
1878
|
-
*
|
|
1879
|
-
*
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
|
-
*
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1885
|
-
*
|
|
1886
|
-
*
|
|
1887
|
-
* * **Secondary editing after translation (layer information)**: Allows you to choose 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. For the availability of the editor SDK package, follow platform notifications.
|
|
1888
|
-
*
|
|
1889
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC-ABC), specifying translations (ABC-DEF), or removing text (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 operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1890
|
-
* * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
3546
|
+
* ## Scenarios
|
|
3547
|
+
* - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
|
|
3548
|
+
* - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
|
|
3549
|
+
* - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
|
|
3550
|
+
* ## Features
|
|
3551
|
+
* - Scene structured output: returns scene names, center points, area contours, and active metrics.
|
|
3552
|
+
* - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
|
|
3553
|
+
* - 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.
|
|
3554
|
+
* - 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.
|
|
1891
3555
|
*
|
|
1892
|
-
* @param request -
|
|
3556
|
+
* @param request - MerchandiseSceneDetectionRequest
|
|
1893
3557
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1894
|
-
* @returns
|
|
3558
|
+
* @returns MerchandiseSceneDetectionResponse
|
|
1895
3559
|
*/
|
|
1896
|
-
async
|
|
3560
|
+
async merchandiseSceneDetectionWithOptions(request: $_model.MerchandiseSceneDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandiseSceneDetectionResponse> {
|
|
1897
3561
|
request.validate();
|
|
1898
3562
|
let query = { };
|
|
1899
|
-
if (!$dara.isNull(request.glossary)) {
|
|
1900
|
-
query["Glossary"] = request.glossary;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
3563
|
if (!$dara.isNull(request.imageUrl)) {
|
|
1904
3564
|
query["ImageUrl"] = request.imageUrl;
|
|
1905
3565
|
}
|
|
1906
3566
|
|
|
1907
|
-
if (!$dara.isNull(request.includingProductArea)) {
|
|
1908
|
-
query["IncludingProductArea"] = request.includingProductArea;
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
if (!$dara.isNull(request.sourceLanguage)) {
|
|
1912
|
-
query["SourceLanguage"] = request.sourceLanguage;
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
if (!$dara.isNull(request.targetLanguage)) {
|
|
1916
|
-
query["TargetLanguage"] = request.targetLanguage;
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
1920
|
-
query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
if (!$dara.isNull(request.useImageEditor)) {
|
|
1924
|
-
query["UseImageEditor"] = request.useImageEditor;
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
3567
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1928
3568
|
query: OpenApiUtil.query(query),
|
|
1929
3569
|
});
|
|
1930
3570
|
let params = new $OpenApiUtil.Params({
|
|
1931
|
-
action: "
|
|
3571
|
+
action: "MerchandiseSceneDetection",
|
|
1932
3572
|
version: "2026-04-28",
|
|
1933
3573
|
protocol: "HTTPS",
|
|
1934
3574
|
pathname: "/",
|
|
@@ -1938,62 +3578,61 @@ export default class Client extends OpenApi {
|
|
|
1938
3578
|
reqBodyType: "formData",
|
|
1939
3579
|
bodyType: "json",
|
|
1940
3580
|
});
|
|
1941
|
-
return $dara.cast<$_model.
|
|
3581
|
+
return $dara.cast<$_model.MerchandiseSceneDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MerchandiseSceneDetectionResponse({}));
|
|
1942
3582
|
}
|
|
1943
3583
|
|
|
1944
3584
|
/**
|
|
1945
|
-
*
|
|
3585
|
+
* 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.
|
|
1946
3586
|
*
|
|
1947
3587
|
* @remarks
|
|
1948
|
-
*
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1954
|
-
*
|
|
1955
|
-
*
|
|
1956
|
-
*
|
|
1957
|
-
* * **Secondary editing after translation (layer information)**: Allows you to choose 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. For the availability of the editor SDK package, follow platform notifications.
|
|
1958
|
-
*
|
|
1959
|
-
* * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC-ABC), specifying translations (ABC-DEF), or removing text (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 operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1960
|
-
* * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
3588
|
+
* ## Scenarios
|
|
3589
|
+
* - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
|
|
3590
|
+
* - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
|
|
3591
|
+
* - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
|
|
3592
|
+
* ## Features
|
|
3593
|
+
* - Scene structured output: returns scene names, center points, area contours, and active metrics.
|
|
3594
|
+
* - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
|
|
3595
|
+
* - 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.
|
|
3596
|
+
* - 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.
|
|
1961
3597
|
*
|
|
1962
|
-
* @param request -
|
|
1963
|
-
* @returns
|
|
3598
|
+
* @param request - MerchandiseSceneDetectionRequest
|
|
3599
|
+
* @returns MerchandiseSceneDetectionResponse
|
|
1964
3600
|
*/
|
|
1965
|
-
async
|
|
3601
|
+
async merchandiseSceneDetection(request: $_model.MerchandiseSceneDetectionRequest): Promise<$_model.MerchandiseSceneDetectionResponse> {
|
|
1966
3602
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1967
|
-
return await this.
|
|
3603
|
+
return await this.merchandiseSceneDetectionWithOptions(request, runtime);
|
|
1968
3604
|
}
|
|
1969
3605
|
|
|
1970
3606
|
/**
|
|
1971
|
-
*
|
|
3607
|
+
* 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.
|
|
1972
3608
|
*
|
|
1973
3609
|
* @remarks
|
|
1974
|
-
* ##
|
|
1975
|
-
*
|
|
3610
|
+
* ## Features
|
|
3611
|
+
* - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
|
|
3612
|
+
* - 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.
|
|
3613
|
+
* - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
|
|
3614
|
+
* - 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.
|
|
3615
|
+
* ## Scenarios:
|
|
3616
|
+
* - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
|
|
3617
|
+
* - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
|
|
3618
|
+
* - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
|
|
1976
3619
|
*
|
|
1977
|
-
* @param request -
|
|
3620
|
+
* @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
|
|
1978
3621
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1979
|
-
* @returns
|
|
3622
|
+
* @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
|
|
1980
3623
|
*/
|
|
1981
|
-
async
|
|
3624
|
+
async milkPowderCanBottomCodeRephotographyDetectionWithOptions(request: $_model.MilkPowderCanBottomCodeRephotographyDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MilkPowderCanBottomCodeRephotographyDetectionResponse> {
|
|
1982
3625
|
request.validate();
|
|
1983
3626
|
let query = { };
|
|
1984
|
-
if (!$dara.isNull(request.
|
|
1985
|
-
query["
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
if (!$dara.isNull(request.sourceText)) {
|
|
1989
|
-
query["SourceText"] = request.sourceText;
|
|
3627
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
3628
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1990
3629
|
}
|
|
1991
3630
|
|
|
1992
3631
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1993
3632
|
query: OpenApiUtil.query(query),
|
|
1994
3633
|
});
|
|
1995
3634
|
let params = new $OpenApiUtil.Params({
|
|
1996
|
-
action: "
|
|
3635
|
+
action: "MilkPowderCanBottomCodeRephotographyDetection",
|
|
1997
3636
|
version: "2026-04-28",
|
|
1998
3637
|
protocol: "HTTPS",
|
|
1999
3638
|
pathname: "/",
|
|
@@ -2003,81 +3642,61 @@ export default class Client extends OpenApi {
|
|
|
2003
3642
|
reqBodyType: "formData",
|
|
2004
3643
|
bodyType: "json",
|
|
2005
3644
|
});
|
|
2006
|
-
return $dara.cast<$_model.
|
|
3645
|
+
return $dara.cast<$_model.MilkPowderCanBottomCodeRephotographyDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MilkPowderCanBottomCodeRephotographyDetectionResponse({}));
|
|
2007
3646
|
}
|
|
2008
3647
|
|
|
2009
3648
|
/**
|
|
2010
|
-
*
|
|
3649
|
+
* 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.
|
|
2011
3650
|
*
|
|
2012
3651
|
* @remarks
|
|
2013
|
-
* ##
|
|
2014
|
-
*
|
|
3652
|
+
* ## Features
|
|
3653
|
+
* - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
|
|
3654
|
+
* - 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.
|
|
3655
|
+
* - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
|
|
3656
|
+
* - 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.
|
|
3657
|
+
* ## Scenarios:
|
|
3658
|
+
* - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
|
|
3659
|
+
* - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
|
|
3660
|
+
* - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
|
|
2015
3661
|
*
|
|
2016
|
-
* @param request -
|
|
2017
|
-
* @returns
|
|
3662
|
+
* @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
|
|
3663
|
+
* @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
|
|
2018
3664
|
*/
|
|
2019
|
-
async
|
|
3665
|
+
async milkPowderCanBottomCodeRephotographyDetection(request: $_model.MilkPowderCanBottomCodeRephotographyDetectionRequest): Promise<$_model.MilkPowderCanBottomCodeRephotographyDetectionResponse> {
|
|
2020
3666
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2021
|
-
return await this.
|
|
3667
|
+
return await this.milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2022
3668
|
}
|
|
2023
3669
|
|
|
2024
3670
|
/**
|
|
2025
|
-
*
|
|
3671
|
+
* 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.
|
|
2026
3672
|
*
|
|
2027
3673
|
* @remarks
|
|
2028
|
-
* ##
|
|
2029
|
-
* -
|
|
2030
|
-
*
|
|
2031
|
-
* -
|
|
2032
|
-
*
|
|
2033
|
-
*
|
|
2034
|
-
*
|
|
2035
|
-
* -
|
|
2036
|
-
*
|
|
2037
|
-
* - **MLLM semantic-level understanding + structured rule coordination**: Uses a multimodal large language model for material recognition, content comparison, text OCR, and other semantic-level understanding tasks. Combined with rule cleaning and structured models, natural language rules are decomposed into individually evaluable steps (S1 / S2…), ensuring accuracy while maintaining rule flexibility and traceability.
|
|
2038
|
-
*
|
|
2039
|
-
* - **Structured inspection conclusion output**: Output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logical AND of all steps. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
2040
|
-
*
|
|
2041
|
-
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) calling modes are supported, with identical output structures.
|
|
2042
|
-
* ## **Invocation method**
|
|
2043
|
-
* - **Synchronous call**: A single request returns the detection result without polling. The response follows a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
2044
|
-
*
|
|
2045
|
-
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
2046
|
-
*
|
|
2047
|
-
* - **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).
|
|
3674
|
+
* ## Features
|
|
3675
|
+
* - 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.
|
|
3676
|
+
* - 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.
|
|
3677
|
+
* - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
|
|
3678
|
+
* - 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.
|
|
3679
|
+
* ## Scenarios
|
|
3680
|
+
* - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
|
|
3681
|
+
* - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
|
|
3682
|
+
* - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
|
|
2048
3683
|
*
|
|
2049
|
-
* @param request -
|
|
3684
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
2050
3685
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2051
|
-
* @returns
|
|
3686
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2052
3687
|
*/
|
|
2053
|
-
async
|
|
3688
|
+
async milkPowderCartonCodeRephotographyDetectionWithOptions(request: $_model.MilkPowderCartonCodeRephotographyDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MilkPowderCartonCodeRephotographyDetectionResponse> {
|
|
2054
3689
|
request.validate();
|
|
2055
3690
|
let query = { };
|
|
2056
|
-
if (!$dara.isNull(request.apiId)) {
|
|
2057
|
-
query["ApiId"] = request.apiId;
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
if (!$dara.isNull(request.imageRefer)) {
|
|
2061
|
-
query["ImageRefer"] = request.imageRefer;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
3691
|
if (!$dara.isNull(request.imageUrl)) {
|
|
2065
3692
|
query["ImageUrl"] = request.imageUrl;
|
|
2066
3693
|
}
|
|
2067
3694
|
|
|
2068
|
-
if (!$dara.isNull(request.reqId)) {
|
|
2069
|
-
query["ReqId"] = request.reqId;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
if (!$dara.isNull(request.rules)) {
|
|
2073
|
-
query["Rules"] = request.rules;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
3695
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2077
3696
|
query: OpenApiUtil.query(query),
|
|
2078
3697
|
});
|
|
2079
3698
|
let params = new $OpenApiUtil.Params({
|
|
2080
|
-
action: "
|
|
3699
|
+
action: "MilkPowderCartonCodeRephotographyDetection",
|
|
2081
3700
|
version: "2026-04-28",
|
|
2082
3701
|
protocol: "HTTPS",
|
|
2083
3702
|
pathname: "/",
|
|
@@ -2087,95 +3706,69 @@ export default class Client extends OpenApi {
|
|
|
2087
3706
|
reqBodyType: "formData",
|
|
2088
3707
|
bodyType: "json",
|
|
2089
3708
|
});
|
|
2090
|
-
return $dara.cast<$_model.
|
|
3709
|
+
return $dara.cast<$_model.MilkPowderCartonCodeRephotographyDetectionResponse>(await this.callApi(params, req, runtime), new $_model.MilkPowderCartonCodeRephotographyDetectionResponse({}));
|
|
2091
3710
|
}
|
|
2092
3711
|
|
|
2093
3712
|
/**
|
|
2094
|
-
*
|
|
3713
|
+
* 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.
|
|
2095
3714
|
*
|
|
2096
3715
|
* @remarks
|
|
2097
|
-
* ##
|
|
2098
|
-
* -
|
|
2099
|
-
*
|
|
2100
|
-
* -
|
|
2101
|
-
*
|
|
2102
|
-
*
|
|
2103
|
-
*
|
|
2104
|
-
* -
|
|
2105
|
-
*
|
|
2106
|
-
* - **MLLM semantic-level understanding + structured rule coordination**: Uses a multimodal large language model for material recognition, content comparison, text OCR, and other semantic-level understanding tasks. Combined with rule cleaning and structured models, natural language rules are decomposed into individually evaluable steps (S1 / S2…), ensuring accuracy while maintaining rule flexibility and traceability.
|
|
2107
|
-
*
|
|
2108
|
-
* - **Structured inspection conclusion output**: Output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logical AND of all steps. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
2109
|
-
*
|
|
2110
|
-
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) calling modes are supported, with identical output structures.
|
|
2111
|
-
* ## **Invocation method**
|
|
2112
|
-
* - **Synchronous call**: A single request returns the detection result without polling. The response follows a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
2113
|
-
*
|
|
2114
|
-
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
2115
|
-
*
|
|
2116
|
-
* - **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).
|
|
3716
|
+
* ## Features
|
|
3717
|
+
* - 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.
|
|
3718
|
+
* - 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.
|
|
3719
|
+
* - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
|
|
3720
|
+
* - 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.
|
|
3721
|
+
* ## Scenarios
|
|
3722
|
+
* - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
|
|
3723
|
+
* - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
|
|
3724
|
+
* - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
|
|
2117
3725
|
*
|
|
2118
|
-
* @param request -
|
|
2119
|
-
* @returns
|
|
3726
|
+
* @param request - MilkPowderCartonCodeRephotographyDetectionRequest
|
|
3727
|
+
* @returns MilkPowderCartonCodeRephotographyDetectionResponse
|
|
2120
3728
|
*/
|
|
2121
|
-
async
|
|
3729
|
+
async milkPowderCartonCodeRephotographyDetection(request: $_model.MilkPowderCartonCodeRephotographyDetectionRequest): Promise<$_model.MilkPowderCartonCodeRephotographyDetectionResponse> {
|
|
2122
3730
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2123
|
-
return await this.
|
|
3731
|
+
return await this.milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime);
|
|
2124
3732
|
}
|
|
2125
3733
|
|
|
2126
3734
|
/**
|
|
2127
|
-
*
|
|
3735
|
+
* 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.
|
|
2128
3736
|
*
|
|
2129
3737
|
* @remarks
|
|
2130
|
-
* ##
|
|
2131
|
-
*
|
|
2132
|
-
* ##
|
|
2133
|
-
*
|
|
2134
|
-
*
|
|
2135
|
-
* -
|
|
2136
|
-
*
|
|
2137
|
-
*
|
|
2138
|
-
* ##
|
|
2139
|
-
*
|
|
2140
|
-
*
|
|
2141
|
-
*
|
|
2142
|
-
*
|
|
2143
|
-
* - **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.
|
|
2144
|
-
*
|
|
2145
|
-
* - **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.
|
|
3738
|
+
* ## Product Introduction
|
|
3739
|
+
* 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.
|
|
3740
|
+
* ## Scenarios
|
|
3741
|
+
* 1. **Parcel bounding box review**: Automatically determines whether the operator\\"s manual bounding box constitutes the "minimum effective border rectangle" for the parcel, and identifies typical issues such as oversized or undersized bounding boxes.
|
|
3742
|
+
* 2. **Foreign object interference detection**: Automatically detects whether non-target objects such as fingers, keyboards, or supporting tools are present in the scanning area.
|
|
3743
|
+
* 3. **Multi-capture environment adaptation**: A single API can handle two common capture patterns — white background board (blue box) and green background board (blue box \\+ red box) — without requiring the caller to distinguish between scenarios.
|
|
3744
|
+
* 4. **Inbound quality inspection pipeline**: Used for automated compliance review in the piece-weight-dimension stage of the logistics warehouse new product inbound SOP, as a replacement for or supplement to outsourced manual review.
|
|
3745
|
+
* The product is also applicable to general image "box-subject" relationship review scenarios, such as product photo material review and document scan quality verification.
|
|
3746
|
+
* ## Features
|
|
3747
|
+
* 1. **Multi-scenario intelligent routing**: The product has built-in scenario classification capabilities. It automatically identifies the background type (white/green) and bounding box type (none/single box/double box) in the image, and routes the request to the corresponding review sub-process. The caller only needs to pass in the image URL without manually specifying the scenario.
|
|
3748
|
+
* 2. **MLLM + dedicated CV model collaboration**: A multimodal large language model performs semantic-level scenario understanding and foreign object recognition, while a dedicated parcel segmentation and IoU evaluation model performs pixel-level bounding box fit quantification. This ensures accuracy while controlling inference latency and cost.
|
|
3749
|
+
* 3. **Structured review conclusions**: The output is unified as a `result` (Boolean) \\+ `info` (Chinese-language reason) structure. Supported reason types include "审核通过" (review passed), "审核不通过:框选过大" (review failed: bounding box too large), "审核不通过:框选过小" (review failed: bounding box too small), and "审核不通过:存在异物" (review failed: foreign object detected), enabling direct integration with downstream business systems.
|
|
3750
|
+
* 4. **Supported input formats**: Currently supports publicly accessible image URLs.
|
|
2146
3751
|
*
|
|
2147
|
-
* @param request -
|
|
3752
|
+
* @param request - PackageWeightSizeCheckRequest
|
|
2148
3753
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2149
|
-
* @returns
|
|
3754
|
+
* @returns PackageWeightSizeCheckResponse
|
|
2150
3755
|
*/
|
|
2151
|
-
async
|
|
3756
|
+
async packageWeightSizeCheckWithOptions(request: $_model.PackageWeightSizeCheckRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PackageWeightSizeCheckResponse> {
|
|
2152
3757
|
request.validate();
|
|
2153
3758
|
let query = { };
|
|
2154
|
-
if (!$dara.isNull(request.
|
|
2155
|
-
query["
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
if (!$dara.isNull(request.imageUrl)) {
|
|
2159
|
-
query["ImageUrl"] = request.imageUrl;
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
if (!$dara.isNull(request.ragId)) {
|
|
2163
|
-
query["RagId"] = request.ragId;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
if (!$dara.isNull(request.rule)) {
|
|
2167
|
-
query["Rule"] = request.rule;
|
|
3759
|
+
if (!$dara.isNull(request.annotatedImageUrl)) {
|
|
3760
|
+
query["AnnotatedImageUrl"] = request.annotatedImageUrl;
|
|
2168
3761
|
}
|
|
2169
3762
|
|
|
2170
|
-
if (!$dara.isNull(request.
|
|
2171
|
-
query["
|
|
3763
|
+
if (!$dara.isNull(request.rawImageUrl)) {
|
|
3764
|
+
query["RawImageUrl"] = request.rawImageUrl;
|
|
2172
3765
|
}
|
|
2173
3766
|
|
|
2174
3767
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2175
3768
|
query: OpenApiUtil.query(query),
|
|
2176
3769
|
});
|
|
2177
3770
|
let params = new $OpenApiUtil.Params({
|
|
2178
|
-
action: "
|
|
3771
|
+
action: "PackageWeightSizeCheck",
|
|
2179
3772
|
version: "2026-04-28",
|
|
2180
3773
|
protocol: "HTTPS",
|
|
2181
3774
|
pathname: "/",
|
|
@@ -2185,36 +3778,7 @@ export default class Client extends OpenApi {
|
|
|
2185
3778
|
reqBodyType: "formData",
|
|
2186
3779
|
bodyType: "json",
|
|
2187
3780
|
});
|
|
2188
|
-
return $dara.cast<$_model.
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
/**
|
|
2192
|
-
* Detects and identifies products displayed on store shelves or floor stacks by combining a multimodal large language model (MLLM) with visual vector recall, targeting shelf and floor-stack inspection scenarios in offline retail and channel stores. The service first uses an 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 exact match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is applicable to large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
2193
|
-
*
|
|
2194
|
-
* @remarks
|
|
2195
|
-
* ## **Product Introduction**
|
|
2196
|
-
* Display detection is an intelligent store product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It targets shelf and floor-stack display inspection scenarios in offline retail and channel stores. For store photos of shelves and floor stacks, the service first uses an MLLM to detect the bounding box and preliminary name of each product, then performs similarity recall against a customer-specific SKU vector library to exact match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is applicable to large-scale, high-concurrent visual recognition pipelines such as remote display auditing by headquarters, SKU distribution verification, and display compliance inspection for offline stores.
|
|
2197
|
-
* ## **Scenarios**
|
|
2198
|
-
* - **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.
|
|
2199
|
-
*
|
|
2200
|
-
* - **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, supporting batch automated verification during sales promotions or new product launches.
|
|
2201
|
-
*
|
|
2202
|
-
* - **Customer-specific SKU library**: Customers can upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, recall is performed only within the corresponding customer library, ensuring name accuracy and data isolation between customers.
|
|
2203
|
-
* ## **Features**
|
|
2204
|
-
* - **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.
|
|
2205
|
-
*
|
|
2206
|
-
* - **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.
|
|
2207
|
-
*
|
|
2208
|
-
* - **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.
|
|
2209
|
-
*
|
|
2210
|
-
* - **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.
|
|
2211
|
-
*
|
|
2212
|
-
* @param request - MerchandisePlacementDetectionRequest
|
|
2213
|
-
* @returns MerchandisePlacementDetectionResponse
|
|
2214
|
-
*/
|
|
2215
|
-
async merchandisePlacementDetection(request: $_model.MerchandisePlacementDetectionRequest): Promise<$_model.MerchandisePlacementDetectionResponse> {
|
|
2216
|
-
let runtime = new $dara.RuntimeOptions({ });
|
|
2217
|
-
return await this.merchandisePlacementDetectionWithOptions(request, runtime);
|
|
3781
|
+
return $dara.cast<$_model.PackageWeightSizeCheckResponse>(await this.callApi(params, req, runtime), new $_model.PackageWeightSizeCheckResponse({}));
|
|
2218
3782
|
}
|
|
2219
3783
|
|
|
2220
3784
|
/**
|
|
@@ -2236,25 +3800,46 @@ export default class Client extends OpenApi {
|
|
|
2236
3800
|
* 4. **Supported input formats**: Currently supports publicly accessible image URLs.
|
|
2237
3801
|
*
|
|
2238
3802
|
* @param request - PackageWeightSizeCheckRequest
|
|
2239
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2240
3803
|
* @returns PackageWeightSizeCheckResponse
|
|
2241
3804
|
*/
|
|
2242
|
-
async
|
|
2243
|
-
|
|
3805
|
+
async packageWeightSizeCheck(request: $_model.PackageWeightSizeCheckRequest): Promise<$_model.PackageWeightSizeCheckResponse> {
|
|
3806
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3807
|
+
return await this.packageWeightSizeCheckWithOptions(request, runtime);
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
/**
|
|
3811
|
+
* 宠物健康分析
|
|
3812
|
+
*
|
|
3813
|
+
* @param tmpReq - PetHealthAnalysisRequest
|
|
3814
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3815
|
+
* @returns PetHealthAnalysisResponse
|
|
3816
|
+
*/
|
|
3817
|
+
async petHealthAnalysisWithOptions(tmpReq: $_model.PetHealthAnalysisRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PetHealthAnalysisResponse> {
|
|
3818
|
+
tmpReq.validate();
|
|
3819
|
+
let request = new $_model.PetHealthAnalysisShrinkRequest({ });
|
|
3820
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3821
|
+
if (!$dara.isNull(tmpReq.imageUrl)) {
|
|
3822
|
+
request.imageUrlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageUrl, "ImageUrl", "json");
|
|
3823
|
+
}
|
|
3824
|
+
|
|
2244
3825
|
let query = { };
|
|
2245
|
-
if (!$dara.isNull(request.
|
|
2246
|
-
query["
|
|
3826
|
+
if (!$dara.isNull(request.imageUrlShrink)) {
|
|
3827
|
+
query["ImageUrl"] = request.imageUrlShrink;
|
|
2247
3828
|
}
|
|
2248
3829
|
|
|
2249
|
-
if (!$dara.isNull(request.
|
|
2250
|
-
query["
|
|
3830
|
+
if (!$dara.isNull(request.systemPrompt)) {
|
|
3831
|
+
query["SystemPrompt"] = request.systemPrompt;
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
if (!$dara.isNull(request.userPrompt)) {
|
|
3835
|
+
query["UserPrompt"] = request.userPrompt;
|
|
2251
3836
|
}
|
|
2252
3837
|
|
|
2253
3838
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2254
3839
|
query: OpenApiUtil.query(query),
|
|
2255
3840
|
});
|
|
2256
3841
|
let params = new $OpenApiUtil.Params({
|
|
2257
|
-
action: "
|
|
3842
|
+
action: "PetHealthAnalysis",
|
|
2258
3843
|
version: "2026-04-28",
|
|
2259
3844
|
protocol: "HTTPS",
|
|
2260
3845
|
pathname: "/",
|
|
@@ -2264,33 +3849,18 @@ export default class Client extends OpenApi {
|
|
|
2264
3849
|
reqBodyType: "formData",
|
|
2265
3850
|
bodyType: "json",
|
|
2266
3851
|
});
|
|
2267
|
-
return $dara.cast<$_model.
|
|
3852
|
+
return $dara.cast<$_model.PetHealthAnalysisResponse>(await this.callApi(params, req, runtime), new $_model.PetHealthAnalysisResponse({}));
|
|
2268
3853
|
}
|
|
2269
3854
|
|
|
2270
3855
|
/**
|
|
2271
|
-
*
|
|
2272
|
-
*
|
|
2273
|
-
* @remarks
|
|
2274
|
-
* ## Product Introduction
|
|
2275
|
-
* 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.
|
|
2276
|
-
* ## Scenarios
|
|
2277
|
-
* 1. **Parcel bounding box review**: Automatically determines whether the operator\\"s manual bounding box constitutes the "minimum effective border rectangle" for the parcel, and identifies typical issues such as oversized or undersized bounding boxes.
|
|
2278
|
-
* 2. **Foreign object interference detection**: Automatically detects whether non-target objects such as fingers, keyboards, or supporting tools are present in the scanning area.
|
|
2279
|
-
* 3. **Multi-capture environment adaptation**: A single API can handle two common capture patterns — white background board (blue box) and green background board (blue box \\+ red box) — without requiring the caller to distinguish between scenarios.
|
|
2280
|
-
* 4. **Inbound quality inspection pipeline**: Used for automated compliance review in the piece-weight-dimension stage of the logistics warehouse new product inbound SOP, as a replacement for or supplement to outsourced manual review.
|
|
2281
|
-
* The product is also applicable to general image "box-subject" relationship review scenarios, such as product photo material review and document scan quality verification.
|
|
2282
|
-
* ## Features
|
|
2283
|
-
* 1. **Multi-scenario intelligent routing**: The product has built-in scenario classification capabilities. It automatically identifies the background type (white/green) and bounding box type (none/single box/double box) in the image, and routes the request to the corresponding review sub-process. The caller only needs to pass in the image URL without manually specifying the scenario.
|
|
2284
|
-
* 2. **MLLM + dedicated CV model collaboration**: A multimodal large language model performs semantic-level scenario understanding and foreign object recognition, while a dedicated parcel segmentation and IoU evaluation model performs pixel-level bounding box fit quantification. This ensures accuracy while controlling inference latency and cost.
|
|
2285
|
-
* 3. **Structured review conclusions**: The output is unified as a `result` (Boolean) \\+ `info` (Chinese-language reason) structure. Supported reason types include "审核通过" (review passed), "审核不通过:框选过大" (review failed: bounding box too large), "审核不通过:框选过小" (review failed: bounding box too small), and "审核不通过:存在异物" (review failed: foreign object detected), enabling direct integration with downstream business systems.
|
|
2286
|
-
* 4. **Supported input formats**: Currently supports publicly accessible image URLs.
|
|
3856
|
+
* 宠物健康分析
|
|
2287
3857
|
*
|
|
2288
|
-
* @param request -
|
|
2289
|
-
* @returns
|
|
3858
|
+
* @param request - PetHealthAnalysisRequest
|
|
3859
|
+
* @returns PetHealthAnalysisResponse
|
|
2290
3860
|
*/
|
|
2291
|
-
async
|
|
3861
|
+
async petHealthAnalysis(request: $_model.PetHealthAnalysisRequest): Promise<$_model.PetHealthAnalysisResponse> {
|
|
2292
3862
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2293
|
-
return await this.
|
|
3863
|
+
return await this.petHealthAnalysisWithOptions(request, runtime);
|
|
2294
3864
|
}
|
|
2295
3865
|
|
|
2296
3866
|
/**
|
|
@@ -2599,29 +4169,322 @@ export default class Client extends OpenApi {
|
|
|
2599
4169
|
* |  | 0.4 | true |
|
|
2600
4170
|
* |  | 0.4 | false |
|
|
2601
4171
|
*
|
|
2602
|
-
* @param request - SizeChartDetectRequest
|
|
2603
|
-
* @returns SizeChartDetectResponse
|
|
4172
|
+
* @param request - SizeChartDetectRequest
|
|
4173
|
+
* @returns SizeChartDetectResponse
|
|
4174
|
+
*/
|
|
4175
|
+
async sizeChartDetect(request: $_model.SizeChartDetectRequest): Promise<$_model.SizeChartDetectResponse> {
|
|
4176
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4177
|
+
return await this.sizeChartDetectWithOptions(request, runtime);
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
/**
|
|
4181
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4182
|
+
*
|
|
4183
|
+
* @remarks
|
|
4184
|
+
* ## Product Introduction
|
|
4185
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4186
|
+
* ## Common scenarios
|
|
4187
|
+
* * Size chart: Extracts size charts from apparel category images into text.
|
|
4188
|
+
*
|
|
4189
|
+
* * Package weight/dimensions: Extracts package weight and dimension information from images.
|
|
4190
|
+
* ## Functions and features
|
|
4191
|
+
* 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.
|
|
4192
|
+
* 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.
|
|
4193
|
+
* ## Comparison
|
|
4194
|
+
* | **Input image** | **Output result** |
|
|
4195
|
+
* | --- | --- |
|
|
4196
|
+
* |  | {
|
|
4197
|
+
* "SizeChart": [
|
|
4198
|
+
* {
|
|
4199
|
+
* "尺码": {
|
|
4200
|
+
* "value": "S"
|
|
4201
|
+
* },
|
|
4202
|
+
* "腰围": {
|
|
4203
|
+
* "unit": "CM",
|
|
4204
|
+
* "value": 58
|
|
4205
|
+
* },
|
|
4206
|
+
* "裙长": {
|
|
4207
|
+
* "unit": "CM",
|
|
4208
|
+
* "value": 81
|
|
4209
|
+
* },
|
|
4210
|
+
* "体重建议": {
|
|
4211
|
+
* "unit": "kg",
|
|
4212
|
+
* "lower_value": 40,
|
|
4213
|
+
* "upper_value": 47.5
|
|
4214
|
+
* }
|
|
4215
|
+
* },
|
|
4216
|
+
* {
|
|
4217
|
+
* "尺码": {
|
|
4218
|
+
* "value": "M"
|
|
4219
|
+
* },
|
|
4220
|
+
* "腰围": {
|
|
4221
|
+
* "unit": "CM",
|
|
4222
|
+
* "value": 59
|
|
4223
|
+
* },
|
|
4224
|
+
* "裙长": {
|
|
4225
|
+
* "unit": "CM",
|
|
4226
|
+
* "value": 82
|
|
4227
|
+
* },
|
|
4228
|
+
* "体重建议": {
|
|
4229
|
+
* "unit": "kg",
|
|
4230
|
+
* "lower_value": 45,
|
|
4231
|
+
* "upper_value": 52.5
|
|
4232
|
+
* }
|
|
4233
|
+
* },
|
|
4234
|
+
* {
|
|
4235
|
+
* "尺码": {
|
|
4236
|
+
* "value": "L"
|
|
4237
|
+
* },
|
|
4238
|
+
* "腰围": {
|
|
4239
|
+
* "unit": "CM",
|
|
4240
|
+
* "value": 60
|
|
4241
|
+
* },
|
|
4242
|
+
* "裙长": {
|
|
4243
|
+
* "unit": "CM",
|
|
4244
|
+
* "value": 83
|
|
4245
|
+
* },
|
|
4246
|
+
* "体重建议": {
|
|
4247
|
+
* "unit": "kg",
|
|
4248
|
+
* "lower_value": 50,
|
|
4249
|
+
* "upper_value": 57.5
|
|
4250
|
+
* }
|
|
4251
|
+
* },
|
|
4252
|
+
* {
|
|
4253
|
+
* "尺码": {
|
|
4254
|
+
* "value": "XL"
|
|
4255
|
+
* },
|
|
4256
|
+
* "腰围": {
|
|
4257
|
+
* "unit": "CM",
|
|
4258
|
+
* "value": 61
|
|
4259
|
+
* },
|
|
4260
|
+
* "裙长": {
|
|
4261
|
+
* "unit": "CM",
|
|
4262
|
+
* "value": 84
|
|
4263
|
+
* },
|
|
4264
|
+
* "体重建议": {
|
|
4265
|
+
* "unit": "kg",
|
|
4266
|
+
* "lower_value": 55,
|
|
4267
|
+
* "upper_value": 62.5
|
|
4268
|
+
* }
|
|
4269
|
+
* },
|
|
4270
|
+
* {
|
|
4271
|
+
* "尺码": {
|
|
4272
|
+
* "value": "2XL"
|
|
4273
|
+
* },
|
|
4274
|
+
* "腰围": {
|
|
4275
|
+
* "unit": "CM",
|
|
4276
|
+
* "value": 62
|
|
4277
|
+
* },
|
|
4278
|
+
* "裙长": {
|
|
4279
|
+
* "unit": "CM",
|
|
4280
|
+
* "value": 85
|
|
4281
|
+
* },
|
|
4282
|
+
* "体重建议": {
|
|
4283
|
+
* "unit": "kg",
|
|
4284
|
+
* "lower_value": 60,
|
|
4285
|
+
* "upper_value": 67.5
|
|
4286
|
+
* }
|
|
4287
|
+
* }
|
|
4288
|
+
* \\],
|
|
4289
|
+
* "SizeChartAttributes": [
|
|
4290
|
+
* "尺码",
|
|
4291
|
+
* "裙长",
|
|
4292
|
+
* "腰围",
|
|
4293
|
+
* "体重建议"
|
|
4294
|
+
* \\],
|
|
4295
|
+
* "IntersectionAttributes": [
|
|
4296
|
+
* "尺码",
|
|
4297
|
+
* "裙长",
|
|
4298
|
+
* "腰围(拉伸)",
|
|
4299
|
+
* "体重建议"
|
|
4300
|
+
* \\]
|
|
4301
|
+
* } |
|
|
4302
|
+
*
|
|
4303
|
+
* @param tmpReq - SizeChartExtractRequest
|
|
4304
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4305
|
+
* @returns SizeChartExtractResponse
|
|
4306
|
+
*/
|
|
4307
|
+
async sizeChartExtractWithOptions(tmpReq: $_model.SizeChartExtractRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SizeChartExtractResponse> {
|
|
4308
|
+
tmpReq.validate();
|
|
4309
|
+
let request = new $_model.SizeChartExtractShrinkRequest({ });
|
|
4310
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4311
|
+
if (!$dara.isNull(tmpReq.columnNameList)) {
|
|
4312
|
+
request.columnNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
let query = { };
|
|
4316
|
+
if (!$dara.isNull(request.columnNameListShrink)) {
|
|
4317
|
+
query["ColumnNameList"] = request.columnNameListShrink;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
4321
|
+
query["ImageUrl"] = request.imageUrl;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
if (!$dara.isNull(request.languageModel)) {
|
|
4325
|
+
query["LanguageModel"] = request.languageModel;
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4329
|
+
query: OpenApiUtil.query(query),
|
|
4330
|
+
});
|
|
4331
|
+
let params = new $OpenApiUtil.Params({
|
|
4332
|
+
action: "SizeChartExtract",
|
|
4333
|
+
version: "2026-04-28",
|
|
4334
|
+
protocol: "HTTPS",
|
|
4335
|
+
pathname: "/",
|
|
4336
|
+
method: "POST",
|
|
4337
|
+
authType: "AK",
|
|
4338
|
+
style: "RPC",
|
|
4339
|
+
reqBodyType: "formData",
|
|
4340
|
+
bodyType: "json",
|
|
4341
|
+
});
|
|
4342
|
+
return $dara.cast<$_model.SizeChartExtractResponse>(await this.callApi(params, req, runtime), new $_model.SizeChartExtractResponse({}));
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4347
|
+
*
|
|
4348
|
+
* @remarks
|
|
4349
|
+
* ## Product Introduction
|
|
4350
|
+
* Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
|
|
4351
|
+
* ## Common scenarios
|
|
4352
|
+
* * Size chart: Extracts size charts from apparel category images into text.
|
|
4353
|
+
*
|
|
4354
|
+
* * Package weight/dimensions: Extracts package weight and dimension information from images.
|
|
4355
|
+
* ## Functions and features
|
|
4356
|
+
* 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.
|
|
4357
|
+
* 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.
|
|
4358
|
+
* ## Comparison
|
|
4359
|
+
* | **Input image** | **Output result** |
|
|
4360
|
+
* | --- | --- |
|
|
4361
|
+
* |  | {
|
|
4362
|
+
* "SizeChart": [
|
|
4363
|
+
* {
|
|
4364
|
+
* "尺码": {
|
|
4365
|
+
* "value": "S"
|
|
4366
|
+
* },
|
|
4367
|
+
* "腰围": {
|
|
4368
|
+
* "unit": "CM",
|
|
4369
|
+
* "value": 58
|
|
4370
|
+
* },
|
|
4371
|
+
* "裙长": {
|
|
4372
|
+
* "unit": "CM",
|
|
4373
|
+
* "value": 81
|
|
4374
|
+
* },
|
|
4375
|
+
* "体重建议": {
|
|
4376
|
+
* "unit": "kg",
|
|
4377
|
+
* "lower_value": 40,
|
|
4378
|
+
* "upper_value": 47.5
|
|
4379
|
+
* }
|
|
4380
|
+
* },
|
|
4381
|
+
* {
|
|
4382
|
+
* "尺码": {
|
|
4383
|
+
* "value": "M"
|
|
4384
|
+
* },
|
|
4385
|
+
* "腰围": {
|
|
4386
|
+
* "unit": "CM",
|
|
4387
|
+
* "value": 59
|
|
4388
|
+
* },
|
|
4389
|
+
* "裙长": {
|
|
4390
|
+
* "unit": "CM",
|
|
4391
|
+
* "value": 82
|
|
4392
|
+
* },
|
|
4393
|
+
* "体重建议": {
|
|
4394
|
+
* "unit": "kg",
|
|
4395
|
+
* "lower_value": 45,
|
|
4396
|
+
* "upper_value": 52.5
|
|
4397
|
+
* }
|
|
4398
|
+
* },
|
|
4399
|
+
* {
|
|
4400
|
+
* "尺码": {
|
|
4401
|
+
* "value": "L"
|
|
4402
|
+
* },
|
|
4403
|
+
* "腰围": {
|
|
4404
|
+
* "unit": "CM",
|
|
4405
|
+
* "value": 60
|
|
4406
|
+
* },
|
|
4407
|
+
* "裙长": {
|
|
4408
|
+
* "unit": "CM",
|
|
4409
|
+
* "value": 83
|
|
4410
|
+
* },
|
|
4411
|
+
* "体重建议": {
|
|
4412
|
+
* "unit": "kg",
|
|
4413
|
+
* "lower_value": 50,
|
|
4414
|
+
* "upper_value": 57.5
|
|
4415
|
+
* }
|
|
4416
|
+
* },
|
|
4417
|
+
* {
|
|
4418
|
+
* "尺码": {
|
|
4419
|
+
* "value": "XL"
|
|
4420
|
+
* },
|
|
4421
|
+
* "腰围": {
|
|
4422
|
+
* "unit": "CM",
|
|
4423
|
+
* "value": 61
|
|
4424
|
+
* },
|
|
4425
|
+
* "裙长": {
|
|
4426
|
+
* "unit": "CM",
|
|
4427
|
+
* "value": 84
|
|
4428
|
+
* },
|
|
4429
|
+
* "体重建议": {
|
|
4430
|
+
* "unit": "kg",
|
|
4431
|
+
* "lower_value": 55,
|
|
4432
|
+
* "upper_value": 62.5
|
|
4433
|
+
* }
|
|
4434
|
+
* },
|
|
4435
|
+
* {
|
|
4436
|
+
* "尺码": {
|
|
4437
|
+
* "value": "2XL"
|
|
4438
|
+
* },
|
|
4439
|
+
* "腰围": {
|
|
4440
|
+
* "unit": "CM",
|
|
4441
|
+
* "value": 62
|
|
4442
|
+
* },
|
|
4443
|
+
* "裙长": {
|
|
4444
|
+
* "unit": "CM",
|
|
4445
|
+
* "value": 85
|
|
4446
|
+
* },
|
|
4447
|
+
* "体重建议": {
|
|
4448
|
+
* "unit": "kg",
|
|
4449
|
+
* "lower_value": 60,
|
|
4450
|
+
* "upper_value": 67.5
|
|
4451
|
+
* }
|
|
4452
|
+
* }
|
|
4453
|
+
* \\],
|
|
4454
|
+
* "SizeChartAttributes": [
|
|
4455
|
+
* "尺码",
|
|
4456
|
+
* "裙长",
|
|
4457
|
+
* "腰围",
|
|
4458
|
+
* "体重建议"
|
|
4459
|
+
* \\],
|
|
4460
|
+
* "IntersectionAttributes": [
|
|
4461
|
+
* "尺码",
|
|
4462
|
+
* "裙长",
|
|
4463
|
+
* "腰围(拉伸)",
|
|
4464
|
+
* "体重建议"
|
|
4465
|
+
* \\]
|
|
4466
|
+
* } |
|
|
4467
|
+
*
|
|
4468
|
+
* @param request - SizeChartExtractRequest
|
|
4469
|
+
* @returns SizeChartExtractResponse
|
|
2604
4470
|
*/
|
|
2605
|
-
async
|
|
4471
|
+
async sizeChartExtract(request: $_model.SizeChartExtractRequest): Promise<$_model.SizeChartExtractResponse> {
|
|
2606
4472
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2607
|
-
return await this.
|
|
4473
|
+
return await this.sizeChartExtractWithOptions(request, runtime);
|
|
2608
4474
|
}
|
|
2609
4475
|
|
|
2610
4476
|
/**
|
|
2611
|
-
*
|
|
4477
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
2612
4478
|
*
|
|
2613
4479
|
* @remarks
|
|
2614
|
-
* ##
|
|
2615
|
-
*
|
|
2616
|
-
*
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2619
|
-
*
|
|
2620
|
-
* ##
|
|
2621
|
-
*
|
|
2622
|
-
* 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.
|
|
2623
|
-
* ## Comparison
|
|
2624
|
-
* | **Input image** | **Output result** |
|
|
4480
|
+
* ## Scenarios
|
|
4481
|
+
* Size charts: Extracts size charts for apparel categories into text.
|
|
4482
|
+
* Package weight and dimensions: Extracts package weight and dimension information from images.
|
|
4483
|
+
* ## Feature description
|
|
4484
|
+
* 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.
|
|
4485
|
+
* 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.
|
|
4486
|
+
* ## Example results
|
|
4487
|
+
* | Input image | Output result |
|
|
2625
4488
|
* | --- | --- |
|
|
2626
4489
|
* |  | {
|
|
2627
4490
|
* "SizeChart": [
|
|
@@ -2717,26 +4580,26 @@ export default class Client extends OpenApi {
|
|
|
2717
4580
|
* }
|
|
2718
4581
|
* \\],
|
|
2719
4582
|
* "SizeChartAttributes": [
|
|
2720
|
-
* "
|
|
2721
|
-
* "
|
|
2722
|
-
* "
|
|
2723
|
-
* "
|
|
4583
|
+
* "Size",
|
|
4584
|
+
* "Skirt length",
|
|
4585
|
+
* "Waist",
|
|
4586
|
+
* "Weight recommendation"
|
|
2724
4587
|
* \\],
|
|
2725
4588
|
* "IntersectionAttributes": [
|
|
2726
|
-
* "
|
|
2727
|
-
* "
|
|
2728
|
-
* "
|
|
2729
|
-
* "
|
|
4589
|
+
* "Size",
|
|
4590
|
+
* "Skirt length",
|
|
4591
|
+
* "Waist (stretched)",
|
|
4592
|
+
* "Weight recommendation"
|
|
2730
4593
|
* \\]
|
|
2731
4594
|
* } |
|
|
2732
4595
|
*
|
|
2733
|
-
* @param tmpReq -
|
|
4596
|
+
* @param tmpReq - SizeChartExtractAsyncRequest
|
|
2734
4597
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2735
|
-
* @returns
|
|
4598
|
+
* @returns SizeChartExtractAsyncResponse
|
|
2736
4599
|
*/
|
|
2737
|
-
async
|
|
4600
|
+
async sizeChartExtractAsyncWithOptions(tmpReq: $_model.SizeChartExtractAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SizeChartExtractAsyncResponse> {
|
|
2738
4601
|
tmpReq.validate();
|
|
2739
|
-
let request = new $_model.
|
|
4602
|
+
let request = new $_model.SizeChartExtractAsyncShrinkRequest({ });
|
|
2740
4603
|
OpenApiUtil.convert(tmpReq, request);
|
|
2741
4604
|
if (!$dara.isNull(tmpReq.columnNameList)) {
|
|
2742
4605
|
request.columnNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
|
|
@@ -2759,7 +4622,7 @@ export default class Client extends OpenApi {
|
|
|
2759
4622
|
query: OpenApiUtil.query(query),
|
|
2760
4623
|
});
|
|
2761
4624
|
let params = new $OpenApiUtil.Params({
|
|
2762
|
-
action: "
|
|
4625
|
+
action: "SizeChartExtractAsync",
|
|
2763
4626
|
version: "2026-04-28",
|
|
2764
4627
|
protocol: "HTTPS",
|
|
2765
4628
|
pathname: "/",
|
|
@@ -2769,24 +4632,21 @@ export default class Client extends OpenApi {
|
|
|
2769
4632
|
reqBodyType: "formData",
|
|
2770
4633
|
bodyType: "json",
|
|
2771
4634
|
});
|
|
2772
|
-
return $dara.cast<$_model.
|
|
4635
|
+
return $dara.cast<$_model.SizeChartExtractAsyncResponse>(await this.callApi(params, req, runtime), new $_model.SizeChartExtractAsyncResponse({}));
|
|
2773
4636
|
}
|
|
2774
4637
|
|
|
2775
4638
|
/**
|
|
2776
|
-
*
|
|
4639
|
+
* Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
|
|
2777
4640
|
*
|
|
2778
4641
|
* @remarks
|
|
2779
|
-
* ##
|
|
2780
|
-
*
|
|
2781
|
-
*
|
|
2782
|
-
*
|
|
2783
|
-
*
|
|
2784
|
-
*
|
|
2785
|
-
* ##
|
|
2786
|
-
*
|
|
2787
|
-
* 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.
|
|
2788
|
-
* ## Comparison
|
|
2789
|
-
* | **Input image** | **Output result** |
|
|
4642
|
+
* ## Scenarios
|
|
4643
|
+
* Size charts: Extracts size charts for apparel categories into text.
|
|
4644
|
+
* Package weight and dimensions: Extracts package weight and dimension information from images.
|
|
4645
|
+
* ## Feature description
|
|
4646
|
+
* 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.
|
|
4647
|
+
* 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.
|
|
4648
|
+
* ## Example results
|
|
4649
|
+
* | Input image | Output result |
|
|
2790
4650
|
* | --- | --- |
|
|
2791
4651
|
* |  | {
|
|
2792
4652
|
* "SizeChart": [
|
|
@@ -2882,25 +4742,89 @@ export default class Client extends OpenApi {
|
|
|
2882
4742
|
* }
|
|
2883
4743
|
* \\],
|
|
2884
4744
|
* "SizeChartAttributes": [
|
|
2885
|
-
* "
|
|
2886
|
-
* "
|
|
2887
|
-
* "
|
|
2888
|
-
* "
|
|
4745
|
+
* "Size",
|
|
4746
|
+
* "Skirt length",
|
|
4747
|
+
* "Waist",
|
|
4748
|
+
* "Weight recommendation"
|
|
2889
4749
|
* \\],
|
|
2890
4750
|
* "IntersectionAttributes": [
|
|
2891
|
-
* "
|
|
2892
|
-
* "
|
|
2893
|
-
* "
|
|
2894
|
-
* "
|
|
4751
|
+
* "Size",
|
|
4752
|
+
* "Skirt length",
|
|
4753
|
+
* "Waist (stretched)",
|
|
4754
|
+
* "Weight recommendation"
|
|
2895
4755
|
* \\]
|
|
2896
4756
|
* } |
|
|
2897
4757
|
*
|
|
2898
|
-
* @param request -
|
|
2899
|
-
* @returns
|
|
4758
|
+
* @param request - SizeChartExtractAsyncRequest
|
|
4759
|
+
* @returns SizeChartExtractAsyncResponse
|
|
2900
4760
|
*/
|
|
2901
|
-
async
|
|
4761
|
+
async sizeChartExtractAsync(request: $_model.SizeChartExtractAsyncRequest): Promise<$_model.SizeChartExtractAsyncResponse> {
|
|
2902
4762
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2903
|
-
return await this.
|
|
4763
|
+
return await this.sizeChartExtractAsyncWithOptions(request, runtime);
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4766
|
+
/**
|
|
4767
|
+
* 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.
|
|
4768
|
+
*
|
|
4769
|
+
* @remarks
|
|
4770
|
+
* ## Common scenarios
|
|
4771
|
+
* - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
|
|
4772
|
+
* - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
|
|
4773
|
+
* - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
|
|
4774
|
+
* ## Features
|
|
4775
|
+
* - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
|
|
4776
|
+
* - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
|
|
4777
|
+
* - 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.
|
|
4778
|
+
* - 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.
|
|
4779
|
+
*
|
|
4780
|
+
* @param request - StorefrontSceneRecognitionRequest
|
|
4781
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4782
|
+
* @returns StorefrontSceneRecognitionResponse
|
|
4783
|
+
*/
|
|
4784
|
+
async storefrontSceneRecognitionWithOptions(request: $_model.StorefrontSceneRecognitionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StorefrontSceneRecognitionResponse> {
|
|
4785
|
+
request.validate();
|
|
4786
|
+
let query = { };
|
|
4787
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
4788
|
+
query["ImageUrl"] = request.imageUrl;
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4792
|
+
query: OpenApiUtil.query(query),
|
|
4793
|
+
});
|
|
4794
|
+
let params = new $OpenApiUtil.Params({
|
|
4795
|
+
action: "StorefrontSceneRecognition",
|
|
4796
|
+
version: "2026-04-28",
|
|
4797
|
+
protocol: "HTTPS",
|
|
4798
|
+
pathname: "/",
|
|
4799
|
+
method: "POST",
|
|
4800
|
+
authType: "AK",
|
|
4801
|
+
style: "RPC",
|
|
4802
|
+
reqBodyType: "formData",
|
|
4803
|
+
bodyType: "json",
|
|
4804
|
+
});
|
|
4805
|
+
return $dara.cast<$_model.StorefrontSceneRecognitionResponse>(await this.callApi(params, req, runtime), new $_model.StorefrontSceneRecognitionResponse({}));
|
|
4806
|
+
}
|
|
4807
|
+
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
*
|
|
4811
|
+
* @remarks
|
|
4812
|
+
* ## Common scenarios
|
|
4813
|
+
* - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
|
|
4814
|
+
* - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
|
|
4815
|
+
* - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
|
|
4816
|
+
* ## Features
|
|
4817
|
+
* - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
|
|
4818
|
+
* - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
|
|
4819
|
+
* - 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.
|
|
4820
|
+
* - 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.
|
|
4821
|
+
*
|
|
4822
|
+
* @param request - StorefrontSceneRecognitionRequest
|
|
4823
|
+
* @returns StorefrontSceneRecognitionResponse
|
|
4824
|
+
*/
|
|
4825
|
+
async storefrontSceneRecognition(request: $_model.StorefrontSceneRecognitionRequest): Promise<$_model.StorefrontSceneRecognitionResponse> {
|
|
4826
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4827
|
+
return await this.storefrontSceneRecognitionWithOptions(request, runtime);
|
|
2904
4828
|
}
|
|
2905
4829
|
|
|
2906
4830
|
/**
|
|
@@ -3056,32 +4980,34 @@ export default class Client extends OpenApi {
|
|
|
3056
4980
|
}
|
|
3057
4981
|
|
|
3058
4982
|
/**
|
|
3059
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
4983
|
+
* 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.
|
|
3060
4984
|
*
|
|
3061
4985
|
* @remarks
|
|
3062
4986
|
* ## Product Introduction
|
|
3063
|
-
*
|
|
4987
|
+
* 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.
|
|
3064
4988
|
* ## Common scenarios
|
|
3065
|
-
* -
|
|
3066
|
-
* -
|
|
3067
|
-
* -
|
|
3068
|
-
* -
|
|
3069
|
-
*
|
|
4989
|
+
* - 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.
|
|
4990
|
+
* - 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.
|
|
4991
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
|
|
4992
|
+
* - 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.
|
|
4993
|
+
* Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
3070
4994
|
* ## Functions and features
|
|
3071
4995
|
* - **Supported language directions**
|
|
3072
|
-
*
|
|
4996
|
+
* 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.
|
|
4997
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
4998
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
3073
4999
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
3074
|
-
*
|
|
3075
|
-
* - **Supported text format types**
|
|
3076
|
-
* Currently
|
|
3077
|
-
* - **Translation intervention**
|
|
3078
|
-
*
|
|
5000
|
+
* 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.
|
|
5001
|
+
* - **Supported text format types for translation**
|
|
5002
|
+
* Currently, text and html text types are supported.
|
|
5003
|
+
* - **Translation intervention support**
|
|
5004
|
+
* 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.
|
|
3079
5005
|
* ## Translation quality comparison
|
|
3080
|
-
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation
|
|
5006
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
3081
5007
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
3082
5008
|
* | 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 |
|
|
3083
5009
|
* | 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 |
|
|
3084
|
-
* | 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
|
|
5010
|
+
* | 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.
|
|
3085
5011
|
*
|
|
3086
5012
|
* @param tmpReq - TextTranslateRequest
|
|
3087
5013
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3142,32 +5068,34 @@ export default class Client extends OpenApi {
|
|
|
3142
5068
|
}
|
|
3143
5069
|
|
|
3144
5070
|
/**
|
|
3145
|
-
* Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
5071
|
+
* 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.
|
|
3146
5072
|
*
|
|
3147
5073
|
* @remarks
|
|
3148
5074
|
* ## Product Introduction
|
|
3149
|
-
*
|
|
5075
|
+
* Maas-MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
|
|
3150
5076
|
* ## Common scenarios
|
|
3151
|
-
* -
|
|
3152
|
-
* -
|
|
3153
|
-
* -
|
|
3154
|
-
* -
|
|
3155
|
-
*
|
|
5077
|
+
* - 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.
|
|
5078
|
+
* - 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.
|
|
5079
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
|
|
5080
|
+
* - 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.
|
|
5081
|
+
* Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
3156
5082
|
* ## Functions and features
|
|
3157
5083
|
* - **Supported language directions**
|
|
3158
|
-
*
|
|
5084
|
+
* 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.
|
|
5085
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
|
|
5086
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
|
|
3159
5087
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
3160
|
-
*
|
|
3161
|
-
* - **Supported text format types**
|
|
3162
|
-
* Currently
|
|
3163
|
-
* - **Translation intervention**
|
|
3164
|
-
*
|
|
5088
|
+
* 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.
|
|
5089
|
+
* - **Supported text format types for translation**
|
|
5090
|
+
* Currently, text and html text types are supported.
|
|
5091
|
+
* - **Translation intervention support**
|
|
5092
|
+
* 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.
|
|
3165
5093
|
* ## Translation quality comparison
|
|
3166
|
-
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation
|
|
5094
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
|
|
3167
5095
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
3168
5096
|
* | 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 |
|
|
3169
5097
|
* | 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 |
|
|
3170
|
-
* | 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
|
|
5098
|
+
* | 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.
|
|
3171
5099
|
*
|
|
3172
5100
|
* @param request - TextTranslateRequest
|
|
3173
5101
|
* @returns TextTranslateResponse
|
|
@@ -3178,25 +5106,159 @@ export default class Client extends OpenApi {
|
|
|
3178
5106
|
}
|
|
3179
5107
|
|
|
3180
5108
|
/**
|
|
3181
|
-
*
|
|
5109
|
+
* 文本翻译异步
|
|
5110
|
+
*
|
|
5111
|
+
* @remarks
|
|
5112
|
+
* ## 适用场景
|
|
5113
|
+
* * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
|
|
5114
|
+
*
|
|
5115
|
+
* * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
|
|
5116
|
+
*
|
|
5117
|
+
* * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
|
|
5118
|
+
*
|
|
5119
|
+
* * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
|
|
5120
|
+
*
|
|
5121
|
+
* 同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
|
|
5122
|
+
* ## 功能介绍
|
|
5123
|
+
* * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
|
|
5124
|
+
*
|
|
5125
|
+
* * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
|
|
5126
|
+
*
|
|
5127
|
+
* * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
|
|
5128
|
+
*
|
|
5129
|
+
* * **翻译效果对比**
|
|
5130
|
+
* | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
|
|
5131
|
+
* | --- | --- | --- | --- | --- |
|
|
5132
|
+
* | 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 | 商品主体更清晰 |
|
|
5133
|
+
* | 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 | 句式更完整,表述更清晰,断句更合理 |
|
|
5134
|
+
* | 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 | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
|
|
5135
|
+
* ## 接入准备与调用流程
|
|
5136
|
+
* 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
|
|
5137
|
+
* 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
|
|
5138
|
+
* 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
|
|
5139
|
+
*
|
|
5140
|
+
* @param tmpReq - TextTranslateAsyncRequest
|
|
5141
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5142
|
+
* @returns TextTranslateAsyncResponse
|
|
5143
|
+
*/
|
|
5144
|
+
async textTranslateAsyncWithOptions(tmpReq: $_model.TextTranslateAsyncRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TextTranslateAsyncResponse> {
|
|
5145
|
+
tmpReq.validate();
|
|
5146
|
+
let request = new $_model.TextTranslateAsyncShrinkRequest({ });
|
|
5147
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5148
|
+
if (!$dara.isNull(tmpReq.sourceTextList)) {
|
|
5149
|
+
request.sourceTextListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
|
|
5150
|
+
}
|
|
5151
|
+
|
|
5152
|
+
let query = { };
|
|
5153
|
+
if (!$dara.isNull(request.bizId)) {
|
|
5154
|
+
query["BizId"] = request.bizId;
|
|
5155
|
+
}
|
|
5156
|
+
|
|
5157
|
+
if (!$dara.isNull(request.bizName)) {
|
|
5158
|
+
query["BizName"] = request.bizName;
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5161
|
+
if (!$dara.isNull(request.formatType)) {
|
|
5162
|
+
query["FormatType"] = request.formatType;
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
if (!$dara.isNull(request.glossary)) {
|
|
5166
|
+
query["Glossary"] = request.glossary;
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
5170
|
+
query["SourceLanguage"] = request.sourceLanguage;
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5173
|
+
if (!$dara.isNull(request.sourceTextListShrink)) {
|
|
5174
|
+
query["SourceTextList"] = request.sourceTextListShrink;
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
5178
|
+
query["TargetLanguage"] = request.targetLanguage;
|
|
5179
|
+
}
|
|
5180
|
+
|
|
5181
|
+
if (!$dara.isNull(request.translateScene)) {
|
|
5182
|
+
query["TranslateScene"] = request.translateScene;
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5186
|
+
query: OpenApiUtil.query(query),
|
|
5187
|
+
});
|
|
5188
|
+
let params = new $OpenApiUtil.Params({
|
|
5189
|
+
action: "TextTranslateAsync",
|
|
5190
|
+
version: "2026-04-28",
|
|
5191
|
+
protocol: "HTTPS",
|
|
5192
|
+
pathname: "/",
|
|
5193
|
+
method: "POST",
|
|
5194
|
+
authType: "AK",
|
|
5195
|
+
style: "RPC",
|
|
5196
|
+
reqBodyType: "formData",
|
|
5197
|
+
bodyType: "json",
|
|
5198
|
+
});
|
|
5199
|
+
return $dara.cast<$_model.TextTranslateAsyncResponse>(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
/**
|
|
5203
|
+
* 文本翻译异步
|
|
5204
|
+
*
|
|
5205
|
+
* @remarks
|
|
5206
|
+
* ## 适用场景
|
|
5207
|
+
* * 商品标题:Maas MT大模型翻译可以将商品标题中的短语、关键词、流行词等准确翻译成目标语言,提升商品在电商平台的曝光率。
|
|
5208
|
+
*
|
|
5209
|
+
* * 商品详描:商品详描整体文本较长、格式多样且复杂,Maas 大模型翻译支持长文本翻译和 HTML 格式,翻译效果和格式还原能力表现出色。
|
|
5210
|
+
*
|
|
5211
|
+
* * 商品属性:商品属性词汇较短,且存在电商专有词(如型号、参数)等。
|
|
5212
|
+
*
|
|
5213
|
+
* * 客服对话:在客服场景中,可优化“上下文缺失、打字错误“等问题,并在部分语向上支持礼貌用语。
|
|
5214
|
+
*
|
|
5215
|
+
* 同时,Maas MT大模型翻译也可以用于通用场景的翻译,如办公、会议、日常对话等。
|
|
5216
|
+
* ## 功能介绍
|
|
5217
|
+
* * **超低幻觉率与高速推理** Maas MT大模型翻译是在翻译场景上经过偏好对齐的大语言模型,与通用大语言模型相比,翻译推理速度快,幻觉率极低,尤其适合大规模调用的场景。
|
|
5218
|
+
*
|
|
5219
|
+
* * **支持翻译的文本格式类型** 当前支持 text 和 html 的文本类型。
|
|
5220
|
+
*
|
|
5221
|
+
* * **翻译干预能力支持** 支持自定义翻译结果,包含不被翻译(ABC-ABC),指定翻译(ABC-DEF),不翻译(ABC-空值)。常用于品牌词保护等场景。只需调用接口时传入相应的干预词表ID,即可实现,可满足您在不同场景下的翻译需求。一般您可以上传10万条干预词,如有更多需要可以联系平台进行处理。
|
|
5222
|
+
*
|
|
5223
|
+
* * **翻译效果对比**
|
|
5224
|
+
* | **原文** | **Aidge译后** | **其他翻译产品1** | **其他翻译产品2** | **Aidge翻译优势** |
|
|
5225
|
+
* | --- | --- | --- | --- | --- |
|
|
5226
|
+
* | 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 | 商品主体更清晰 |
|
|
5227
|
+
* | 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 | 句式更完整,表述更清晰,断句更合理 |
|
|
5228
|
+
* | 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 | 产品主体表述更清晰明确,是“钥匙包”而非“钥匙扣”,其它译文容易对产品主体产生歧义 |
|
|
5229
|
+
* ## 接入准备与调用流程
|
|
5230
|
+
* 文本翻译支持同步和异步两种调用方式。本文介绍异步调用接口,如需使用同步调用,请参阅[《文本翻译-同步接口》](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate)。
|
|
5231
|
+
* 文本翻译及其他能力的异步接口共用结果获取流程、RocketMQ 订阅规则、消息加密协议、依赖配置,以及 Java 消费与解密代码。
|
|
5232
|
+
* 异步调用的接入流程,订阅规则,消息格式与加密协议,以及详细的接入方案请参阅[异步接口调用说明](https://help.aliyun.com/zh/aidge/asynchronous-interface-call-instructions)。
|
|
5233
|
+
*
|
|
5234
|
+
* @param request - TextTranslateAsyncRequest
|
|
5235
|
+
* @returns TextTranslateAsyncResponse
|
|
5236
|
+
*/
|
|
5237
|
+
async textTranslateAsync(request: $_model.TextTranslateAsyncRequest): Promise<$_model.TextTranslateAsyncResponse> {
|
|
5238
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5239
|
+
return await this.textTranslateAsyncWithOptions(request, runtime);
|
|
5240
|
+
}
|
|
5241
|
+
|
|
5242
|
+
/**
|
|
5243
|
+
* 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.
|
|
3182
5244
|
*
|
|
3183
5245
|
* @remarks
|
|
3184
5246
|
* # Scenarios
|
|
3185
|
-
* -
|
|
3186
|
-
* -
|
|
3187
|
-
* - High-fidelity
|
|
3188
|
-
* -
|
|
3189
|
-
* -
|
|
3190
|
-
* - Multi-product and multi-selling
|
|
5247
|
+
* - 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.
|
|
5248
|
+
* - 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.
|
|
5249
|
+
* - 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.
|
|
5250
|
+
* - 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.
|
|
5251
|
+
* - 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.
|
|
5252
|
+
* - 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.
|
|
3191
5253
|
* # Features
|
|
3192
|
-
* - Fully
|
|
3193
|
-
* - Highly stable generation with low waste rate:
|
|
3194
|
-
* - E-commerce
|
|
3195
|
-
* - Reference image
|
|
3196
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3197
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3198
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3199
|
-
* -
|
|
5254
|
+
* - 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.
|
|
5255
|
+
* - 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.
|
|
5256
|
+
* - 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.
|
|
5257
|
+
* - 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.
|
|
5258
|
+
* - 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.
|
|
5259
|
+
* - 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.
|
|
5260
|
+
* - 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.
|
|
5261
|
+
* - 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.
|
|
3200
5262
|
*
|
|
3201
5263
|
* @param tmpReq - VideoGenerationRequest
|
|
3202
5264
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3249,25 +5311,25 @@ export default class Client extends OpenApi {
|
|
|
3249
5311
|
}
|
|
3250
5312
|
|
|
3251
5313
|
/**
|
|
3252
|
-
* The
|
|
5314
|
+
* 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.
|
|
3253
5315
|
*
|
|
3254
5316
|
* @remarks
|
|
3255
5317
|
* # Scenarios
|
|
3256
|
-
* -
|
|
3257
|
-
* -
|
|
3258
|
-
* - High-fidelity
|
|
3259
|
-
* -
|
|
3260
|
-
* -
|
|
3261
|
-
* - Multi-product and multi-selling
|
|
5318
|
+
* - 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.
|
|
5319
|
+
* - 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.
|
|
5320
|
+
* - 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.
|
|
5321
|
+
* - 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.
|
|
5322
|
+
* - 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.
|
|
5323
|
+
* - 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.
|
|
3262
5324
|
* # Features
|
|
3263
|
-
* - Fully
|
|
3264
|
-
* - Highly stable generation with low waste rate:
|
|
3265
|
-
* - E-commerce
|
|
3266
|
-
* - Reference image
|
|
3267
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration
|
|
3268
|
-
* - Cinematic camera movement capabilities: Built-in advanced camera movement modes
|
|
3269
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
3270
|
-
* -
|
|
5325
|
+
* - 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.
|
|
5326
|
+
* - 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.
|
|
5327
|
+
* - 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.
|
|
5328
|
+
* - 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.
|
|
5329
|
+
* - 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.
|
|
5330
|
+
* - 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.
|
|
5331
|
+
* - 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.
|
|
5332
|
+
* - 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.
|
|
3271
5333
|
*
|
|
3272
5334
|
* @param request - VideoGenerationRequest
|
|
3273
5335
|
* @returns VideoGenerationResponse
|
|
@@ -3278,28 +5340,28 @@ export default class Client extends OpenApi {
|
|
|
3278
5340
|
}
|
|
3279
5341
|
|
|
3280
5342
|
/**
|
|
3281
|
-
*
|
|
5343
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3282
5344
|
*
|
|
3283
5345
|
* @remarks
|
|
3284
|
-
* ##
|
|
3285
|
-
* The video translation API translates
|
|
3286
|
-
*
|
|
3287
|
-
* ##
|
|
3288
|
-
* * **Cross-border e-commerce video localization**: Translates
|
|
5346
|
+
* ## Product introduction
|
|
5347
|
+
* 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.
|
|
5348
|
+
* 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.
|
|
5349
|
+
* ## Scenarios
|
|
5350
|
+
* * **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.
|
|
3289
5351
|
*
|
|
3290
|
-
* * **International social media marketing**: Localizes text
|
|
5352
|
+
* * **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.
|
|
3291
5353
|
*
|
|
3292
|
-
* * **Global brand advertising**: Automatically generates video versions in the
|
|
5354
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
|
|
3293
5355
|
*
|
|
3294
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3295
|
-
* ##
|
|
5356
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5357
|
+
* ## Features
|
|
3296
5358
|
* | Feature | Identifier | Description |
|
|
3297
5359
|
* | --- | --- | --- |
|
|
3298
|
-
* |
|
|
3299
|
-
*
|
|
3300
|
-
*
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
5360
|
+
* | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
|
|
5361
|
+
* | 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. |
|
|
5362
|
+
* 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.
|
|
5363
|
+
* 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.
|
|
5364
|
+
* 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.
|
|
3303
5365
|
*
|
|
3304
5366
|
* @param tmpReq - VideoTranslationRequest
|
|
3305
5367
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3313,11 +5375,28 @@ export default class Client extends OpenApi {
|
|
|
3313
5375
|
request.capabilitiesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.capabilities, "Capabilities", "json");
|
|
3314
5376
|
}
|
|
3315
5377
|
|
|
5378
|
+
let query = { };
|
|
5379
|
+
if (!$dara.isNull(request.eraseOnly)) {
|
|
5380
|
+
query["EraseOnly"] = request.eraseOnly;
|
|
5381
|
+
}
|
|
5382
|
+
|
|
5383
|
+
if (!$dara.isNull(request.removeLogo)) {
|
|
5384
|
+
query["RemoveLogo"] = request.removeLogo;
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
if (!$dara.isNull(request.subtitleMode)) {
|
|
5388
|
+
query["SubtitleMode"] = request.subtitleMode;
|
|
5389
|
+
}
|
|
5390
|
+
|
|
3316
5391
|
let body : {[key: string ]: any} = { };
|
|
3317
5392
|
if (!$dara.isNull(request.capabilitiesShrink)) {
|
|
3318
5393
|
body["Capabilities"] = request.capabilitiesShrink;
|
|
3319
5394
|
}
|
|
3320
5395
|
|
|
5396
|
+
if (!$dara.isNull(request.enableQualityCheck)) {
|
|
5397
|
+
body["EnableQualityCheck"] = request.enableQualityCheck;
|
|
5398
|
+
}
|
|
5399
|
+
|
|
3321
5400
|
if (!$dara.isNull(request.sourceLanguage)) {
|
|
3322
5401
|
body["SourceLanguage"] = request.sourceLanguage;
|
|
3323
5402
|
}
|
|
@@ -3331,6 +5410,7 @@ export default class Client extends OpenApi {
|
|
|
3331
5410
|
}
|
|
3332
5411
|
|
|
3333
5412
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5413
|
+
query: OpenApiUtil.query(query),
|
|
3334
5414
|
body: OpenApiUtil.parseToMap(body),
|
|
3335
5415
|
});
|
|
3336
5416
|
let params = new $OpenApiUtil.Params({
|
|
@@ -3348,28 +5428,28 @@ export default class Client extends OpenApi {
|
|
|
3348
5428
|
}
|
|
3349
5429
|
|
|
3350
5430
|
/**
|
|
3351
|
-
*
|
|
5431
|
+
* Translates embedded text, such as subtitles and selling points, in video frames into a target language and erases the original text.
|
|
3352
5432
|
*
|
|
3353
5433
|
* @remarks
|
|
3354
|
-
* ##
|
|
3355
|
-
* The video translation API translates
|
|
3356
|
-
*
|
|
3357
|
-
* ##
|
|
3358
|
-
* * **Cross-border e-commerce video localization**: Translates
|
|
5434
|
+
* ## Product introduction
|
|
5435
|
+
* 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.
|
|
5436
|
+
* 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.
|
|
5437
|
+
* ## Scenarios
|
|
5438
|
+
* * **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.
|
|
3359
5439
|
*
|
|
3360
|
-
* * **International social media marketing**: Localizes text
|
|
5440
|
+
* * **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.
|
|
3361
5441
|
*
|
|
3362
|
-
* * **Global brand advertising**: Automatically generates video versions in the
|
|
5442
|
+
* * **Global brand advertising**: Automatically generates video versions in the languages of the delivery regions to reduce manual production costs.
|
|
3363
5443
|
*
|
|
3364
|
-
* * **Training and product instructions**: Translates on-screen text in training courses or product
|
|
3365
|
-
* ##
|
|
5444
|
+
* * **Training and product instructions**: Translates on-screen text in training courses or product demo videos into multiple languages for global teams.
|
|
5445
|
+
* ## Features
|
|
3366
5446
|
* | Feature | Identifier | Description |
|
|
3367
5447
|
* | --- | --- | --- |
|
|
3368
|
-
* |
|
|
3369
|
-
*
|
|
3370
|
-
*
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
5448
|
+
* | Speech and subtitle translation | speech | Translates video speech into target language voiceovers. Does not erase original subtitles or add new subtitles. |
|
|
5449
|
+
* | 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. |
|
|
5450
|
+
* 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.
|
|
5451
|
+
* 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.
|
|
5452
|
+
* 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.
|
|
3373
5453
|
*
|
|
3374
5454
|
* @param request - VideoTranslationRequest
|
|
3375
5455
|
* @returns VideoTranslationResponse
|