@alicloud/aidge20260428 5.7.1 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1593 -286
- package/dist/client.js +2362 -401
- package/dist/client.js.map +1 -1
- package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
- package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
- package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
- package/dist/models/DocumentTranslateRequest.d.ts +4 -4
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +24 -16
- package/dist/models/EcomVideoRecreationRequest.js +2 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +5 -5
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/ImageMattingAsyncRequest.d.ts +59 -0
- package/dist/models/ImageMattingAsyncRequest.js +66 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponse.d.ts +19 -0
- package/dist/models/ImageMattingAsyncResponse.js +69 -0
- package/dist/models/ImageMattingAsyncResponse.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageMattingAsyncResponseBody.js +88 -0
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncRequest.js +78 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRecognitionAsyncResponse.js +69 -0
- package/dist/models/ImageRecognitionAsyncResponse.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js +88 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +72 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +23 -0
- package/dist/models/ImageRemovalProAsyncRequest.js +58 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProAsyncResponse.js +69 -0
- package/dist/models/ImageRemovalProAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncRequest.js +82 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemoveAsyncResponse.js +69 -0
- package/dist/models/ImageRemoveAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +70 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationProAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationProAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationProAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +12 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +4 -2
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +75 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationStandardRequest.d.ts +13 -9
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionLiteRequest.d.ts +23 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js +58 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +239 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js +229 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +12 -5
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js +58 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js +69 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +258 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js +230 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js +58 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js +69 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +263 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js +235 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +197 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js +178 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisRequest.d.ts +28 -0
- package/dist/models/PetHealthAnalysisRequest.js +65 -0
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
- package/dist/models/PetHealthAnalysisResponse.js +69 -0
- package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +51 -0
- package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +28 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncRequest.js +65 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponse.d.ts +19 -0
- package/dist/models/SizeChartExtractAsyncResponse.js +69 -0
- package/dist/models/SizeChartExtractAsyncResponse.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +70 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js +88 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +62 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +23 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js +58 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponse.d.ts +19 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js +69 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +190 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js +199 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncRequest.js +75 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponse.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponse.js +69 -0
- package/dist/models/TextTranslateAsyncResponse.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +51 -0
- package/dist/models/TextTranslateAsyncResponseBody.js +88 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +56 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js +72 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +13 -13
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +13 -13
- package/dist/models/VideoGenerationRequest.d.ts +21 -12
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationRequest.d.ts +36 -6
- package/dist/models/VideoTranslationRequest.js +8 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationShrinkRequest.d.ts +36 -6
- package/dist/models/VideoTranslationShrinkRequest.js +8 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +110 -0
- package/dist/models/model.js +226 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2660 -580
- package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
- package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
- package/src/models/DocumentTranslateRequest.ts +4 -4
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +26 -16
- package/src/models/EcomVideoRecreationResponseBody.ts +5 -5
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
- package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/ImageMattingAsyncRequest.ts +80 -0
- package/src/models/ImageMattingAsyncResponse.ts +40 -0
- package/src/models/ImageMattingAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncRequest.ts +134 -0
- package/src/models/ImageRecognitionAsyncResponse.ts +40 -0
- package/src/models/ImageRecognitionAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +128 -0
- package/src/models/ImageRemovalProAsyncRequest.ts +36 -0
- package/src/models/ImageRemovalProAsyncResponse.ts +40 -0
- package/src/models/ImageRemovalProAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncRequest.ts +96 -0
- package/src/models/ImageRemoveAsyncResponse.ts +40 -0
- package/src/models/ImageRemoveAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +84 -0
- package/src/models/ImageTranslationPlusAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationPlusAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
- package/src/models/ImageTranslationProAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationProAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationProAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProRequest.ts +12 -8
- package/src/models/ImageTranslationProResponseBody.ts +4 -2
- package/src/models/ImageTranslationStandardAsyncRequest.ts +100 -0
- package/src/models/ImageTranslationStandardAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationStandardRequest.ts +13 -9
- package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
- package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
- package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
- package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
- package/src/models/MerchandisePlacementDetectionRequest.ts +12 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
- package/src/models/MerchandisePriceTagDetectionRequest.ts +36 -0
- package/src/models/MerchandisePriceTagDetectionResponse.ts +40 -0
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +387 -0
- package/src/models/MerchandiseSceneDetectionRequest.ts +36 -0
- package/src/models/MerchandiseSceneDetectionResponse.ts +40 -0
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +397 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +292 -0
- package/src/models/PetHealthAnalysisRequest.ts +48 -0
- package/src/models/PetHealthAnalysisResponse.ts +40 -0
- package/src/models/PetHealthAnalysisResponseBody.ts +85 -0
- package/src/models/PetHealthAnalysisShrinkRequest.ts +45 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +56 -0
- package/src/models/SizeChartExtractAsyncResponse.ts +40 -0
- package/src/models/SizeChartExtractAsyncResponseBody.ts +104 -0
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +53 -0
- package/src/models/StorefrontSceneRecognitionRequest.ts +36 -0
- package/src/models/StorefrontSceneRecognitionResponse.ts +40 -0
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +297 -0
- package/src/models/TextTranslateAsyncRequest.ts +86 -0
- package/src/models/TextTranslateAsyncResponse.ts +40 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +85 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +83 -0
- package/src/models/TextTranslateRequest.ts +13 -13
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +13 -13
- package/src/models/VideoGenerationRequest.ts +21 -12
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VideoTranslationRequest.ts +44 -6
- package/src/models/VideoTranslationResponseBody.ts +5 -5
- package/src/models/VideoTranslationShrinkRequest.ts +44 -6
- package/src/models/model.ts +110 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionLiteResponseBodyDataResultGroundingRegions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The 2D bounding box in the format of [top-left x, top-left y, bottom-right x, bottom-right y]. The values range from 0 to 1000. The left coordinate is less than the right coordinate, and the top coordinate is less than the bottom coordinate.
|
|
9
|
+
*/
|
|
10
|
+
bbox2d?: number[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The target category.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* price_tag
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The confirmable short name or text of up to 24 characters. This field is an empty string when the text is unclear.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* 5.50
|
|
25
|
+
*/
|
|
26
|
+
text?: string;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
bbox2d: 'Bbox_2d',
|
|
30
|
+
label: 'Label',
|
|
31
|
+
text: 'Text',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
bbox2d: { 'type': 'array', 'itemType': 'number' },
|
|
38
|
+
label: 'string',
|
|
39
|
+
text: 'string',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.bbox2d)) {
|
|
45
|
+
$dara.Model.validateArray(this.bbox2d);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class MerchandisePlacementDetectionLiteResponseBodyDataResultGrounding extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The coverage status. Valid values:
|
|
59
|
+
* - complete: The relevant visible targets are complete.
|
|
60
|
+
* - partial: Only some targets are valid or recognizable.
|
|
61
|
+
* - Empty string: No valid supplementary grounding results are obtained.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* complete
|
|
65
|
+
*/
|
|
66
|
+
coverage?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The target array, which contains up to 12 items. This array can be empty when no relevant targets are found.
|
|
70
|
+
*/
|
|
71
|
+
regions?: MerchandisePlacementDetectionLiteResponseBodyDataResultGroundingRegions[];
|
|
72
|
+
static names(): { [key: string]: string } {
|
|
73
|
+
return {
|
|
74
|
+
coverage: 'Coverage',
|
|
75
|
+
regions: 'Regions',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static types(): { [key: string]: any } {
|
|
80
|
+
return {
|
|
81
|
+
coverage: 'string',
|
|
82
|
+
regions: { 'type': 'array', 'itemType': MerchandisePlacementDetectionLiteResponseBodyDataResultGroundingRegions },
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
validate() {
|
|
87
|
+
if(Array.isArray(this.regions)) {
|
|
88
|
+
$dara.Model.validateArray(this.regions);
|
|
89
|
+
}
|
|
90
|
+
super.validate();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
constructor(map?: { [key: string]: any }) {
|
|
94
|
+
super(map);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class MerchandisePlacementDetectionLiteResponseBodyDataResultProductsBoxes extends $dara.Model {
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The bottom coordinate.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* 200
|
|
105
|
+
*/
|
|
106
|
+
bottom?: number;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The left coordinate.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* 100
|
|
113
|
+
*/
|
|
114
|
+
left?: number;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The right coordinate.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* (\\"874\\")
|
|
121
|
+
*/
|
|
122
|
+
right?: number;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* The bottom coordinate.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* 100
|
|
129
|
+
*/
|
|
130
|
+
top?: number;
|
|
131
|
+
static names(): { [key: string]: string } {
|
|
132
|
+
return {
|
|
133
|
+
bottom: 'Bottom',
|
|
134
|
+
left: 'Left',
|
|
135
|
+
right: 'Right',
|
|
136
|
+
top: 'Top',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static types(): { [key: string]: any } {
|
|
141
|
+
return {
|
|
142
|
+
bottom: 'number',
|
|
143
|
+
left: 'number',
|
|
144
|
+
right: 'number',
|
|
145
|
+
top: 'number',
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
validate() {
|
|
150
|
+
super.validate();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
constructor(map?: { [key: string]: any }) {
|
|
154
|
+
super(map);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export class MerchandisePlacementDetectionLiteResponseBodyDataResultProducts extends $dara.Model {
|
|
159
|
+
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The bounding boxes corresponding to the SKU.
|
|
162
|
+
*/
|
|
163
|
+
boxes?: MerchandisePlacementDetectionLiteResponseBodyDataResultProductsBoxes[];
|
|
164
|
+
/**
|
|
165
|
+
* @remarks
|
|
166
|
+
* The recognition code, which is obtained by removing the trailing _ce from the recognition name.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* sku_test
|
|
170
|
+
*/
|
|
171
|
+
skuId?: string;
|
|
172
|
+
static names(): { [key: string]: string } {
|
|
173
|
+
return {
|
|
174
|
+
boxes: 'Boxes',
|
|
175
|
+
skuId: 'SkuId',
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
static types(): { [key: string]: any } {
|
|
180
|
+
return {
|
|
181
|
+
boxes: { 'type': 'array', 'itemType': MerchandisePlacementDetectionLiteResponseBodyDataResultProductsBoxes },
|
|
182
|
+
skuId: 'string',
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
validate() {
|
|
187
|
+
if(Array.isArray(this.boxes)) {
|
|
188
|
+
$dara.Model.validateArray(this.boxes);
|
|
189
|
+
}
|
|
190
|
+
super.validate();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
constructor(map?: { [key: string]: any }) {
|
|
194
|
+
super(map);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export class MerchandisePlacementDetectionLiteResponseBodyDataResult extends $dara.Model {
|
|
199
|
+
/**
|
|
200
|
+
* @remarks
|
|
201
|
+
* The supplementary element grounding results.
|
|
202
|
+
*/
|
|
203
|
+
grounding?: MerchandisePlacementDetectionLiteResponseBodyDataResultGrounding;
|
|
204
|
+
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* The product items.
|
|
207
|
+
*/
|
|
208
|
+
products?: MerchandisePlacementDetectionLiteResponseBodyDataResultProducts[];
|
|
209
|
+
/**
|
|
210
|
+
* @remarks
|
|
211
|
+
* The deduplicated list of SkuIds.
|
|
212
|
+
*/
|
|
213
|
+
skuIds?: string[];
|
|
214
|
+
/**
|
|
215
|
+
* @remarks
|
|
216
|
+
* The result type, which is fixed to sku.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* sku
|
|
220
|
+
*/
|
|
221
|
+
type?: string;
|
|
222
|
+
static names(): { [key: string]: string } {
|
|
223
|
+
return {
|
|
224
|
+
grounding: 'Grounding',
|
|
225
|
+
products: 'Products',
|
|
226
|
+
skuIds: 'SkuIds',
|
|
227
|
+
type: 'Type',
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
static types(): { [key: string]: any } {
|
|
232
|
+
return {
|
|
233
|
+
grounding: MerchandisePlacementDetectionLiteResponseBodyDataResultGrounding,
|
|
234
|
+
products: { 'type': 'array', 'itemType': MerchandisePlacementDetectionLiteResponseBodyDataResultProducts },
|
|
235
|
+
skuIds: { 'type': 'array', 'itemType': 'string' },
|
|
236
|
+
type: 'string',
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
validate() {
|
|
241
|
+
if(this.grounding && typeof (this.grounding as any).validate === 'function') {
|
|
242
|
+
(this.grounding as any).validate();
|
|
243
|
+
}
|
|
244
|
+
if(Array.isArray(this.products)) {
|
|
245
|
+
$dara.Model.validateArray(this.products);
|
|
246
|
+
}
|
|
247
|
+
if(Array.isArray(this.skuIds)) {
|
|
248
|
+
$dara.Model.validateArray(this.skuIds);
|
|
249
|
+
}
|
|
250
|
+
super.validate();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
constructor(map?: { [key: string]: any }) {
|
|
254
|
+
super(map);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export class MerchandisePlacementDetectionLiteResponseBodyData extends $dara.Model {
|
|
259
|
+
/**
|
|
260
|
+
* @remarks
|
|
261
|
+
* The result.
|
|
262
|
+
*/
|
|
263
|
+
result?: MerchandisePlacementDetectionLiteResponseBodyDataResult;
|
|
264
|
+
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The usage map. The value is {"ProcessingCount":1} for a successful call, and an empty object for a failed call.
|
|
267
|
+
*/
|
|
268
|
+
usageMap?: { [key: string]: number };
|
|
269
|
+
static names(): { [key: string]: string } {
|
|
270
|
+
return {
|
|
271
|
+
result: 'Result',
|
|
272
|
+
usageMap: 'UsageMap',
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
static types(): { [key: string]: any } {
|
|
277
|
+
return {
|
|
278
|
+
result: MerchandisePlacementDetectionLiteResponseBodyDataResult,
|
|
279
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
validate() {
|
|
284
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
285
|
+
(this.result as any).validate();
|
|
286
|
+
}
|
|
287
|
+
if(this.usageMap) {
|
|
288
|
+
$dara.Model.validateMap(this.usageMap);
|
|
289
|
+
}
|
|
290
|
+
super.validate();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
constructor(map?: { [key: string]: any }) {
|
|
294
|
+
super(map);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export class MerchandisePlacementDetectionLiteResponseBody extends $dara.Model {
|
|
299
|
+
/**
|
|
300
|
+
* @remarks
|
|
301
|
+
* The error code.
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* success
|
|
305
|
+
*/
|
|
306
|
+
code?: string;
|
|
307
|
+
/**
|
|
308
|
+
* @remarks
|
|
309
|
+
* The returned result.
|
|
310
|
+
*/
|
|
311
|
+
data?: MerchandisePlacementDetectionLiteResponseBodyData;
|
|
312
|
+
/**
|
|
313
|
+
* @remarks
|
|
314
|
+
* The response message or failure description.
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* Success
|
|
318
|
+
*/
|
|
319
|
+
message?: string;
|
|
320
|
+
/**
|
|
321
|
+
* @remarks
|
|
322
|
+
* The request ID.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
326
|
+
*/
|
|
327
|
+
requestId?: string;
|
|
328
|
+
/**
|
|
329
|
+
* @remarks
|
|
330
|
+
* Indicates whether the call is successful.
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* True
|
|
334
|
+
*/
|
|
335
|
+
success?: boolean;
|
|
336
|
+
static names(): { [key: string]: string } {
|
|
337
|
+
return {
|
|
338
|
+
code: 'Code',
|
|
339
|
+
data: 'Data',
|
|
340
|
+
message: 'Message',
|
|
341
|
+
requestId: 'RequestId',
|
|
342
|
+
success: 'Success',
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
static types(): { [key: string]: any } {
|
|
347
|
+
return {
|
|
348
|
+
code: 'string',
|
|
349
|
+
data: MerchandisePlacementDetectionLiteResponseBodyData,
|
|
350
|
+
message: 'string',
|
|
351
|
+
requestId: 'string',
|
|
352
|
+
success: 'boolean',
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
validate() {
|
|
357
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
358
|
+
(this.data as any).validate();
|
|
359
|
+
}
|
|
360
|
+
super.validate();
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
constructor(map?: { [key: string]: any }) {
|
|
364
|
+
super(map);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionProRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTPS URL of the display image to detect.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/image.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The detection rule. When non-empty, this value takes priority as the model prompt.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* Identify all Genki Forest beverages on the shelf and mark their positions
|
|
22
|
+
*/
|
|
23
|
+
rule?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The product type. This parameter must be set to Genki Forest when Rule is empty.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* 元气森林
|
|
30
|
+
*/
|
|
31
|
+
type?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
imageUrl: 'ImageUrl',
|
|
35
|
+
rule: 'Rule',
|
|
36
|
+
type: 'Type',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static types(): { [key: string]: any } {
|
|
41
|
+
return {
|
|
42
|
+
imageUrl: 'string',
|
|
43
|
+
rule: 'string',
|
|
44
|
+
type: 'string',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { MerchandisePlacementDetectionProResponseBody } from "./MerchandisePlacementDetectionProResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MerchandisePlacementDetectionProResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: MerchandisePlacementDetectionProResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: MerchandisePlacementDetectionProResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionProResponseBodyDataData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The normalized bounding box coordinates [x1,y1,x2,y2], with values in the range 0–1000.
|
|
9
|
+
*/
|
|
10
|
+
bbox2d?: number[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The detected product name. The value is unknown if the name cannot be determined.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* unknown
|
|
17
|
+
*/
|
|
18
|
+
detectedSkuName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The bounding box index, starting from 1.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* 1
|
|
25
|
+
*/
|
|
26
|
+
idx?: number;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
bbox2d: 'Bbox2d',
|
|
30
|
+
detectedSkuName: 'DetectedSkuName',
|
|
31
|
+
idx: 'Idx',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
bbox2d: { 'type': 'array', 'itemType': 'number' },
|
|
38
|
+
detectedSkuName: 'string',
|
|
39
|
+
idx: 'number',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.bbox2d)) {
|
|
45
|
+
$dara.Model.validateArray(this.bbox2d);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class MerchandisePlacementDetectionProResponseBodyData extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The number of valid bounding boxes.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* 3
|
|
62
|
+
*/
|
|
63
|
+
boxCount?: number;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The list of per-box detection details.
|
|
67
|
+
*/
|
|
68
|
+
data?: MerchandisePlacementDetectionProResponseBodyDataData[];
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The usage information.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* {"ProcessingCount":1}
|
|
75
|
+
*/
|
|
76
|
+
usageMap?: { [key: string]: number };
|
|
77
|
+
static names(): { [key: string]: string } {
|
|
78
|
+
return {
|
|
79
|
+
boxCount: 'BoxCount',
|
|
80
|
+
data: 'Data',
|
|
81
|
+
usageMap: 'UsageMap',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
boxCount: 'number',
|
|
88
|
+
data: { 'type': 'array', 'itemType': MerchandisePlacementDetectionProResponseBodyDataData },
|
|
89
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(Array.isArray(this.data)) {
|
|
95
|
+
$dara.Model.validateArray(this.data);
|
|
96
|
+
}
|
|
97
|
+
if(this.usageMap) {
|
|
98
|
+
$dara.Model.validateMap(this.usageMap);
|
|
99
|
+
}
|
|
100
|
+
super.validate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class MerchandisePlacementDetectionProResponseBody extends $dara.Model {
|
|
109
|
+
/**
|
|
110
|
+
* @remarks
|
|
111
|
+
* The error code.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* success
|
|
115
|
+
*/
|
|
116
|
+
code?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The detection result of product display detection Pro.
|
|
120
|
+
*/
|
|
121
|
+
data?: MerchandisePlacementDetectionProResponseBodyData;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The response message or failure description.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* Success
|
|
128
|
+
*/
|
|
129
|
+
message?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The request ID.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
136
|
+
*/
|
|
137
|
+
requestId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* Indicates whether the call is successful.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* True
|
|
144
|
+
*/
|
|
145
|
+
success?: boolean;
|
|
146
|
+
static names(): { [key: string]: string } {
|
|
147
|
+
return {
|
|
148
|
+
code: 'Code',
|
|
149
|
+
data: 'Data',
|
|
150
|
+
message: 'Message',
|
|
151
|
+
requestId: 'RequestId',
|
|
152
|
+
success: 'Success',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static types(): { [key: string]: any } {
|
|
157
|
+
return {
|
|
158
|
+
code: 'string',
|
|
159
|
+
data: MerchandisePlacementDetectionProResponseBodyData,
|
|
160
|
+
message: 'string',
|
|
161
|
+
requestId: 'string',
|
|
162
|
+
success: 'boolean',
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
validate() {
|
|
167
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
168
|
+
(this.data as any).validate();
|
|
169
|
+
}
|
|
170
|
+
super.validate();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under
|
|
8
|
+
* Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under Intelligent Inspection > API Management > My API.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* api_xxx
|
|
@@ -13,7 +13,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
13
13
|
apiId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The URL of the shelf or floor
|
|
16
|
+
* The URL of the original shelf or floor stack image to be recognized (accessible over the Internet or through OSS).
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -23,19 +23,26 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The ID of the customer-specific SKU vector library, which determines which library is used for
|
|
26
|
+
* The ID of the customer-specific SKU vector library, which determines which library is used for retrieval. The library must be created in advance through the library creation process.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* rag_xxx
|
|
30
30
|
*/
|
|
31
31
|
ragId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The custom rule. Enter a detection prompt as the workflow input parameter rule. When this parameter is specified, the type parameter is not required (a dedicated rule branch is used). If Rule is empty, you must specify Type to start detection.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* Please identify all visible beverage products in the image and return only a JSON array. Output format example: [{"bbox_2d":[100,200,250,600],"sku_name":"Coca-Cola"}]
|
|
38
|
+
*/
|
|
32
39
|
rule?: string;
|
|
33
40
|
/**
|
|
34
41
|
* @remarks
|
|
35
|
-
* The business type (reserved for future routing by business line). The current release supports skincare.
|
|
42
|
+
* The business type (reserved for future routing by business line). The current release supports skincare & lotion.
|
|
36
43
|
*
|
|
37
44
|
* @example
|
|
38
|
-
*
|
|
45
|
+
* 水乳
|
|
39
46
|
*/
|
|
40
47
|
type?: string;
|
|
41
48
|
static names(): { [key: string]: string } {
|