@alicloud/aidge20260428 5.3.0 → 5.3.2
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 +598 -534
- package/dist/client.js +616 -534
- package/dist/client.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +10 -10
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +5 -5
- package/dist/models/AssetOptimizeProRequest.d.ts +6 -6
- package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +6 -6
- package/dist/models/CategoryAttributeMatchRequest.d.ts +7 -7
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +7 -7
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +7 -7
- package/dist/models/CategoryMatchRequest.d.ts +8 -8
- package/dist/models/CategoryMatchResponseBody.d.ts +10 -10
- package/dist/models/DiduiAreaDeductionRequest.d.ts +22 -0
- package/dist/models/DiduiAreaDeductionRequest.js.map +1 -1
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +63 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -1
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +10 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +6 -2
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +4 -3
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageCroppingRequest.d.ts +3 -3
- package/dist/models/ImageCroppingResponseBody.d.ts +10 -8
- package/dist/models/ImageCroppingResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +4 -3
- package/dist/models/ImageMattingRequest.js.map +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +1 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemoveRequest.d.ts +39 -17
- package/dist/models/ImageRemoveRequest.js +12 -0
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +9 -8
- package/dist/models/ImageRemoveResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveShrinkRequest.d.ts +39 -17
- package/dist/models/ImageRemoveShrinkRequest.js +6 -0
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -1
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +14 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
- package/dist/models/ImageTranslationStandardRequest.d.ts +9 -6
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/LanguageDetectRequest.d.ts +10 -2
- package/dist/models/LanguageDetectRequest.js +2 -0
- package/dist/models/LanguageDetectRequest.js.map +1 -1
- package/dist/models/LanguageDetectResponseBody.d.ts +4 -6
- package/dist/models/LanguageDetectResponseBody.js.map +1 -1
- package/dist/models/MaterialInspectionRequest.d.ts +5 -5
- package/dist/models/MaterialInspectionResponseBody.d.ts +14 -7
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +4 -4
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +8 -8
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +2 -2
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +6 -6
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +5 -5
- package/dist/models/SizeChartDetectResponseBody.d.ts +1 -0
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
- package/dist/models/SizeChartExtractRequest.d.ts +2 -2
- package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
- package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
- package/dist/models/TextCorrectRequest.d.ts +2 -2
- package/dist/models/TextCorrectResponseBody.d.ts +6 -6
- package/dist/models/TextTranslateRequest.d.ts +15 -6
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +4 -4
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -6
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +3 -3
- package/dist/models/VisionFlowRequest.d.ts +16 -16
- package/dist/models/VisionFlowResponseBody.d.ts +4 -4
- package/dist/models/VisionFlowShrinkRequest.d.ts +16 -16
- package/package.json +1 -1
- package/src/client.ts +622 -534
- package/src/models/AssetOptimizeLiteRequest.ts +10 -10
- package/src/models/AssetOptimizeLiteResponseBody.ts +5 -5
- package/src/models/AssetOptimizeProRequest.ts +6 -6
- package/src/models/AssetOptimizeProResponseBody.ts +4 -4
- package/src/models/AssetOptimizeProShrinkRequest.ts +6 -6
- package/src/models/CategoryAttributeMatchRequest.ts +7 -7
- package/src/models/CategoryAttributeMatchResponseBody.ts +7 -7
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +7 -7
- package/src/models/CategoryMatchRequest.ts +8 -8
- package/src/models/CategoryMatchResponseBody.ts +10 -10
- package/src/models/DiduiAreaDeductionRequest.ts +22 -0
- package/src/models/DiduiAreaDeductionResponseBody.ts +63 -0
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +10 -0
- package/src/models/DocumentTranslateRequest.ts +6 -2
- package/src/models/DocumentTranslateResponseBody.ts +4 -3
- package/src/models/ImageCroppingRequest.ts +3 -3
- package/src/models/ImageCroppingResponseBody.ts +10 -8
- package/src/models/ImageMattingRequest.ts +4 -3
- package/src/models/ImageMattingResponseBody.ts +1 -0
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +2 -2
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemoveRequest.ts +51 -17
- package/src/models/ImageRemoveResponseBody.ts +9 -8
- package/src/models/ImageRemoveShrinkRequest.ts +45 -17
- package/src/models/ImageTranslationPlusResponseBody.ts +3 -1
- package/src/models/ImageTranslationProRequest.ts +14 -8
- package/src/models/ImageTranslationProResponseBody.ts +19 -19
- package/src/models/ImageTranslationStandardRequest.ts +9 -6
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/LanguageDetectRequest.ts +12 -2
- package/src/models/LanguageDetectResponseBody.ts +4 -6
- package/src/models/MaterialInspectionRequest.ts +5 -5
- package/src/models/MaterialInspectionResponseBody.ts +14 -7
- package/src/models/MerchandisePlacementDetectionRequest.ts +4 -4
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +8 -8
- package/src/models/PackageWeightSizeCheckRequest.ts +2 -2
- package/src/models/PackageWeightSizeCheckResponseBody.ts +6 -6
- package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
- package/src/models/SizeChartDetectResponseBody.ts +1 -0
- package/src/models/SizeChartExtractRequest.ts +2 -2
- package/src/models/SizeChartExtractResponseBody.ts +1 -1
- package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
- package/src/models/TextCorrectRequest.ts +2 -2
- package/src/models/TextCorrectResponseBody.ts +6 -6
- package/src/models/TextTranslateRequest.ts +15 -6
- package/src/models/TextTranslateResponseBody.ts +4 -4
- package/src/models/TextTranslateShrinkRequest.ts +15 -6
- package/src/models/VideoTranslationResponseBody.ts +3 -3
- package/src/models/VisionFlowRequest.ts +16 -16
- package/src/models/VisionFlowResponseBody.ts +4 -4
- package/src/models/VisionFlowShrinkRequest.ts +16 -16
|
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The floor display area, in square meters.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 1.5334
|
|
9
12
|
*/
|
|
10
13
|
areaM2?: number;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The left edge length, in meters.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* 1.025
|
|
14
20
|
*/
|
|
15
21
|
leftEdgeM?: number;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The right edge length, in meters.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* 1.419
|
|
19
28
|
*/
|
|
@@ -44,6 +53,10 @@ export class DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel extends $da
|
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
export class DiduiAreaDeductionResponseBodyDataResult extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The stage 4 area label.
|
|
59
|
+
*/
|
|
47
60
|
stage4AreaLabel?: DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel;
|
|
48
61
|
static names(): { [key: string]: string } {
|
|
49
62
|
return {
|
|
@@ -71,52 +84,86 @@ export class DiduiAreaDeductionResponseBodyDataResult extends $dara.Model {
|
|
|
71
84
|
|
|
72
85
|
export class DiduiAreaDeductionResponseBodyData extends $dara.Model {
|
|
73
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The number of downstream call attempts.
|
|
89
|
+
*
|
|
74
90
|
* @example
|
|
75
91
|
* 1
|
|
76
92
|
*/
|
|
77
93
|
attempts?: number;
|
|
78
94
|
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The workflow error code.
|
|
97
|
+
*
|
|
79
98
|
* @example
|
|
80
99
|
* success
|
|
81
100
|
*/
|
|
82
101
|
code?: string;
|
|
83
102
|
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* The downstream HTTP status code.
|
|
105
|
+
*
|
|
84
106
|
* @example
|
|
85
107
|
* OK
|
|
86
108
|
*/
|
|
87
109
|
httpStatus?: number;
|
|
88
110
|
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The downstream call latency, in milliseconds.
|
|
113
|
+
*
|
|
89
114
|
* @example
|
|
90
115
|
* 1000
|
|
91
116
|
*/
|
|
92
117
|
latencyMs?: number;
|
|
93
118
|
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* The workflow description message.
|
|
121
|
+
*
|
|
94
122
|
* @example
|
|
95
123
|
* Success
|
|
96
124
|
*/
|
|
97
125
|
message?: string;
|
|
98
126
|
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The model request ID.
|
|
129
|
+
*
|
|
99
130
|
* @example
|
|
100
131
|
* model_req_id_xx
|
|
101
132
|
*/
|
|
102
133
|
modelRequestId?: string;
|
|
103
134
|
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The business request ID.
|
|
137
|
+
*
|
|
104
138
|
* @example
|
|
105
139
|
* 643913D2-063F-599C-B3DF-B8D415CE171F
|
|
106
140
|
*/
|
|
107
141
|
reqId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* The area calculation result.
|
|
145
|
+
*/
|
|
108
146
|
result?: DiduiAreaDeductionResponseBodyDataResult;
|
|
109
147
|
/**
|
|
148
|
+
* @remarks
|
|
149
|
+
* The workflow status.
|
|
150
|
+
*
|
|
110
151
|
* @example
|
|
111
152
|
* COMPLETED
|
|
112
153
|
*/
|
|
113
154
|
status?: string;
|
|
114
155
|
/**
|
|
156
|
+
* @remarks
|
|
157
|
+
* The workflow business status.
|
|
158
|
+
*
|
|
115
159
|
* @example
|
|
116
160
|
* True
|
|
117
161
|
*/
|
|
118
162
|
success?: boolean;
|
|
119
163
|
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The usage information.
|
|
166
|
+
*
|
|
120
167
|
* @example
|
|
121
168
|
* {"ProcessingCount":1}
|
|
122
169
|
*/
|
|
@@ -170,22 +217,38 @@ export class DiduiAreaDeductionResponseBodyData extends $dara.Model {
|
|
|
170
217
|
|
|
171
218
|
export class DiduiAreaDeductionResponseBody extends $dara.Model {
|
|
172
219
|
/**
|
|
220
|
+
* @remarks
|
|
221
|
+
* The error code.
|
|
222
|
+
*
|
|
173
223
|
* @example
|
|
174
224
|
* success
|
|
175
225
|
*/
|
|
176
226
|
code?: string;
|
|
227
|
+
/**
|
|
228
|
+
* @remarks
|
|
229
|
+
* The floor display area inference result.
|
|
230
|
+
*/
|
|
177
231
|
data?: DiduiAreaDeductionResponseBodyData;
|
|
178
232
|
/**
|
|
233
|
+
* @remarks
|
|
234
|
+
* The error message.
|
|
235
|
+
*
|
|
179
236
|
* @example
|
|
180
237
|
* Success
|
|
181
238
|
*/
|
|
182
239
|
message?: string;
|
|
183
240
|
/**
|
|
241
|
+
* @remarks
|
|
242
|
+
* Id of the request
|
|
243
|
+
*
|
|
184
244
|
* @example
|
|
185
245
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
186
246
|
*/
|
|
187
247
|
requestId?: string;
|
|
188
248
|
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* Indicates whether the call was successful.
|
|
251
|
+
*
|
|
189
252
|
* @example
|
|
190
253
|
* True
|
|
191
254
|
*/
|
|
@@ -5,21 +5,31 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DiduiAreaDeductionShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The list of products and their detection boxes.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*/
|
|
10
12
|
productsShrink?: string;
|
|
11
13
|
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The ID of the customer-specific SKU vector store that determines which store is used for retrieval. The store must be created in advance through the store creation process.
|
|
16
|
+
*
|
|
12
17
|
* @example
|
|
13
18
|
* rag_xxx
|
|
14
19
|
*/
|
|
15
20
|
ragId?: string;
|
|
16
21
|
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The optional business request ID used for Tracing Analysis.
|
|
24
|
+
*
|
|
17
25
|
* @example
|
|
18
26
|
* didui-request-001
|
|
19
27
|
*/
|
|
20
28
|
reqId?: string;
|
|
21
29
|
/**
|
|
22
30
|
* @remarks
|
|
31
|
+
* The HTTPS URL of the overall floor display image.
|
|
32
|
+
*
|
|
23
33
|
* This parameter is required.
|
|
24
34
|
*
|
|
25
35
|
* @example
|
|
@@ -5,7 +5,11 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DocumentTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The supported document types: PDF/Word.
|
|
8
|
+
* The supported document types: PDF/Word.
|
|
9
|
+
* Supported capacity limits:
|
|
10
|
+
* - word: 200 MB/100 pages
|
|
11
|
+
* - PDF: 200 MB/100 pages
|
|
12
|
+
* - Maximum size per file: 200 MB
|
|
9
13
|
*
|
|
10
14
|
* This parameter is required.
|
|
11
15
|
*
|
|
@@ -15,7 +19,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
15
19
|
fileType?: string;
|
|
16
20
|
/**
|
|
17
21
|
* @remarks
|
|
18
|
-
* The
|
|
22
|
+
* The glossary ID. Specify this parameter when you need the glossary feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection.
|
|
19
23
|
*
|
|
20
24
|
* @example
|
|
21
25
|
* glossary_1
|
|
@@ -48,7 +48,8 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: DocumentTranslateResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message
|
|
51
|
+
* The error message, such as "The parameters contain sensitive information. Try other input."
|
|
52
|
+
* This parameter is not returned for successful calls.
|
|
52
53
|
*
|
|
53
54
|
* @example
|
|
54
55
|
* Success
|
|
@@ -56,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
56
57
|
message?: string;
|
|
57
58
|
/**
|
|
58
59
|
* @remarks
|
|
59
|
-
*
|
|
60
|
+
* The unique request identity, used for troubleshooting and tracing.
|
|
60
61
|
*
|
|
61
62
|
* @example
|
|
62
63
|
* 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
|
|
@@ -64,7 +65,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
64
65
|
requestId?: string;
|
|
65
66
|
/**
|
|
66
67
|
* @remarks
|
|
67
|
-
* Indicates whether the call
|
|
68
|
+
* Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
|
|
68
69
|
*
|
|
69
70
|
* @example
|
|
70
71
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageCroppingRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* URL of the image to
|
|
8
|
+
* The URL of the image to process.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class ImageCroppingRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
*
|
|
18
|
+
* The target height.
|
|
19
19
|
*
|
|
20
20
|
* This parameter is required.
|
|
21
21
|
*
|
|
@@ -25,7 +25,7 @@ export class ImageCroppingRequest extends $dara.Model {
|
|
|
25
25
|
targetHeight?: number;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
*
|
|
28
|
+
* The target width.
|
|
29
29
|
*
|
|
30
30
|
* This parameter is required.
|
|
31
31
|
*
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageCroppingResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The image height.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 800
|
|
@@ -13,7 +13,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
|
|
|
13
13
|
height?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* URL of the cropped image
|
|
16
|
+
* The URL of the cropped image.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* https://example.com/cropped.jpg
|
|
@@ -21,7 +21,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
|
|
|
21
21
|
imageUrl?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
*
|
|
24
|
+
* The usage information.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* {"ProcessedImageCount":1}
|
|
@@ -29,7 +29,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
|
|
|
29
29
|
usageMap?: { [key: string]: number };
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* The image width.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* 800
|
|
@@ -68,7 +68,7 @@ export class ImageCroppingResponseBodyData extends $dara.Model {
|
|
|
68
68
|
export class ImageCroppingResponseBody extends $dara.Model {
|
|
69
69
|
/**
|
|
70
70
|
* @remarks
|
|
71
|
-
*
|
|
71
|
+
* The response code.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* success
|
|
@@ -76,12 +76,12 @@ export class ImageCroppingResponseBody extends $dara.Model {
|
|
|
76
76
|
code?: string;
|
|
77
77
|
/**
|
|
78
78
|
* @remarks
|
|
79
|
-
*
|
|
79
|
+
* The cropping result.
|
|
80
80
|
*/
|
|
81
81
|
data?: ImageCroppingResponseBodyData;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
*
|
|
84
|
+
* The error message.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* Success
|
|
@@ -97,7 +97,9 @@ export class ImageCroppingResponseBody extends $dara.Model {
|
|
|
97
97
|
requestId?: string;
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
*
|
|
100
|
+
* Indicates whether the call is successful. Valid values:
|
|
101
|
+
* - true: Successful.
|
|
102
|
+
* - false: Failed.
|
|
101
103
|
*
|
|
102
104
|
* @example
|
|
103
105
|
* True
|
|
@@ -6,8 +6,9 @@ export class ImageMattingRequest extends $dara.Model {
|
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
8
|
* Specifies the background type of the returned image. Valid values:
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
9
|
+
*
|
|
10
|
+
* - WHITE_BACKGROUND: white background.
|
|
11
|
+
* - TRANSPARENT: transparent background.
|
|
11
12
|
*
|
|
12
13
|
* This parameter is required.
|
|
13
14
|
*
|
|
@@ -25,7 +26,7 @@ export class ImageMattingRequest extends $dara.Model {
|
|
|
25
26
|
bgColor?: string;
|
|
26
27
|
/**
|
|
27
28
|
* @remarks
|
|
28
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format
|
|
29
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size not exceeding 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`
|
|
29
30
|
*
|
|
30
31
|
* This parameter is required.
|
|
31
32
|
*
|
|
@@ -15,7 +15,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark),
|
|
18
|
+
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElements?: number[];
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text),
|
|
26
|
+
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -47,7 +47,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
47
47
|
returnCharacter?: number;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* Specifies whether to return text
|
|
50
|
+
* Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* 1
|
|
@@ -63,7 +63,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
63
63
|
returnProductNum?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* Specifies whether to return product
|
|
66
|
+
* Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* 1
|
|
@@ -168,7 +168,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
168
168
|
export class ImageRecognitionResponseBody extends $dara.Model {
|
|
169
169
|
/**
|
|
170
170
|
* @remarks
|
|
171
|
-
* The error code. This parameter is not returned
|
|
171
|
+
* The error code. This parameter is not returned for successful calls.
|
|
172
172
|
*
|
|
173
173
|
* @example
|
|
174
174
|
* 200
|
|
@@ -181,7 +181,7 @@ export class ImageRecognitionResponseBody extends $dara.Model {
|
|
|
181
181
|
data?: ImageRecognitionResponseBodyData;
|
|
182
182
|
/**
|
|
183
183
|
* @remarks
|
|
184
|
-
* The error message. This parameter is not returned
|
|
184
|
+
* The error message. This parameter is not returned for successful calls.
|
|
185
185
|
*
|
|
186
186
|
* @example
|
|
187
187
|
* OK
|
|
@@ -15,7 +15,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark),
|
|
18
|
+
* The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), 4 (splice).
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElementsShrink?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text),
|
|
26
|
+
* The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), 4 (logo).
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -47,7 +47,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
47
47
|
returnCharacter?: number;
|
|
48
48
|
/**
|
|
49
49
|
* @remarks
|
|
50
|
-
* Specifies whether to return text
|
|
50
|
+
* Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* 1
|
|
@@ -63,7 +63,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
63
63
|
returnProductNum?: number;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* Specifies whether to return product
|
|
66
|
+
* Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the image
|
|
8
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size no larger than 10 MB.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,21 +15,19 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The specific
|
|
18
|
+
* The specific removal area. This parameter must be used with the editor. The input format is RLE.
|
|
19
|
+
* If provided, this takes priority and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
20
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
19
21
|
*
|
|
20
22
|
* @example
|
|
21
|
-
*
|
|
23
|
+
* "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"
|
|
22
24
|
*/
|
|
23
25
|
mask?: string;
|
|
24
26
|
/**
|
|
25
27
|
* @remarks
|
|
26
|
-
* The elements to remove from the non-subject area of the image.
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* - 3: text
|
|
30
|
-
* - 4: image blemish
|
|
31
|
-
*
|
|
32
|
-
* You can specify multiple values.
|
|
28
|
+
* The elements to remove from the non-subject area of the image (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
29
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
30
|
+
* Refer to the product description for details on each type.
|
|
33
31
|
*
|
|
34
32
|
* @example
|
|
35
33
|
* [1,2]
|
|
@@ -37,24 +35,51 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
37
35
|
nonObjectRemoveElements?: number[];
|
|
38
36
|
/**
|
|
39
37
|
* @remarks
|
|
40
|
-
* The elements to remove from the image subject
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* - 4: image blemish
|
|
45
|
-
*
|
|
46
|
-
* You can specify multiple values.
|
|
38
|
+
* The elements to remove from the image subject (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
39
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
40
|
+
* Refer to the product description for details on each type.
|
|
41
|
+
* Image subject: The core product area in the image.
|
|
47
42
|
*
|
|
48
43
|
* @example
|
|
49
44
|
* [1,2]
|
|
50
45
|
*/
|
|
51
46
|
objectRemoveElements?: number[];
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
50
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* [10,10,100,100]
|
|
54
|
+
*/
|
|
55
|
+
position?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
59
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
|
|
63
|
+
*/
|
|
64
|
+
userImage?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
|
|
68
|
+
* When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ["xx","yy"]
|
|
72
|
+
*/
|
|
73
|
+
userText?: string[];
|
|
52
74
|
static names(): { [key: string]: string } {
|
|
53
75
|
return {
|
|
54
76
|
imageUrl: 'ImageUrl',
|
|
55
77
|
mask: 'Mask',
|
|
56
78
|
nonObjectRemoveElements: 'NonObjectRemoveElements',
|
|
57
79
|
objectRemoveElements: 'ObjectRemoveElements',
|
|
80
|
+
position: 'Position',
|
|
81
|
+
userImage: 'UserImage',
|
|
82
|
+
userText: 'UserText',
|
|
58
83
|
};
|
|
59
84
|
}
|
|
60
85
|
|
|
@@ -64,6 +89,9 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
64
89
|
mask: 'string',
|
|
65
90
|
nonObjectRemoveElements: { 'type': 'array', 'itemType': 'number' },
|
|
66
91
|
objectRemoveElements: { 'type': 'array', 'itemType': 'number' },
|
|
92
|
+
position: 'string',
|
|
93
|
+
userImage: { 'type': 'array', 'itemType': 'string' },
|
|
94
|
+
userText: { 'type': 'array', 'itemType': 'string' },
|
|
67
95
|
};
|
|
68
96
|
}
|
|
69
97
|
|
|
@@ -74,6 +102,12 @@ export class ImageRemoveRequest extends $dara.Model {
|
|
|
74
102
|
if(Array.isArray(this.objectRemoveElements)) {
|
|
75
103
|
$dara.Model.validateArray(this.objectRemoveElements);
|
|
76
104
|
}
|
|
105
|
+
if(Array.isArray(this.userImage)) {
|
|
106
|
+
$dara.Model.validateArray(this.userImage);
|
|
107
|
+
}
|
|
108
|
+
if(Array.isArray(this.userText)) {
|
|
109
|
+
$dara.Model.validateArray(this.userText);
|
|
110
|
+
}
|
|
77
111
|
super.validate();
|
|
78
112
|
}
|
|
79
113
|
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The height of the result image
|
|
8
|
+
* The height of the result image in pixels.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 800
|
|
@@ -13,10 +13,11 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
13
13
|
height?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The URL of the result image after
|
|
16
|
+
* The URL of the result image after removal.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
|
|
19
|
+
* “http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
|
|
20
|
+
* ”
|
|
20
21
|
*/
|
|
21
22
|
imageUrl?: string;
|
|
22
23
|
/**
|
|
@@ -29,7 +30,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
29
30
|
usageMap?: { [key: string]: number };
|
|
30
31
|
/**
|
|
31
32
|
* @remarks
|
|
32
|
-
* The width of the result image
|
|
33
|
+
* The width of the result image in pixels.
|
|
33
34
|
*
|
|
34
35
|
* @example
|
|
35
36
|
* 800
|
|
@@ -68,15 +69,15 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
68
69
|
export class ImageRemoveResponseBody extends $dara.Model {
|
|
69
70
|
/**
|
|
70
71
|
* @remarks
|
|
71
|
-
* The
|
|
72
|
+
* The status code.
|
|
72
73
|
*
|
|
73
74
|
* @example
|
|
74
|
-
*
|
|
75
|
+
* "success"
|
|
75
76
|
*/
|
|
76
77
|
code?: string;
|
|
77
78
|
/**
|
|
78
79
|
* @remarks
|
|
79
|
-
* The intelligent
|
|
80
|
+
* The intelligent removal result.
|
|
80
81
|
*/
|
|
81
82
|
data?: ImageRemoveResponseBodyData;
|
|
82
83
|
/**
|
|
@@ -84,7 +85,7 @@ export class ImageRemoveResponseBody extends $dara.Model {
|
|
|
84
85
|
* The error message.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
|
-
*
|
|
88
|
+
* “The parameters contain sensitive information, please try other inputs”
|
|
88
89
|
*/
|
|
89
90
|
message?: string;
|
|
90
91
|
/**
|