@alicloud/aidge20260428 5.12.2 → 5.14.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 +774 -630
- package/dist/client.js +863 -630
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +65 -8
- package/dist/models/AiTryOnRequest.js +10 -0
- package/dist/models/AiTryOnRequest.js.map +1 -1
- package/dist/models/AiTryOnResponseBody.d.ts +8 -8
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +3 -0
- package/dist/models/CategoryAttributeMatchResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +10 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +11 -17
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +4 -4
- package/dist/models/GenerateProductContentRequest.d.ts +11 -13
- package/dist/models/GenerateProductContentRequest.js.map +1 -1
- package/dist/models/GenerateProductContentResponseBody.d.ts +9 -7
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -1
- package/dist/models/ImageMattingAsyncRequest.d.ts +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +14 -11
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +14 -11
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemovalProResponseBody.d.ts +3 -0
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +19 -8
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +8 -6
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +19 -8
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +11 -11
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +10 -10
- package/dist/models/ImageUpscaleRequest.d.ts +1 -1
- package/dist/models/ImageUpscaleResponseBody.d.ts +7 -7
- package/dist/models/MaterialInspectionRequest.d.ts +4 -4
- package/dist/models/MaterialInspectionResponseBody.d.ts +9 -9
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +15 -12
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +5 -5
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +6 -6
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +7 -7
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +19 -19
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +1 -1
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +11 -11
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +1 -1
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +16 -10
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -1
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +7 -7
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +12 -9
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -1
- package/dist/models/PrepaidTextTranslateRequest.d.ts +8 -8
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +11 -8
- package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -1
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +8 -8
- package/dist/models/ProductVideoGenerationRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationRequest.js +71 -0
- package/dist/models/ProductVideoGenerationRequest.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponse.d.ts +19 -0
- package/dist/models/ProductVideoGenerationResponse.js +69 -0
- package/dist/models/ProductVideoGenerationResponse.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponseBody.d.ts +86 -0
- package/dist/models/ProductVideoGenerationResponseBody.js +92 -0
- package/dist/models/ProductVideoGenerationResponseBody.js.map +1 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js +68 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +3 -3
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +7 -5
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +3 -3
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +1 -1
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +9 -6
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -1
- package/dist/models/SubmitProductMatchRequest.d.ts +8 -8
- package/dist/models/SubmitProductMatchResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateAsyncRequest.d.ts +9 -9
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +6 -6
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +9 -9
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +3 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -1
- package/dist/models/VacancyDetectionRequest.d.ts +39 -0
- package/dist/models/VacancyDetectionRequest.js +62 -0
- package/dist/models/VacancyDetectionRequest.js.map +1 -0
- package/dist/models/VacancyDetectionResponse.d.ts +19 -0
- package/dist/models/VacancyDetectionResponse.js +69 -0
- package/dist/models/VacancyDetectionResponse.js.map +1 -0
- package/dist/models/VacancyDetectionResponseBody.d.ts +83 -0
- package/dist/models/VacancyDetectionResponseBody.js +93 -0
- package/dist/models/VacancyDetectionResponseBody.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +18 -17
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +2 -2
- package/dist/models/VideoTranslationRequest.d.ts +8 -17
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -6
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +8 -17
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/VirtualTryOnResponseBody.d.ts +7 -6
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +23 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +882 -630
- package/src/models/AddDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/AiTryOnRequest.ts +75 -8
- package/src/models/AiTryOnResponseBody.ts +8 -8
- package/src/models/CategoryAttributeMatchResponseBody.ts +3 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/DocumentTranslateRequest.ts +10 -7
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +11 -17
- package/src/models/EcomVideoRecreationResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +4 -4
- package/src/models/GenerateProductContentRequest.ts +11 -13
- package/src/models/GenerateProductContentResponseBody.ts +9 -7
- package/src/models/ImageMattingAsyncRequest.ts +1 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +2 -2
- package/src/models/ImageRecognitionAsyncRequest.ts +14 -11
- package/src/models/ImageRecognitionAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +14 -11
- package/src/models/ImageRemovalProAsyncRequest.ts +1 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +5 -7
- package/src/models/ImageRemovalProResponseBody.ts +3 -0
- package/src/models/ImageRemoveAsyncRequest.ts +19 -8
- package/src/models/ImageRemoveAsyncResponseBody.ts +8 -6
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +19 -8
- package/src/models/ImageTranslationPlusAsyncRequest.ts +11 -11
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationProAsyncRequest.ts +5 -5
- package/src/models/ImageTranslationProAsyncResponseBody.ts +1 -1
- package/src/models/ImageTranslationStandardAsyncRequest.ts +1 -1
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +10 -10
- package/src/models/ImageUpscaleRequest.ts +1 -1
- package/src/models/ImageUpscaleResponseBody.ts +7 -7
- package/src/models/MaterialInspectionRequest.ts +4 -4
- package/src/models/MaterialInspectionResponseBody.ts +9 -9
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +15 -12
- package/src/models/MerchandisePlacementDetectionProRequest.ts +5 -5
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +6 -6
- package/src/models/MerchandisePlacementDetectionRequest.ts +7 -7
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +19 -19
- package/src/models/MerchandisePriceTagDetectionRequest.ts +1 -1
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +11 -11
- package/src/models/MerchandiseSceneDetectionRequest.ts +1 -1
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +16 -10
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +7 -7
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +12 -9
- package/src/models/PrepaidTextTranslateRequest.ts +8 -8
- package/src/models/PrepaidTextTranslateResponseBody.ts +11 -8
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +8 -8
- package/src/models/ProductVideoGenerationRequest.ts +88 -0
- package/src/models/ProductVideoGenerationResponse.ts +40 -0
- package/src/models/ProductVideoGenerationResponseBody.ts +124 -0
- package/src/models/ProductVideoGenerationShrinkRequest.ts +85 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +3 -3
- package/src/models/SizeChartExtractAsyncResponseBody.ts +7 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +3 -3
- package/src/models/StorefrontSceneRecognitionRequest.ts +1 -1
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +9 -6
- package/src/models/SubmitProductMatchRequest.ts +8 -8
- package/src/models/SubmitProductMatchResponseBody.ts +7 -7
- package/src/models/TextTranslateAsyncRequest.ts +9 -9
- package/src/models/TextTranslateAsyncResponseBody.ts +6 -6
- package/src/models/TextTranslateAsyncShrinkRequest.ts +9 -9
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +3 -0
- package/src/models/VacancyDetectionRequest.ts +56 -0
- package/src/models/VacancyDetectionResponse.ts +40 -0
- package/src/models/VacancyDetectionResponseBody.ts +120 -0
- package/src/models/VideoGenerationRequest.ts +18 -17
- package/src/models/VideoGenerationResponseBody.ts +2 -2
- package/src/models/VideoTranslationRequest.ts +8 -17
- package/src/models/VideoTranslationResponseBody.ts +4 -6
- package/src/models/VideoTranslationShrinkRequest.ts +8 -17
- package/src/models/VirtualTryOnResponseBody.ts +7 -6
- package/src/models/model.ts +9 -0
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller. It is recorded upon acceptance and returned as is when
|
|
5
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -20,17 +20,23 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The types of elements to
|
|
23
|
+
* The types of elements to detect outside the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* [1,2,3,4]
|
|
24
27
|
*/
|
|
25
28
|
nonObjectDetectElements?: number[];
|
|
26
29
|
/**
|
|
27
30
|
* @remarks
|
|
28
|
-
* The types of elements to
|
|
31
|
+
* The types of elements to detect on the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* [1,2,3,4]
|
|
29
35
|
*/
|
|
30
36
|
objectDetectElements?: number[];
|
|
31
37
|
/**
|
|
32
38
|
* @remarks
|
|
33
|
-
* Specifies whether to return the marginalization distance of the subject. Valid values: 1
|
|
39
|
+
* Specifies whether to return the marginalization distance of the subject. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
34
40
|
*
|
|
35
41
|
* @example
|
|
36
42
|
* 1
|
|
@@ -38,7 +44,7 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
38
44
|
returnBorderPixel?: number;
|
|
39
45
|
/**
|
|
40
46
|
* @remarks
|
|
41
|
-
* Specifies whether to return the OCR
|
|
47
|
+
* Specifies whether to return the OCR results of the text in the recognized area. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
42
48
|
*
|
|
43
49
|
* @example
|
|
44
50
|
* 1
|
|
@@ -46,10 +52,7 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
46
52
|
returnCharacter?: number;
|
|
47
53
|
/**
|
|
48
54
|
* @remarks
|
|
49
|
-
* Specifies whether to return the text proportion. Valid values: 1
|
|
50
|
-
* This parameter takes effect only when the following two conditions are met:
|
|
51
|
-
* 1. ReturnCharacter is set to 1.
|
|
52
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
55
|
+
* Specifies whether to return the text proportion. Valid values: 1 (yes) and 0 (no). Default value: 0. This parameter takes effect only when the following conditions are met: 1. ReturnCharacter is set to 1. 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
53
56
|
*
|
|
54
57
|
* @example
|
|
55
58
|
* 1
|
|
@@ -57,7 +60,7 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
57
60
|
returnCharacterProp?: number;
|
|
58
61
|
/**
|
|
59
62
|
* @remarks
|
|
60
|
-
* Specifies whether to return the number of subjects. Valid values: 1
|
|
63
|
+
* Specifies whether to return the number of subjects. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
61
64
|
*
|
|
62
65
|
* @example
|
|
63
66
|
* 1
|
|
@@ -65,7 +68,7 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
65
68
|
returnProductNum?: number;
|
|
66
69
|
/**
|
|
67
70
|
* @remarks
|
|
68
|
-
* Specifies whether to return the area proportion of the subject. Valid values: 1
|
|
71
|
+
* Specifies whether to return the area proportion of the subject. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
69
72
|
*
|
|
70
73
|
* @example
|
|
71
74
|
* 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRecognitionAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRecognitionAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IA2E3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,iBAAiB,EAAE,mBAAmB;YACtC,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,qBAAqB;YAC1C,gBAAgB,EAAE,kBAAkB;YACpC,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClE,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/D,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,QAAQ;YACzB,mBAAmB,EAAE,QAAQ;YAC7B,gBAAgB,EAAE,QAAQ;YAC1B,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC1D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApHD,oEAoHC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The task ID used to query the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -30,12 +30,12 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The returned struct
|
|
33
|
+
* The returned result struct.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageRecognitionAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as The parameter contains sensitive information. Try another input.
|
|
38
|
+
* The error message, such as "The parameter contains sensitive information. Try another input."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID
|
|
46
|
+
* The request ID, which is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,7 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful. Valid values: true
|
|
54
|
+
* Indicates whether the call is successful. Valid values: true (successful) and false (failed).
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* True
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller. It is recorded upon acceptance and returned as is when
|
|
5
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -20,17 +20,23 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The types of elements to
|
|
23
|
+
* The types of elements to detect outside the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* [1,2,3,4]
|
|
24
27
|
*/
|
|
25
28
|
nonObjectDetectElementsShrink?: string;
|
|
26
29
|
/**
|
|
27
30
|
* @remarks
|
|
28
|
-
* The types of elements to
|
|
31
|
+
* The types of elements to detect on the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* [1,2,3,4]
|
|
29
35
|
*/
|
|
30
36
|
objectDetectElementsShrink?: string;
|
|
31
37
|
/**
|
|
32
38
|
* @remarks
|
|
33
|
-
* Specifies whether to return the marginalization distance of the subject. Valid values: 1
|
|
39
|
+
* Specifies whether to return the marginalization distance of the subject. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
34
40
|
*
|
|
35
41
|
* @example
|
|
36
42
|
* 1
|
|
@@ -38,7 +44,7 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
38
44
|
returnBorderPixel?: number;
|
|
39
45
|
/**
|
|
40
46
|
* @remarks
|
|
41
|
-
* Specifies whether to return the OCR
|
|
47
|
+
* Specifies whether to return the OCR results of the text in the recognized area. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
42
48
|
*
|
|
43
49
|
* @example
|
|
44
50
|
* 1
|
|
@@ -46,10 +52,7 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
46
52
|
returnCharacter?: number;
|
|
47
53
|
/**
|
|
48
54
|
* @remarks
|
|
49
|
-
* Specifies whether to return the text proportion. Valid values: 1
|
|
50
|
-
* This parameter takes effect only when the following two conditions are met:
|
|
51
|
-
* 1. ReturnCharacter is set to 1.
|
|
52
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
55
|
+
* Specifies whether to return the text proportion. Valid values: 1 (yes) and 0 (no). Default value: 0. This parameter takes effect only when the following conditions are met: 1. ReturnCharacter is set to 1. 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
53
56
|
*
|
|
54
57
|
* @example
|
|
55
58
|
* 1
|
|
@@ -57,7 +60,7 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
57
60
|
returnCharacterProp?: number;
|
|
58
61
|
/**
|
|
59
62
|
* @remarks
|
|
60
|
-
* Specifies whether to return the number of subjects. Valid values: 1
|
|
63
|
+
* Specifies whether to return the number of subjects. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
61
64
|
*
|
|
62
65
|
* @example
|
|
63
66
|
* 1
|
|
@@ -65,7 +68,7 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
65
68
|
returnProductNum?: number;
|
|
66
69
|
/**
|
|
67
70
|
* @remarks
|
|
68
|
-
* Specifies whether to return the area proportion of the subject. Valid values: 1
|
|
71
|
+
* Specifies whether to return the area proportion of the subject. Valid values: 1 (yes) and 0 (no). Default value: 0.
|
|
69
72
|
*
|
|
70
73
|
* @example
|
|
71
74
|
* 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRecognitionAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRecognitionAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA2EjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,iBAAiB,EAAE,mBAAmB;YACtC,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,qBAAqB;YAC1C,gBAAgB,EAAE,kBAAkB;YACpC,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,QAAQ;YACzB,mBAAmB,EAAE,QAAQ;YAC7B,gBAAgB,EAAE,QAAQ;YAC1B,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9GD,gFA8GC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business ID of the caller.
|
|
5
|
+
* The business ID of the caller. It is recorded when the request is accepted and returned as is when you query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The ID of the task used to query the asynchronous task
|
|
5
|
+
* The ID of the task, which is used to query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The error code. This parameter is not returned
|
|
25
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -35,7 +35,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
35
35
|
data?: ImageRemovalProAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message. This parameter is not returned
|
|
38
|
+
* The error message. This parameter is not returned if the call is successful. Example: "The parameters contain sensitive information. Try another input."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The
|
|
46
|
+
* The ID of the request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,9 +51,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful. Valid values:
|
|
55
|
-
* - true: The call is successful.
|
|
56
|
-
* - false: The call fails.
|
|
54
|
+
* Indicates whether the call is successful. Valid values: true and false.
|
|
57
55
|
*
|
|
58
56
|
* @example
|
|
59
57
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAsC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,4EAoEC"}
|
|
@@ -19,6 +19,9 @@ export declare class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
21
|
* The usage details. This parameter is returned in synchronous mode.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* {"ProcessedImageCount":1}
|
|
22
25
|
*/
|
|
23
26
|
usageMap?: {
|
|
24
27
|
[key: string]: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemovalProResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemovalProResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAyB9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SACxE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnDD,0EAmDC;AAED,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAwC1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,+BAA+B;YACrC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,kEAsEC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller.
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256
|
|
13
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256×256 and 3000×3000 pixels, and the file size cannot exceed 10 MB.
|
|
14
14
|
*
|
|
15
15
|
* This parameter is required.
|
|
16
16
|
*
|
|
@@ -20,7 +20,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The specific area to remove. This parameter must be used in
|
|
23
|
+
* The specific area to remove. This parameter must be used in combination with the editor, and the input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
|
|
@@ -28,17 +28,28 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
28
28
|
mask?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The
|
|
31
|
+
* The types of elements to remove from the image background.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* [1,2,4]
|
|
32
35
|
*/
|
|
33
36
|
nonObjectRemoveElements?: number[];
|
|
34
37
|
/**
|
|
35
38
|
* @remarks
|
|
36
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
39
|
+
* The types of elements to remove from the image subject. Valid values:
|
|
40
|
+
* - 1: Transparent text blocks.
|
|
41
|
+
* - 2: Specific names.
|
|
42
|
+
* - 3: Text.
|
|
43
|
+
* - 4: Watermarks.
|
|
44
|
+
* You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* [1,2,4]
|
|
37
48
|
*/
|
|
38
49
|
objectRemoveElements?: number[];
|
|
39
50
|
/**
|
|
40
51
|
* @remarks
|
|
41
|
-
* The specific area to remove. This parameter must be used in
|
|
52
|
+
* The specific area to remove. This parameter must be used in combination with the editor, and the input format is four-point coordinates [xx,yy,zz,dd]. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
42
53
|
*
|
|
43
54
|
* @example
|
|
44
55
|
* [10,20,100,200]
|
|
@@ -46,12 +57,12 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
46
57
|
position?: string;
|
|
47
58
|
/**
|
|
48
59
|
* @remarks
|
|
49
|
-
* The
|
|
60
|
+
* The URLs of user-specified image elements to remove.
|
|
50
61
|
*/
|
|
51
62
|
userImage?: string[];
|
|
52
63
|
/**
|
|
53
64
|
* @remarks
|
|
54
|
-
* The
|
|
65
|
+
* The user-specified text strings to remove.
|
|
55
66
|
*/
|
|
56
67
|
userText?: string[];
|
|
57
68
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAkEtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAClE,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC/D,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACpD,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;SACpD,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC;YAC/C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC1D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC5C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACvD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/GD,0DA+GC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The task ID used to query the asynchronous task
|
|
5
|
+
* The task ID, which is used to query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The status code, such as success.
|
|
25
|
+
* The status code, such as "success". This parameter is not returned for successful calls.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -30,12 +30,12 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The returned result struct
|
|
33
|
+
* The returned result struct.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageRemoveAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as
|
|
38
|
+
* The error message, such as "The parameters contain sensitive information. Try another input."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The request ID, which is used to identify a unique request
|
|
46
|
+
* The request ID, which is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,9 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful. Valid values:
|
|
54
|
+
* Indicates whether the call is successful. Valid values:
|
|
55
|
+
* - true: The call is successful.
|
|
56
|
+
* - false: The call fails.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,4EA4BC;AAED,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAwC3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,gCAAgC;YACtC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,oEAsEC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order ID of the caller.
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256
|
|
13
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256×256 and 3000×3000 pixels, and the file size cannot exceed 10 MB.
|
|
14
14
|
*
|
|
15
15
|
* This parameter is required.
|
|
16
16
|
*
|
|
@@ -20,7 +20,7 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
20
20
|
imageUrl?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The specific area to remove. This parameter must be used in
|
|
23
|
+
* The specific area to remove. This parameter must be used in combination with the editor, and the input format is RLE. If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
|
|
@@ -28,17 +28,28 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
28
28
|
mask?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The
|
|
31
|
+
* The types of elements to remove from the image background.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* [1,2,4]
|
|
32
35
|
*/
|
|
33
36
|
nonObjectRemoveElementsShrink?: string;
|
|
34
37
|
/**
|
|
35
38
|
* @remarks
|
|
36
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
39
|
+
* The types of elements to remove from the image subject. Valid values:
|
|
40
|
+
* - 1: Transparent text blocks.
|
|
41
|
+
* - 2: Specific names.
|
|
42
|
+
* - 3: Text.
|
|
43
|
+
* - 4: Watermarks.
|
|
44
|
+
* You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* [1,2,4]
|
|
37
48
|
*/
|
|
38
49
|
objectRemoveElementsShrink?: string;
|
|
39
50
|
/**
|
|
40
51
|
* @remarks
|
|
41
|
-
* The specific area to remove. This parameter must be used in
|
|
52
|
+
* The specific area to remove. This parameter must be used in combination with the editor, and the input format is four-point coordinates [xx,yy,zz,dd]. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
42
53
|
*
|
|
43
54
|
* @example
|
|
44
55
|
* [10,20,100,200]
|
|
@@ -46,12 +57,12 @@ export declare class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
46
57
|
position?: string;
|
|
47
58
|
/**
|
|
48
59
|
* @remarks
|
|
49
|
-
* The
|
|
60
|
+
* The URLs of user-specified image elements to remove.
|
|
50
61
|
*/
|
|
51
62
|
userImageShrink?: string;
|
|
52
63
|
/**
|
|
53
64
|
* @remarks
|
|
54
|
-
* The
|
|
65
|
+
* The user-specified text strings to remove.
|
|
55
66
|
*/
|
|
56
67
|
userTextShrink?: string;
|
|
57
68
|
static names(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAkE5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,WAAW;YAC5B,cAAc,EAAE,UAAU;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,sEAmGC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The business order
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as is when you query the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* order-20260928-001
|
|
@@ -10,7 +10,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
10
10
|
bizId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The ID of the intervention glossary.
|
|
13
|
+
* The ID of the intervention glossary. You must create the intervention glossary separately and provide its ID in the input parameters. If the provided intervention glossary ID is empty, the translation results are not modified.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* glossary_1
|
|
@@ -18,10 +18,10 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
18
18
|
glossary?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* • Image URL: The image must be accessible over the Internet.
|
|
22
|
+
* • Format: PNG, JPEG, JPG, BMP, or WEBP.
|
|
23
|
+
* • Pixel: The width and height do not exceed 4,000 pixels.
|
|
24
|
+
* • File size: The original file size is less than or equal to 10 MB.
|
|
25
25
|
*
|
|
26
26
|
* This parameter is required.
|
|
27
27
|
*
|
|
@@ -31,7 +31,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
31
31
|
imageUrl?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* Specifies whether to translate the text on the image subject. This helps you protect information and
|
|
34
|
+
* Specifies whether to translate the text on the image subject. This helps you protect information and prevents embedded information such as product names from being translated. In the sample image, the text in the red box represents the text on the subject, and the text in the blue box represents the text not on the subject. Default value: false.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* false
|
|
@@ -49,7 +49,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
49
49
|
sourceLanguage?: string;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* The target language code. We recommend
|
|
52
|
+
* The target language code. We recommend that you use the 12 minor language pairs listed above.
|
|
53
53
|
*
|
|
54
54
|
* This parameter is required.
|
|
55
55
|
*
|
|
@@ -59,7 +59,7 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
59
59
|
targetLanguage?: string;
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
* Specifies whether to translate the brand names in the image. This helps you protect brand name information from being translated. Default value: false, which indicates that brand names are not translated. In the
|
|
62
|
+
* Specifies whether to translate the brand names in the image. This helps you protect the brand name information from being translated. Default value: false, which indicates that brand names are not translated. In the sample image, Lazy Corner represents a brand name.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* false
|
|
@@ -67,10 +67,10 @@ export declare class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
67
67
|
translatingBrandInTheProduct?: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when
|
|
70
|
+
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when you integrate the image editor for secondary editing. You can call the image translation result query API operation to obtain the complete parameter information.
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
*
|
|
73
|
+
* true
|
|
74
74
|
*/
|
|
75
75
|
useImageEditor?: boolean;
|
|
76
76
|
static names(): {
|