@alicloud/aidge20260428 5.7.0 → 5.8.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.
Files changed (87) hide show
  1. package/dist/client.d.ts +286 -78
  2. package/dist/client.js +405 -78
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiTryOnRequest.d.ts +11 -2
  5. package/dist/models/AiTryOnRequest.js.map +1 -1
  6. package/dist/models/AiTryOnResponseBody.d.ts +35 -1
  7. package/dist/models/AiTryOnResponseBody.js.map +1 -1
  8. package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
  9. package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
  10. package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
  11. package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
  12. package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
  13. package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
  14. package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
  15. package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
  16. package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
  17. package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
  18. package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
  19. package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
  20. package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
  21. package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
  22. package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
  23. package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
  24. package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
  25. package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
  26. package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
  27. package/dist/models/ImageTranslationProRequest.d.ts +3 -3
  28. package/dist/models/ImageTranslationStandardRequest.d.ts +10 -10
  29. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  30. package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
  31. package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
  32. package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
  33. package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
  34. package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
  35. package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
  36. package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
  37. package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
  38. package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
  39. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +13 -5
  40. package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
  41. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
  42. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
  43. package/dist/models/PetHealthAnalysisRequest.d.ts +36 -0
  44. package/dist/models/PetHealthAnalysisRequest.js +65 -0
  45. package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
  46. package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
  47. package/dist/models/PetHealthAnalysisResponse.js +69 -0
  48. package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
  49. package/dist/models/PetHealthAnalysisResponseBody.d.ts +70 -0
  50. package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
  51. package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
  52. package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +36 -0
  53. package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
  54. package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
  55. package/dist/models/TextTranslateRequest.d.ts +6 -6
  56. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  57. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
  58. package/dist/models/model.d.ts +21 -0
  59. package/dist/models/model.js +46 -4
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +424 -78
  63. package/src/models/AiTryOnRequest.ts +11 -2
  64. package/src/models/AiTryOnResponseBody.ts +35 -1
  65. package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
  66. package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
  67. package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
  68. package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
  69. package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
  70. package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
  71. package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
  72. package/src/models/ImageTranslationProRequest.ts +3 -3
  73. package/src/models/ImageTranslationStandardRequest.ts +10 -10
  74. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  75. package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
  76. package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
  77. package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
  78. package/src/models/MerchandisePlacementDetectionRequest.ts +15 -5
  79. package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
  80. package/src/models/PetHealthAnalysisRequest.ts +56 -0
  81. package/src/models/PetHealthAnalysisResponse.ts +40 -0
  82. package/src/models/PetHealthAnalysisResponseBody.ts +104 -0
  83. package/src/models/PetHealthAnalysisShrinkRequest.ts +53 -0
  84. package/src/models/TextTranslateRequest.ts +6 -6
  85. package/src/models/TextTranslateResponseBody.ts +1 -1
  86. package/src/models/TextTranslateShrinkRequest.ts +6 -6
  87. package/src/models/model.ts +21 -0
package/src/client.ts CHANGED
@@ -30,7 +30,38 @@ export default class Client extends OpenApi {
30
30
  }
31
31
 
32
32
  /**
33
- * 虚拟试穿(同步)
33
+ * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
34
+ *
35
+ * @remarks
36
+ * ## Scenarios
37
+ * - **Virtual try-on for clothing products:**
38
+ * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
39
+ * - **Virtual try-on for shoes and hats:**
40
+ * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
41
+ * - **E-commerce product display and marketing:**
42
+ * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
43
+ * - **Online shopping experience optimization:**
44
+ * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
45
+ * ## Features
46
+ * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
47
+ * - a. Model image: The person image on which the virtual try-on is performed.
48
+ * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
49
+ * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
50
+ * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
51
+ * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
52
+ * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
53
+ * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
54
+ * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
55
+ * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
56
+ * ## Sample results
57
+ * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
58
+ * | --- | --- | --- | --- |
59
+ * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
60
+ * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
61
+ * | Shoes | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![男模特鞋子正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/bb9804b5-0ab9-485b-829b-d54708377fd2.png) | ![91d7b8c4-fc31-9a7f-8b6e-3bec5e62efb3_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/8e54fdc3-7a86-4e3b-aa1d-f3741ce7658c.png) |
62
+ * | Jumpsuits | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/7f5cec40-a884-4640-8339-6109305dfa1d.png) | ![20c8b46a-213e-985c-aab2-d56f8752f3a4_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/635096eb-f2b2-4fd8-91d8-4c7e2e7d7ad1.png) |
63
+ * | Dresses | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/3d4a6de0-95d2-40cf-9105-48b5e899e0d3.png) | ![45b630e6-4e9d-9bf0-bb4e-224b30a91f77_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/a3cbb609-db71-47d6-8ac6-884f18c6596f.png) |
64
+ * | Hats | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/ac26f38e-acc7-49d1-a4ec-a51b54e4bd66.png) | ![帽子-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/34176b57-3aa8-4b6e-8d0f-808ae953654a.png) | ![881f02f3-12f5-95dd-b651-98fab6e30fa0_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/949b4c28-8821-4aa5-a2b4-e4acc1e57b9b.png) |
34
65
  *
35
66
  * @param request - AiTryOnRequest
36
67
  * @param runtime - runtime options for this request RuntimeOptions
@@ -73,7 +104,38 @@ export default class Client extends OpenApi {
73
104
  }
74
105
 
75
106
  /**
76
- * 虚拟试穿(同步)
107
+ * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
108
+ *
109
+ * @remarks
110
+ * ## Scenarios
111
+ * - **Virtual try-on for clothing products:**
112
+ * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
113
+ * - **Virtual try-on for shoes and hats:**
114
+ * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
115
+ * - **E-commerce product display and marketing:**
116
+ * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
117
+ * - **Online shopping experience optimization:**
118
+ * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
119
+ * ## Features
120
+ * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
121
+ * - a. Model image: The person image on which the virtual try-on is performed.
122
+ * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
123
+ * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
124
+ * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
125
+ * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
126
+ * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
127
+ * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
128
+ * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
129
+ * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
130
+ * ## Sample results
131
+ * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
132
+ * | --- | --- | --- | --- |
133
+ * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
134
+ * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
135
+ * | Shoes | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![男模特鞋子正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/bb9804b5-0ab9-485b-829b-d54708377fd2.png) | ![91d7b8c4-fc31-9a7f-8b6e-3bec5e62efb3_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/8e54fdc3-7a86-4e3b-aa1d-f3741ce7658c.png) |
136
+ * | Jumpsuits | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/7f5cec40-a884-4640-8339-6109305dfa1d.png) | ![20c8b46a-213e-985c-aab2-d56f8752f3a4_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/635096eb-f2b2-4fd8-91d8-4c7e2e7d7ad1.png) |
137
+ * | Dresses | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/3d4a6de0-95d2-40cf-9105-48b5e899e0d3.png) | ![45b630e6-4e9d-9bf0-bb4e-224b30a91f77_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/a3cbb609-db71-47d6-8ac6-884f18c6596f.png) |
138
+ * | Hats | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/ac26f38e-acc7-49d1-a4ec-a51b54e4bd66.png) | ![帽子-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/34176b57-3aa8-4b6e-8d0f-808ae953654a.png) | ![881f02f3-12f5-95dd-b651-98fab6e30fa0_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/949b4c28-8821-4aa5-a2b4-e4acc1e57b9b.png) |
77
139
  *
78
140
  * @param request - AiTryOnRequest
79
141
  * @returns AiTryOnResponse
@@ -645,6 +707,74 @@ export default class Client extends OpenApi {
645
707
  return await this.diduiAreaDeductionWithOptions(request, runtime);
646
708
  }
647
709
 
710
+ /**
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
+
648
778
  /**
649
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.
650
780
  * Excels in the following areas:
@@ -837,6 +967,70 @@ export default class Client extends OpenApi {
837
967
  return await this.ecomVideoRecreationWithOptions(request, runtime);
838
968
  }
839
969
 
970
+ /**
971
+ * 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.
972
+ *
973
+ * @remarks
974
+ * *Scenarios**
975
+ * 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
976
+ * 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
977
+ * 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
978
+ * **Features**
979
+ * 1. General recapture detection: Returns an isFake Boolean result.
980
+ * 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.
981
+ * 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.
982
+ * 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.
983
+ *
984
+ * @param request - GeneralRephotographyDetectionRequest
985
+ * @param runtime - runtime options for this request RuntimeOptions
986
+ * @returns GeneralRephotographyDetectionResponse
987
+ */
988
+ async generalRephotographyDetectionWithOptions(request: $_model.GeneralRephotographyDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GeneralRephotographyDetectionResponse> {
989
+ request.validate();
990
+ let query = { };
991
+ if (!$dara.isNull(request.imageUrl)) {
992
+ query["ImageUrl"] = request.imageUrl;
993
+ }
994
+
995
+ let req = new $OpenApiUtil.OpenApiRequest({
996
+ query: OpenApiUtil.query(query),
997
+ });
998
+ let params = new $OpenApiUtil.Params({
999
+ action: "GeneralRephotographyDetection",
1000
+ version: "2026-04-28",
1001
+ protocol: "HTTPS",
1002
+ pathname: "/",
1003
+ method: "POST",
1004
+ authType: "AK",
1005
+ style: "RPC",
1006
+ reqBodyType: "formData",
1007
+ bodyType: "json",
1008
+ });
1009
+ return $dara.cast<$_model.GeneralRephotographyDetectionResponse>(await this.callApi(params, req, runtime), new $_model.GeneralRephotographyDetectionResponse({}));
1010
+ }
1011
+
1012
+ /**
1013
+ * 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.
1014
+ *
1015
+ * @remarks
1016
+ * *Scenarios**
1017
+ * 1. Inspection photo review: Screens photos submitted by stores for recapture risks.
1018
+ * 2. Screen or printed photo recapture verification: Locates visible screens, printed photos, and other carriers.
1019
+ * 3. Review clue display: Annotates products and visible clues on the original image to assist re-examination.
1020
+ * **Features**
1021
+ * 1. General recapture detection: Returns an isFake Boolean result.
1022
+ * 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.
1023
+ * 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.
1024
+ * 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.
1025
+ *
1026
+ * @param request - GeneralRephotographyDetectionRequest
1027
+ * @returns GeneralRephotographyDetectionResponse
1028
+ */
1029
+ async generalRephotographyDetection(request: $_model.GeneralRephotographyDetectionRequest): Promise<$_model.GeneralRephotographyDetectionResponse> {
1030
+ let runtime = new $dara.RuntimeOptions({ });
1031
+ return await this.generalRephotographyDetectionWithOptions(request, runtime);
1032
+ }
1033
+
840
1034
  /**
841
1035
  * 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)
842
1036
  *
@@ -1594,13 +1788,13 @@ export default class Client extends OpenApi {
1594
1788
  }
1595
1789
 
1596
1790
  /**
1597
- * The Image Translation PLUS edition is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Image Translation Lite and Pro editions. Use this edition for the following 8 language directions. More language directions will be supported in the future.
1791
+ * 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 Lite and Pro editions. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
1598
1792
  *
1599
1793
  * @remarks
1600
1794
  * ## Product Introduction
1601
- * 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.
1795
+ * 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 Lite and Pro editions. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
1602
1796
  * Supported language pairs:
1603
- * | **Ordinal number** | **Source language** | | **Target language** | |
1797
+ * | **No.** | **Source language** | | **Target language** | |
1604
1798
  * | --- | --- | --- | --- | --- |
1605
1799
  * | | Language code | Language name | Language code | Language name |
1606
1800
  * | 1 | en | English | ar | Arabic |
@@ -1622,7 +1816,7 @@ export default class Client extends OpenApi {
1622
1816
  *
1623
1817
  * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1624
1818
  *
1625
- * * **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. 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.
1819
+ * * **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 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.
1626
1820
  *
1627
1821
  * @param request - ImageTranslationPlusRequest
1628
1822
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1677,13 +1871,13 @@ export default class Client extends OpenApi {
1677
1871
  }
1678
1872
 
1679
1873
  /**
1680
- * The Image Translation PLUS edition is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Image Translation Lite and Pro editions. Use this edition for the following 8 language directions. More language directions will be supported in the future.
1874
+ * 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 Lite and Pro editions. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
1681
1875
  *
1682
1876
  * @remarks
1683
1877
  * ## Product Introduction
1684
- * 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.
1878
+ * 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 Lite and Pro editions. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
1685
1879
  * Supported language pairs:
1686
- * | **Ordinal number** | **Source language** | | **Target language** | |
1880
+ * | **No.** | **Source language** | | **Target language** | |
1687
1881
  * | --- | --- | --- | --- | --- |
1688
1882
  * | | Language code | Language name | Language code | Language name |
1689
1883
  * | 1 | en | English | ar | Arabic |
@@ -1705,7 +1899,7 @@ export default class Client extends OpenApi {
1705
1899
  *
1706
1900
  * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1707
1901
  *
1708
- * * **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. 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.
1902
+ * * **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 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.
1709
1903
  *
1710
1904
  * @param request - ImageTranslationPlusRequest
1711
1905
  * @returns ImageTranslationPlusResponse
@@ -1716,18 +1910,18 @@ export default class Client extends OpenApi {
1716
1910
  }
1717
1911
 
1718
1912
  /**
1719
- * 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).
1913
+ * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1720
1914
  *
1721
1915
  * @remarks
1722
1916
  * ## Product Introduction
1723
- * 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).
1917
+ * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1724
1918
  * ## Scenarios
1725
1919
  * E-commerce product images, marketing images, and images for various other scenarios.
1726
1920
  * ## Features
1727
1921
  * - **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.
1728
- * - **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.
1922
+ * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1729
1923
  * - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
1730
- * - **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.
1924
+ * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1731
1925
  * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1732
1926
  *
1733
1927
  * @param request - ImageTranslationProRequest
@@ -1787,18 +1981,18 @@ export default class Client extends OpenApi {
1787
1981
  }
1788
1982
 
1789
1983
  /**
1790
- * 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).
1984
+ * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1791
1985
  *
1792
1986
  * @remarks
1793
1987
  * ## Product Introduction
1794
- * 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).
1988
+ * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1795
1989
  * ## Scenarios
1796
1990
  * E-commerce product images, marketing images, and images for various other scenarios.
1797
1991
  * ## Features
1798
1992
  * - **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.
1799
- * - **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.
1993
+ * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1800
1994
  * - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
1801
- * - **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.
1995
+ * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1802
1996
  * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1803
1997
  *
1804
1998
  * @param request - ImageTranslationProRequest
@@ -1810,21 +2004,21 @@ export default class Client extends OpenApi {
1810
2004
  }
1811
2005
 
1812
2006
  /**
1813
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
2007
+ * Image Translation is designed specifically for e-commerce images. It supports more than 400 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1814
2008
  *
1815
2009
  * @remarks
1816
2010
  * # 1. Product Introduction
1817
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1818
- * # 2. Applicable scenarios
2011
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
2012
+ * # 2. Common scenarios
1819
2013
  * E-commerce product images, marketing images, and images for various other scenarios.
1820
2014
  * # 3. Features
1821
- * * **Product area protection**: Allows you to choose whether to translate text on the product area of an image. This helps protect product area information from being translated, avoiding translation of embedded information such as product names.
2015
+ * * **Product area protection**: You can choose whether to translate text on the product area of an image. This helps protect product area information from being translated, such as embedded product names.
1822
2016
  *
1823
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
2017
+ * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1824
2018
  *
1825
- * * **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.
2019
+ * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1826
2020
  *
1827
- * * **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.
2021
+ * * **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 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.
1828
2022
  * * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1829
2023
  *
1830
2024
  * @param request - ImageTranslationStandardRequest
@@ -1880,21 +2074,21 @@ export default class Client extends OpenApi {
1880
2074
  }
1881
2075
 
1882
2076
  /**
1883
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
2077
+ * Image Translation is designed specifically for e-commerce images. It supports more than 400 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1884
2078
  *
1885
2079
  * @remarks
1886
2080
  * # 1. Product Introduction
1887
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1888
- * # 2. Applicable scenarios
2081
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
2082
+ * # 2. Common scenarios
1889
2083
  * E-commerce product images, marketing images, and images for various other scenarios.
1890
2084
  * # 3. Features
1891
- * * **Product area protection**: Allows you to choose whether to translate text on the product area of an image. This helps protect product area information from being translated, avoiding translation of embedded information such as product names.
2085
+ * * **Product area protection**: You can choose whether to translate text on the product area of an image. This helps protect product area information from being translated, such as embedded product names.
1892
2086
  *
1893
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
2087
+ * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1894
2088
  *
1895
- * * **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.
2089
+ * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1896
2090
  *
1897
- * * **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.
2091
+ * * **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 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.
1898
2092
  * * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1899
2093
  *
1900
2094
  * @param request - ImageTranslationStandardRequest
@@ -2062,25 +2256,25 @@ export default class Client extends OpenApi {
2062
2256
  }
2063
2257
 
2064
2258
  /**
2065
- * 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.
2259
+ * 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.
2066
2260
  *
2067
2261
  * @remarks
2068
2262
  * ## **Product Introduction**
2069
- * 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.
2263
+ * 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.
2070
2264
  * ## **Scenarios**
2071
- * - **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.
2265
+ * - **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.
2072
2266
  *
2073
- * - **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.
2267
+ * - **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.
2074
2268
  *
2075
- * - **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.
2076
- * ## **Features**
2077
- * - **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.
2269
+ * - **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.
2270
+ * ## **Functions and features**
2271
+ * - **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.
2078
2272
  *
2079
- * - **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.
2273
+ * - **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.
2080
2274
  *
2081
- * - **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.
2275
+ * - **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.
2082
2276
  *
2083
- * - **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.
2277
+ * - **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.
2084
2278
  *
2085
2279
  * @param request - MerchandisePlacementDetectionRequest
2086
2280
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2101,6 +2295,10 @@ export default class Client extends OpenApi {
2101
2295
  query["RagId"] = request.ragId;
2102
2296
  }
2103
2297
 
2298
+ if (!$dara.isNull(request.rule)) {
2299
+ query["Rule"] = request.rule;
2300
+ }
2301
+
2104
2302
  if (!$dara.isNull(request.type)) {
2105
2303
  query["Type"] = request.type;
2106
2304
  }
@@ -2123,25 +2321,25 @@ export default class Client extends OpenApi {
2123
2321
  }
2124
2322
 
2125
2323
  /**
2126
- * 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.
2324
+ * 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.
2127
2325
  *
2128
2326
  * @remarks
2129
2327
  * ## **Product Introduction**
2130
- * 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.
2328
+ * 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.
2131
2329
  * ## **Scenarios**
2132
- * - **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.
2330
+ * - **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.
2133
2331
  *
2134
- * - **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.
2332
+ * - **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.
2135
2333
  *
2136
- * - **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.
2137
- * ## **Features**
2138
- * - **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.
2334
+ * - **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.
2335
+ * ## **Functions and features**
2336
+ * - **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.
2139
2337
  *
2140
- * - **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.
2338
+ * - **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.
2141
2339
  *
2142
- * - **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.
2340
+ * - **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.
2143
2341
  *
2144
- * - **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.
2342
+ * - **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.
2145
2343
  *
2146
2344
  * @param request - MerchandisePlacementDetectionRequest
2147
2345
  * @returns MerchandisePlacementDetectionResponse
@@ -2151,6 +2349,78 @@ export default class Client extends OpenApi {
2151
2349
  return await this.merchandisePlacementDetectionWithOptions(request, runtime);
2152
2350
  }
2153
2351
 
2352
+ /**
2353
+ * 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.
2354
+ *
2355
+ * @remarks
2356
+ * ## Scenarios
2357
+ * - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
2358
+ * - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
2359
+ * - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
2360
+ * ## Features
2361
+ * - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
2362
+ * - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
2363
+ * - 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.
2364
+ * - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
2365
+ *
2366
+ * @param request - MerchandisePlacementDetectionProRequest
2367
+ * @param runtime - runtime options for this request RuntimeOptions
2368
+ * @returns MerchandisePlacementDetectionProResponse
2369
+ */
2370
+ async merchandisePlacementDetectionProWithOptions(request: $_model.MerchandisePlacementDetectionProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MerchandisePlacementDetectionProResponse> {
2371
+ request.validate();
2372
+ let query = { };
2373
+ if (!$dara.isNull(request.imageUrl)) {
2374
+ query["ImageUrl"] = request.imageUrl;
2375
+ }
2376
+
2377
+ if (!$dara.isNull(request.rule)) {
2378
+ query["Rule"] = request.rule;
2379
+ }
2380
+
2381
+ if (!$dara.isNull(request.type)) {
2382
+ query["Type"] = request.type;
2383
+ }
2384
+
2385
+ let req = new $OpenApiUtil.OpenApiRequest({
2386
+ query: OpenApiUtil.query(query),
2387
+ });
2388
+ let params = new $OpenApiUtil.Params({
2389
+ action: "MerchandisePlacementDetectionPro",
2390
+ version: "2026-04-28",
2391
+ protocol: "HTTPS",
2392
+ pathname: "/",
2393
+ method: "POST",
2394
+ authType: "AK",
2395
+ style: "RPC",
2396
+ reqBodyType: "formData",
2397
+ bodyType: "json",
2398
+ });
2399
+ return $dara.cast<$_model.MerchandisePlacementDetectionProResponse>(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionProResponse({}));
2400
+ }
2401
+
2402
+ /**
2403
+ * 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.
2404
+ *
2405
+ * @remarks
2406
+ * ## Scenarios
2407
+ * - Beverage display recognition: Uses default rules for the Genki Forest business type to recognize visible beverage products.
2408
+ * - Custom detection rules: Specifies product recognition tasks that comply with output constraints through the rule parameter.
2409
+ * - Product location display: Uses per-product names and bounding boxes for display, statistics, or manual review.
2410
+ * ## Features
2411
+ * - Direct product recognition: Each product outputs a bounding box and a name. The name is returned as unknown if it cannot be determined.
2412
+ * - Two rule entry points: A non-empty rule takes priority. If no valid rule is provided, the type must be set to Genki Forest.
2413
+ * - 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.
2414
+ * - Result scope: Currently outputs detected names and positions only. Vector library recall, SKU codes, and similarity scores are not included.
2415
+ *
2416
+ * @param request - MerchandisePlacementDetectionProRequest
2417
+ * @returns MerchandisePlacementDetectionProResponse
2418
+ */
2419
+ async merchandisePlacementDetectionPro(request: $_model.MerchandisePlacementDetectionProRequest): Promise<$_model.MerchandisePlacementDetectionProResponse> {
2420
+ let runtime = new $dara.RuntimeOptions({ });
2421
+ return await this.merchandisePlacementDetectionProWithOptions(request, runtime);
2422
+ }
2423
+
2154
2424
  /**
2155
2425
  * 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.
2156
2426
  *
@@ -2227,6 +2497,82 @@ export default class Client extends OpenApi {
2227
2497
  return await this.packageWeightSizeCheckWithOptions(request, runtime);
2228
2498
  }
2229
2499
 
2500
+ /**
2501
+ * Analyzes pet excrement images using a pet multimodal model building product. Supports uploading pet excrement images, determines by default whether excrement is present in the image, locates and performs categorization on each visible excrement area, and returns model-generated text containing the categorization results. The invoker can also optionally provide a user prompt and a system prompt to customize image analysis requirements and response format.
2502
+ * Applicable scenarios:
2503
+ * 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
2504
+ * 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
2505
+ * 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
2506
+ *
2507
+ * @remarks
2508
+ * 1. Multi-image input: image_url is a required array of HTTPS image URLs.
2509
+ * 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
2510
+ * 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
2511
+ * 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
2512
+ *
2513
+ * @param tmpReq - PetHealthAnalysisRequest
2514
+ * @param runtime - runtime options for this request RuntimeOptions
2515
+ * @returns PetHealthAnalysisResponse
2516
+ */
2517
+ async petHealthAnalysisWithOptions(tmpReq: $_model.PetHealthAnalysisRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PetHealthAnalysisResponse> {
2518
+ tmpReq.validate();
2519
+ let request = new $_model.PetHealthAnalysisShrinkRequest({ });
2520
+ OpenApiUtil.convert(tmpReq, request);
2521
+ if (!$dara.isNull(tmpReq.imageUrl)) {
2522
+ request.imageUrlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageUrl, "ImageUrl", "json");
2523
+ }
2524
+
2525
+ let query = { };
2526
+ if (!$dara.isNull(request.imageUrlShrink)) {
2527
+ query["ImageUrl"] = request.imageUrlShrink;
2528
+ }
2529
+
2530
+ if (!$dara.isNull(request.systemPrompt)) {
2531
+ query["SystemPrompt"] = request.systemPrompt;
2532
+ }
2533
+
2534
+ if (!$dara.isNull(request.userPrompt)) {
2535
+ query["UserPrompt"] = request.userPrompt;
2536
+ }
2537
+
2538
+ let req = new $OpenApiUtil.OpenApiRequest({
2539
+ query: OpenApiUtil.query(query),
2540
+ });
2541
+ let params = new $OpenApiUtil.Params({
2542
+ action: "PetHealthAnalysis",
2543
+ version: "2026-04-28",
2544
+ protocol: "HTTPS",
2545
+ pathname: "/",
2546
+ method: "POST",
2547
+ authType: "AK",
2548
+ style: "RPC",
2549
+ reqBodyType: "formData",
2550
+ bodyType: "json",
2551
+ });
2552
+ return $dara.cast<$_model.PetHealthAnalysisResponse>(await this.callApi(params, req, runtime), new $_model.PetHealthAnalysisResponse({}));
2553
+ }
2554
+
2555
+ /**
2556
+ * Analyzes pet excrement images using a pet multimodal model building product. Supports uploading pet excrement images, determines by default whether excrement is present in the image, locates and performs categorization on each visible excrement area, and returns model-generated text containing the categorization results. The invoker can also optionally provide a user prompt and a system prompt to customize image analysis requirements and response format.
2557
+ * Applicable scenarios:
2558
+ * 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
2559
+ * 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
2560
+ * 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
2561
+ *
2562
+ * @remarks
2563
+ * 1. Multi-image input: image_url is a required array of HTTPS image URLs.
2564
+ * 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
2565
+ * 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
2566
+ * 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
2567
+ *
2568
+ * @param request - PetHealthAnalysisRequest
2569
+ * @returns PetHealthAnalysisResponse
2570
+ */
2571
+ async petHealthAnalysis(request: $_model.PetHealthAnalysisRequest): Promise<$_model.PetHealthAnalysisResponse> {
2572
+ let runtime = new $dara.RuntimeOptions({ });
2573
+ return await this.petHealthAnalysisWithOptions(request, runtime);
2574
+ }
2575
+
2230
2576
  /**
2231
2577
  * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2232
2578
  *
@@ -2990,32 +3336,32 @@ export default class Client extends OpenApi {
2990
3336
  }
2991
3337
 
2992
3338
  /**
2993
- * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
3339
+ * 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 31 languages in query phrases and 35 languages in general scenarios. If you do not specify a source language, automatic language detection is performed.
2994
3340
  *
2995
3341
  * @remarks
2996
3342
  * ## Product Introduction
2997
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
3343
+ * Marco 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 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic language detection is performed.
2998
3344
  * ## Common scenarios
2999
- * - **Product titles**: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
3000
- * - **Product descriptions**: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
3001
- * - **Product attributes**: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3002
- * - **Customer service conversations**: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
3003
- * Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
3345
+ * - Product titles: Marco 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.
3346
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
3347
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3348
+ * - Customer service conversations: In customer service scenarios, Marco MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
3349
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
3004
3350
  * ## Functions and features
3005
3351
  * - **Supported language directions**
3006
- * Marco MT supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3352
+ * Marco MT large model translation supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3007
3353
  * - **Ultra-low hallucination rate and high-speed inference**
3008
- * Marco MT 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.
3354
+ * Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
3009
3355
  * - **Supported text format types**
3010
- * Currently supports text and html text types.
3011
- * - **Translation intervention**
3012
- * 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 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.
3356
+ * Currently, text and html text types are supported.
3357
+ * - **Translation intervention support**
3358
+ * 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.
3013
3359
  * ## Translation quality comparison
3014
3360
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
3015
3361
  * |----------|---------------|-----------------------|-----------------------|---------------------|
3016
3362
  * | 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 |
3017
3363
  * | 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 |
3018
- * | 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 expression — correctly identifies "key bag" rather than "keychain," avoiding ambiguity about the product |
3364
+ * | 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 expression as "key bag" rather than "keychain", avoiding ambiguity about the product subject in other translations |
3019
3365
  *
3020
3366
  * @param tmpReq - TextTranslateRequest
3021
3367
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3076,32 +3422,32 @@ export default class Client extends OpenApi {
3076
3422
  }
3077
3423
 
3078
3424
  /**
3079
- * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
3425
+ * 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 31 languages in query phrases and 35 languages in general scenarios. If you do not specify a source language, automatic language detection is performed.
3080
3426
  *
3081
3427
  * @remarks
3082
3428
  * ## Product Introduction
3083
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
3429
+ * Marco 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 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic language detection is performed.
3084
3430
  * ## Common scenarios
3085
- * - **Product titles**: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
3086
- * - **Product descriptions**: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
3087
- * - **Product attributes**: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3088
- * - **Customer service conversations**: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
3089
- * Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
3431
+ * - Product titles: Marco 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.
3432
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
3433
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3434
+ * - Customer service conversations: In customer service scenarios, Marco MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
3435
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
3090
3436
  * ## Functions and features
3091
3437
  * - **Supported language directions**
3092
- * Marco MT supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3438
+ * Marco MT large model translation supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3093
3439
  * - **Ultra-low hallucination rate and high-speed inference**
3094
- * Marco MT 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.
3440
+ * Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
3095
3441
  * - **Supported text format types**
3096
- * Currently supports text and html text types.
3097
- * - **Translation intervention**
3098
- * 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 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.
3442
+ * Currently, text and html text types are supported.
3443
+ * - **Translation intervention support**
3444
+ * 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.
3099
3445
  * ## Translation quality comparison
3100
3446
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
3101
3447
  * |----------|---------------|-----------------------|-----------------------|---------------------|
3102
3448
  * | 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 |
3103
3449
  * | 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 |
3104
- * | 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 expression — correctly identifies "key bag" rather than "keychain," avoiding ambiguity about the product |
3450
+ * | 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 expression as "key bag" rather than "keychain", avoiding ambiguity about the product subject in other translations |
3105
3451
  *
3106
3452
  * @param request - TextTranslateRequest
3107
3453
  * @returns TextTranslateResponse