@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
|
@@ -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,24 +35,51 @@ 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;
|
|
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
|
+
userImageShrink?: 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
|
+
userTextShrink?: string;
|
|
52
74
|
static names(): { [key: string]: string } {
|
|
53
75
|
return {
|
|
54
76
|
imageUrl: 'ImageUrl',
|
|
55
77
|
mask: 'Mask',
|
|
56
78
|
nonObjectRemoveElementsShrink: 'NonObjectRemoveElements',
|
|
57
79
|
objectRemoveElementsShrink: 'ObjectRemoveElements',
|
|
80
|
+
position: 'Position',
|
|
81
|
+
userImageShrink: 'UserImage',
|
|
82
|
+
userTextShrink: 'UserText',
|
|
58
83
|
};
|
|
59
84
|
}
|
|
60
85
|
|
|
@@ -64,6 +89,9 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
64
89
|
mask: 'string',
|
|
65
90
|
nonObjectRemoveElementsShrink: 'string',
|
|
66
91
|
objectRemoveElementsShrink: 'string',
|
|
92
|
+
position: 'string',
|
|
93
|
+
userImageShrink: 'string',
|
|
94
|
+
userTextShrink: 'string',
|
|
67
95
|
};
|
|
68
96
|
}
|
|
69
97
|
|
|
@@ -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
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
8
|
+
* The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 0
|
|
@@ -75,7 +75,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
75
75
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
78
|
+
* The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* 0
|
|
@@ -145,7 +145,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
145
145
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
|
|
146
146
|
/**
|
|
147
147
|
* @remarks
|
|
148
|
-
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
148
|
+
* The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
151
|
* 0
|
|
@@ -215,7 +215,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
215
215
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
216
216
|
/**
|
|
217
217
|
* @remarks
|
|
218
|
-
* The
|
|
218
|
+
* The color of the translated text.
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
221
|
* #515151
|
|
@@ -231,7 +231,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
231
231
|
fontsize?: number;
|
|
232
232
|
/**
|
|
233
233
|
* @remarks
|
|
234
|
-
* The horizontal layout
|
|
234
|
+
* The horizontal layout. Valid values: center, left, right.
|
|
235
235
|
*
|
|
236
236
|
* @example
|
|
237
237
|
* center
|
|
@@ -265,7 +265,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
265
265
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
266
266
|
/**
|
|
267
267
|
* @remarks
|
|
268
|
-
* Indicates whether the TextItem is valid. The item is invalid
|
|
268
|
+
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* true
|
|
@@ -281,7 +281,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
281
281
|
value?: string;
|
|
282
282
|
/**
|
|
283
283
|
* @remarks
|
|
284
|
-
* The vertical layout
|
|
284
|
+
* The vertical layout. Valid values: center, top, down.
|
|
285
285
|
*
|
|
286
286
|
* @example
|
|
287
287
|
* center
|
|
@@ -346,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
346
346
|
* The original text before translation.
|
|
347
347
|
*
|
|
348
348
|
* @example
|
|
349
|
-
*
|
|
349
|
+
* 萌趣造型·清脆响铃
|
|
350
350
|
*/
|
|
351
351
|
content?: string;
|
|
352
352
|
/**
|
|
@@ -359,7 +359,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
359
359
|
fontsize?: number;
|
|
360
360
|
/**
|
|
361
361
|
* @remarks
|
|
362
|
-
* The horizontal layout
|
|
362
|
+
* The horizontal layout. Valid values: center, left, right.
|
|
363
363
|
*
|
|
364
364
|
* @example
|
|
365
365
|
* left
|
|
@@ -380,7 +380,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
380
380
|
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
381
381
|
/**
|
|
382
382
|
* @remarks
|
|
383
|
-
* The vertical layout
|
|
383
|
+
* The vertical layout. Valid values: center, top, down.
|
|
384
384
|
*
|
|
385
385
|
* @example
|
|
386
386
|
* center
|
|
@@ -440,7 +440,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
440
440
|
languages?: string[];
|
|
441
441
|
/**
|
|
442
442
|
* @remarks
|
|
443
|
-
* The URL of the image after all text has been
|
|
443
|
+
* The URL of the image after all text has been inpainted.
|
|
444
444
|
*
|
|
445
445
|
* @example
|
|
446
446
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
|
|
@@ -545,7 +545,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
|
|
|
545
545
|
export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
546
546
|
/**
|
|
547
547
|
* @remarks
|
|
548
|
-
* The editor information, which contains
|
|
548
|
+
* The editor information, which contains recognized information such as text areas, product areas, and fonts.
|
|
549
549
|
*/
|
|
550
550
|
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
551
551
|
/**
|
|
@@ -595,7 +595,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
|
595
595
|
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
596
596
|
/**
|
|
597
597
|
* @remarks
|
|
598
|
-
* The URL of the
|
|
598
|
+
* The URL of the translated result image.
|
|
599
599
|
*
|
|
600
600
|
* @example
|
|
601
601
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -653,7 +653,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
653
653
|
taskId?: string;
|
|
654
654
|
/**
|
|
655
655
|
* @remarks
|
|
656
|
-
* The usage information,
|
|
656
|
+
* The usage information, including the number of processed images.
|
|
657
657
|
*/
|
|
658
658
|
usageMap?: { [key: string]: number };
|
|
659
659
|
static names(): { [key: string]: string } {
|
|
@@ -695,7 +695,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
695
695
|
export class ImageTranslationProResponseBody extends $dara.Model {
|
|
696
696
|
/**
|
|
697
697
|
* @remarks
|
|
698
|
-
* The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
698
|
+
* The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
699
699
|
*
|
|
700
700
|
* @example
|
|
701
701
|
* 200
|
|
@@ -703,12 +703,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
703
703
|
code?: string;
|
|
704
704
|
/**
|
|
705
705
|
* @remarks
|
|
706
|
-
* The translation result data. ResultList contains the
|
|
706
|
+
* The translation result data. ResultList contains the URL of the translation result. EditInfo in GenFiles contains the recognized text information.
|
|
707
707
|
*/
|
|
708
708
|
data?: ImageTranslationProResponseBodyData;
|
|
709
709
|
/**
|
|
710
710
|
* @remarks
|
|
711
|
-
* The error message. "Success" is returned for successful
|
|
711
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call, such as "The content contains sensitive data. Try other input."
|
|
712
712
|
*
|
|
713
713
|
* @example
|
|
714
714
|
* Success
|
|
@@ -716,7 +716,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
716
716
|
message?: string;
|
|
717
717
|
/**
|
|
718
718
|
* @remarks
|
|
719
|
-
* The request ID,
|
|
719
|
+
* The request ID, which uniquely identifies the request.
|
|
720
720
|
*
|
|
721
721
|
* @example
|
|
722
722
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -724,7 +724,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
724
724
|
requestId?: string;
|
|
725
725
|
/**
|
|
726
726
|
* @remarks
|
|
727
|
-
* Indicates whether the call is successful. true indicates success
|
|
727
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
728
728
|
*
|
|
729
729
|
* @example
|
|
730
730
|
* true
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationStandardRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The glossary ID. Optional. Create
|
|
8
|
+
* The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, translation results are not modified.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -14,6 +14,9 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
16
|
* - Image URL: Must be publicly accessible.
|
|
17
|
+
* - Format: png, jpeg, jpg, bmp, webp
|
|
18
|
+
* - Pixels: Width and height must not exceed 4000
|
|
19
|
+
* - File size: Original file ≤ 10 MB
|
|
17
20
|
*
|
|
18
21
|
* This parameter is required.
|
|
19
22
|
*
|
|
@@ -23,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
23
26
|
imageUrl?: string;
|
|
24
27
|
/**
|
|
25
28
|
* @remarks
|
|
26
|
-
* Specifies whether to translate text on the
|
|
29
|
+
* Specifies whether to translate text on the product area. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* false
|
|
@@ -31,7 +34,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
31
34
|
includingProductArea?: boolean;
|
|
32
35
|
/**
|
|
33
36
|
* @remarks
|
|
34
|
-
* The source language code. Required. For supported language
|
|
37
|
+
* The source language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
35
38
|
*
|
|
36
39
|
* This parameter is required.
|
|
37
40
|
*
|
|
@@ -41,7 +44,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
41
44
|
sourceLanguage?: string;
|
|
42
45
|
/**
|
|
43
46
|
* @remarks
|
|
44
|
-
* The target language code. Required. For supported language
|
|
47
|
+
* The target language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
45
48
|
*
|
|
46
49
|
* This parameter is required.
|
|
47
50
|
*
|
|
@@ -51,7 +54,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
51
54
|
targetLanguage?: string;
|
|
52
55
|
/**
|
|
53
56
|
* @remarks
|
|
54
|
-
* Specifies whether to translate brand names on
|
|
57
|
+
* Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
|
|
55
58
|
*
|
|
56
59
|
* @example
|
|
57
60
|
* false
|
|
@@ -59,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
59
62
|
translatingBrandInTheProduct?: boolean;
|
|
60
63
|
/**
|
|
61
64
|
* @remarks
|
|
62
|
-
* Specifies whether to return layer information such as text position, font, and color.
|
|
65
|
+
* Specifies whether to return layer information such as text position, font, and color. If set to true, layer information is returned for secondary editing through an image editor. Default value: false.
|
|
63
66
|
*
|
|
64
67
|
* @example
|
|
65
68
|
* false
|
|
@@ -231,7 +231,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
|
|
|
231
231
|
* The text value.
|
|
232
232
|
*
|
|
233
233
|
* @example
|
|
234
|
-
* Solid Wood Wardrobe
|
|
234
|
+
* Solid Wood Wardrobe
|
|
235
235
|
*/
|
|
236
236
|
value?: string;
|
|
237
237
|
/**
|
|
@@ -388,7 +388,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
388
388
|
font?: string[];
|
|
389
389
|
/**
|
|
390
390
|
* @remarks
|
|
391
|
-
* The product area
|
|
391
|
+
* The product area rectangle.
|
|
392
392
|
*/
|
|
393
393
|
goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
394
394
|
/**
|
|
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
409
409
|
languages?: string[];
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* The original image
|
|
412
|
+
* The URL of the original image.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
417
417
|
pictUrl?: string;
|
|
418
418
|
/**
|
|
419
419
|
* @remarks
|
|
420
|
-
* The repaired image
|
|
420
|
+
* The URL of the repaired image.
|
|
421
421
|
*
|
|
422
422
|
* @example
|
|
423
423
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
|
|
@@ -520,7 +520,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
520
520
|
editInfo?: ImageTranslationStandardResponseBodyDataEditInfo;
|
|
521
521
|
/**
|
|
522
522
|
* @remarks
|
|
523
|
-
* The URL of the image generated
|
|
523
|
+
* The URL of the image generated from the image translation result.
|
|
524
524
|
*
|
|
525
525
|
* @example
|
|
526
526
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -528,7 +528,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
528
528
|
imageUrl?: string;
|
|
529
529
|
/**
|
|
530
530
|
* @remarks
|
|
531
|
-
* The usage information, including the number of images
|
|
531
|
+
* The usage information, including the number of processed images.
|
|
532
532
|
*
|
|
533
533
|
* @example
|
|
534
534
|
* {"ProcessedImageCount":1}
|
|
@@ -581,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|
|
583
583
|
* @remarks
|
|
584
|
-
* The error message.
|
|
584
|
+
* The error message. "Success" is returned for successful calls, and a specific error message is returned for failed calls.
|
|
585
585
|
*
|
|
586
586
|
* @example
|
|
587
587
|
* Success
|
|
@@ -589,7 +589,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
589
589
|
message?: string;
|
|
590
590
|
/**
|
|
591
591
|
* @remarks
|
|
592
|
-
* The request ID,
|
|
592
|
+
* The request ID, used to uniquely identify a request.
|
|
593
593
|
*
|
|
594
594
|
* @example
|
|
595
595
|
* 1CEC4D94-905A-1ED1-A7B4-1BFEFFB3D850
|
|
@@ -5,22 +5,32 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class LanguageDetectRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* Optional. Set this parameter to query (case-insensitive) to use the new model. If this parameter is not specified or an invalid value is passed, the default value common (general language detection) is used.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* query
|
|
12
|
+
*/
|
|
13
|
+
scene?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The source text to be identified. This parameter is required.
|
|
9
17
|
*
|
|
10
18
|
* This parameter is required.
|
|
11
19
|
*
|
|
12
20
|
* @example
|
|
13
|
-
*
|
|
21
|
+
* Sample text
|
|
14
22
|
*/
|
|
15
23
|
sourceText?: string;
|
|
16
24
|
static names(): { [key: string]: string } {
|
|
17
25
|
return {
|
|
26
|
+
scene: 'Scene',
|
|
18
27
|
sourceText: 'SourceText',
|
|
19
28
|
};
|
|
20
29
|
}
|
|
21
30
|
|
|
22
31
|
static types(): { [key: string]: any } {
|
|
23
32
|
return {
|
|
33
|
+
scene: 'string',
|
|
24
34
|
sourceText: 'string',
|
|
25
35
|
};
|
|
26
36
|
}
|
|
@@ -48,7 +48,7 @@ export class LanguageDetectResponseBodyData extends $dara.Model {
|
|
|
48
48
|
export class LanguageDetectResponseBody extends $dara.Model {
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The response code. A value of 200 indicates
|
|
51
|
+
* The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* 200
|
|
@@ -56,12 +56,12 @@ export class LanguageDetectResponseBody extends $dara.Model {
|
|
|
56
56
|
code?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The language
|
|
59
|
+
* The language identification result data, including the detected language and usage information.
|
|
60
60
|
*/
|
|
61
61
|
data?: LanguageDetectResponseBodyData;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
* The error message.
|
|
64
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call, such as "The parameters contain sensitive information. Try other input."
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* Success
|
|
@@ -77,9 +77,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
|
|
|
77
77
|
requestId?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* Indicates whether the call
|
|
81
|
-
* - true: Successful.
|
|
82
|
-
* - false: Failed.
|
|
80
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
83
81
|
*
|
|
84
82
|
* @example
|
|
85
83
|
* true
|
|
@@ -13,7 +13,7 @@ export class MaterialInspectionRequest extends $dara.Model {
|
|
|
13
13
|
apiId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The URL of the reference image. When this parameter is not empty, multi-image comparison
|
|
16
|
+
* The URL of the reference image. Optional. When this parameter is not empty, the system performs multi-image differential comparison.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* https://example.com/reference.jpg
|
|
@@ -21,7 +21,7 @@ export class MaterialInspectionRequest extends $dara.Model {
|
|
|
21
21
|
imageRefer?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The URL of the target image to
|
|
24
|
+
* The URL of the target image to be inspected.
|
|
25
25
|
*
|
|
26
26
|
* This parameter is required.
|
|
27
27
|
*
|
|
@@ -31,7 +31,7 @@ export class MaterialInspectionRequest extends $dara.Model {
|
|
|
31
31
|
imageUrl?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The business request identity. This value is returned as-is in the response for Tracing Analysis purposes.
|
|
34
|
+
* The business request identity. Optional. This value is returned as-is in the response for Tracing Analysis purposes.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* req-2026-06-04-001
|
|
@@ -39,10 +39,10 @@ export class MaterialInspectionRequest extends $dara.Model {
|
|
|
39
39
|
reqId?: string;
|
|
40
40
|
/**
|
|
41
41
|
* @remarks
|
|
42
|
-
* The rule prompt in natural language that
|
|
42
|
+
* The rule prompt in natural language that describes the inspection criteria.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
*
|
|
45
|
+
* The door-shaped display stand must be placed in the entrance area; the functional display card must be placed on the counter surface
|
|
46
46
|
*/
|
|
47
47
|
rules?: string;
|
|
48
48
|
static names(): { [key: string]: string } {
|