@alicloud/aidge20260428 5.3.1 → 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 +584 -520
- package/dist/client.js +587 -520
- 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 +1 -1
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +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 +24 -17
- 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 +24 -17
- 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 +588 -520
- 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 +1 -1
- package/src/models/DiduiAreaDeductionResponseBody.ts +1 -1
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
- 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 +24 -17
- package/src/models/ImageRemoveResponseBody.ts +9 -8
- package/src/models/ImageRemoveShrinkRequest.ts +24 -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
|
@@ -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,29 +35,38 @@ 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[];
|
|
52
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
|
+
*
|
|
53
52
|
* @example
|
|
54
53
|
* [10,10,100,100]
|
|
55
54
|
*/
|
|
56
55
|
position?: string;
|
|
57
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
|
+
*
|
|
58
61
|
* @example
|
|
59
62
|
* ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
|
|
60
63
|
*/
|
|
61
64
|
userImage?: string[];
|
|
62
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
|
+
*
|
|
63
70
|
* @example
|
|
64
71
|
* ["xx","yy"]
|
|
65
72
|
*/
|
|
@@ -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
|
/**
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveShrinkRequest 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 ImageRemoveShrinkRequest 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,29 +35,38 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
37
35
|
nonObjectRemoveElementsShrink?: string;
|
|
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
|
objectRemoveElementsShrink?: string;
|
|
52
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
|
+
*
|
|
53
52
|
* @example
|
|
54
53
|
* [10,10,100,100]
|
|
55
54
|
*/
|
|
56
55
|
position?: string;
|
|
57
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
|
+
*
|
|
58
61
|
* @example
|
|
59
62
|
* ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
|
|
60
63
|
*/
|
|
61
64
|
userImageShrink?: string;
|
|
62
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
|
+
*
|
|
63
70
|
* @example
|
|
64
71
|
* ["xx","yy"]
|
|
65
72
|
*/
|
|
@@ -64,7 +64,9 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful. Valid values:
|
|
67
|
+
* Indicates whether the call is successful. Valid values:
|
|
68
|
+
* - true: The call is successful.
|
|
69
|
+
* - false: The call failed.
|
|
68
70
|
*
|
|
69
71
|
* @example
|
|
70
72
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the
|
|
8
|
+
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId, and you must use the query translation result API to obtain the final result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* true
|
|
@@ -13,7 +13,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
13
13
|
async?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The glossary ID. Optional.
|
|
16
|
+
* The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* glossary_1
|
|
@@ -21,7 +21,13 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
21
21
|
glossary?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The URL of the original image. Required.
|
|
24
|
+
* The URL of the original image. Required.
|
|
25
|
+
*
|
|
26
|
+
* Image requirements:
|
|
27
|
+
* - Image URL: Must be publicly accessible.
|
|
28
|
+
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
29
|
+
* - Pixels: Width and height must not exceed 4000 each.
|
|
30
|
+
* - File size: Original file ≤ 10 MB.
|
|
25
31
|
*
|
|
26
32
|
* This parameter is required.
|
|
27
33
|
*
|
|
@@ -31,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
31
37
|
imageUrl?: string;
|
|
32
38
|
/**
|
|
33
39
|
* @remarks
|
|
34
|
-
* Specifies whether to translate text on the image subject
|
|
40
|
+
* Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
|
|
35
41
|
*
|
|
36
42
|
* @example
|
|
37
43
|
* false
|
|
@@ -39,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
39
45
|
includingProductArea?: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* @remarks
|
|
42
|
-
* The source language code. Required. For supported language
|
|
48
|
+
* The source language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
43
49
|
*
|
|
44
50
|
* This parameter is required.
|
|
45
51
|
*
|
|
@@ -49,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
49
55
|
sourceLanguage?: string;
|
|
50
56
|
/**
|
|
51
57
|
* @remarks
|
|
52
|
-
* The target language code. Required. For supported language
|
|
58
|
+
* The target language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
53
59
|
*
|
|
54
60
|
* This parameter is required.
|
|
55
61
|
*
|
|
@@ -59,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
59
65
|
targetLanguage?: string;
|
|
60
66
|
/**
|
|
61
67
|
* @remarks
|
|
62
|
-
* Specifies whether to translate brand names on
|
|
68
|
+
* Specifies whether to translate brand names on images. Optional. Default value: false. This helps you protect brand name information from being translated.
|
|
63
69
|
*
|
|
64
70
|
* @example
|
|
65
71
|
* false
|
|
@@ -67,7 +73,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
67
73
|
translatingBrandInTheProduct?: boolean;
|
|
68
74
|
/**
|
|
69
75
|
* @remarks
|
|
70
|
-
* Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned
|
|
76
|
+
* Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned for secondary editing with an image editor. Default value: false.
|
|
71
77
|
*
|
|
72
78
|
* @example
|
|
73
79
|
* false
|