@alicloud/aidge20260428 2.0.0 → 3.0.1
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 +230 -246
- package/dist/client.js +263 -288
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +7 -7
- package/dist/models/ImageMattingResponseBody.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +35 -0
- package/dist/models/{ImageTranslationPlusRequest.js → ImageRemovalProRequest.js} +6 -16
- package/dist/models/ImageRemovalProRequest.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponse.d.ts → ImageRemovalProResponse.d.ts} +3 -3
- package/dist/models/{ImageTranslationPlusResponse.js → ImageRemovalProResponse.js} +6 -6
- package/dist/models/ImageRemovalProResponse.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponseBody.d.ts → ImageRemovalProResponseBody.d.ts} +21 -6
- package/dist/models/{ImageTranslationPlusResponseBody.js → ImageRemovalProResponseBody.js} +14 -7
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -5
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +11 -7
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
- package/dist/models/MaterialInspectionRequest.d.ts +14 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -1
- package/dist/models/MaterialInspectionResponseBody.d.ts +45 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/TextTranslateRequest.d.ts +15 -5
- package/dist/models/TextTranslateRequest.js +4 -0
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
- package/dist/models/TextTranslateShrinkRequest.js +4 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -4
- package/dist/models/model.js +10 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +269 -297
- package/src/models/DocumentTranslateRequest.ts +3 -3
- package/src/models/DocumentTranslateResponseBody.ts +3 -5
- package/src/models/ImageMattingRequest.ts +7 -7
- package/src/models/ImageMattingResponseBody.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +50 -0
- package/src/models/{ImageTranslationPlusResponse.ts → ImageRemovalProResponse.ts} +4 -4
- package/src/models/{ImageTranslationPlusResponseBody.ts → ImageRemovalProResponseBody.ts} +27 -7
- package/src/models/ImageRemoveRequest.ts +15 -5
- package/src/models/ImageRemoveResponseBody.ts +8 -8
- package/src/models/ImageRemoveShrinkRequest.ts +15 -5
- package/src/models/ImageTranslationProRequest.ts +11 -7
- package/src/models/ImageTranslationProResponseBody.ts +55 -55
- package/src/models/MaterialInspectionRequest.ts +14 -0
- package/src/models/MaterialInspectionResponseBody.ts +45 -0
- package/src/models/TextTranslateRequest.ts +19 -5
- package/src/models/TextTranslateResponseBody.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +19 -5
- package/src/models/model.ts +4 -4
- package/dist/models/ImageTranslationPlusRequest.d.ts +0 -75
- package/dist/models/ImageTranslationPlusRequest.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponse.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponseBody.js.map +0 -1
- package/src/models/ImageTranslationPlusRequest.ts +0 -100
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* The height of the result image, in pixels.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* 800
|
|
@@ -10,7 +10,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
10
10
|
height?: number;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* URL of the
|
|
13
|
+
* The URL of the result image after erasure.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
|
|
@@ -18,7 +18,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
18
18
|
imageUrl?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
21
|
+
* The usage information.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* {"ProcessedImageCount":1}
|
|
@@ -28,7 +28,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
*
|
|
31
|
+
* The width of the result image, in pixels.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* 800
|
|
@@ -48,7 +48,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
|
|
|
48
48
|
export declare class ImageRemoveResponseBody extends $dara.Model {
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
*
|
|
51
|
+
* The error code.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* 200
|
|
@@ -56,12 +56,12 @@ export declare class ImageRemoveResponseBody extends $dara.Model {
|
|
|
56
56
|
code?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
*
|
|
59
|
+
* The intelligent erasure result.
|
|
60
60
|
*/
|
|
61
61
|
data?: ImageRemoveResponseBodyData;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
*
|
|
64
|
+
* The error message.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* OK
|
|
@@ -77,7 +77,7 @@ export declare class ImageRemoveResponseBody extends $dara.Model {
|
|
|
77
77
|
requestId?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
*
|
|
80
|
+
* Indicates whether the call was successful.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* True
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* URL of the image to
|
|
5
|
+
* The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
|
|
6
6
|
*
|
|
7
7
|
* This parameter is required.
|
|
8
8
|
*
|
|
@@ -12,7 +12,7 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
12
12
|
imageUrl?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* null
|
|
@@ -20,7 +20,13 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
20
20
|
mask?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
*
|
|
23
|
+
* The elements to remove from the non-subject area of the image. Valid values:
|
|
24
|
+
* - 1: transparent text block
|
|
25
|
+
* - 2: specific name
|
|
26
|
+
* - 3: text
|
|
27
|
+
* - 4: image blemish
|
|
28
|
+
*
|
|
29
|
+
* You can specify multiple values.
|
|
24
30
|
*
|
|
25
31
|
* @example
|
|
26
32
|
* [1,2]
|
|
@@ -28,9 +34,13 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
|
|
|
28
34
|
nonObjectRemoveElementsShrink?: string;
|
|
29
35
|
/**
|
|
30
36
|
* @remarks
|
|
31
|
-
*
|
|
37
|
+
* The elements to remove from the image subject area. Valid values:
|
|
38
|
+
* - 1: transparent text block
|
|
39
|
+
* - 2: specific name
|
|
40
|
+
* - 3: text
|
|
41
|
+
* - 4: image blemish
|
|
32
42
|
*
|
|
33
|
-
*
|
|
43
|
+
* You can specify multiple values.
|
|
34
44
|
*
|
|
35
45
|
* @example
|
|
36
46
|
* [1,2]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA+CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;SACnD,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxED,4DAwEC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class ImageTranslationProRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Specifies whether to call the operation asynchronously.
|
|
6
|
+
*/
|
|
3
7
|
async?: boolean;
|
|
4
8
|
/**
|
|
5
9
|
* @remarks
|
|
6
|
-
*
|
|
10
|
+
* The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
7
11
|
*
|
|
8
12
|
* @example
|
|
9
13
|
* glossary_1
|
|
@@ -11,7 +15,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
11
15
|
glossary?: string;
|
|
12
16
|
/**
|
|
13
17
|
* @remarks
|
|
14
|
-
*
|
|
18
|
+
* The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. Size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
|
|
15
19
|
*
|
|
16
20
|
* This parameter is required.
|
|
17
21
|
*
|
|
@@ -21,7 +25,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
21
25
|
imageUrl?: string;
|
|
22
26
|
/**
|
|
23
27
|
* @remarks
|
|
24
|
-
*
|
|
28
|
+
* 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.
|
|
25
29
|
*
|
|
26
30
|
* @example
|
|
27
31
|
* false
|
|
@@ -29,7 +33,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
29
33
|
includingProductArea?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* @remarks
|
|
32
|
-
*
|
|
36
|
+
* The source language code. Required. For supported language directions, see the supported language direction list.
|
|
33
37
|
*
|
|
34
38
|
* This parameter is required.
|
|
35
39
|
*
|
|
@@ -39,7 +43,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
39
43
|
sourceLanguage?: string;
|
|
40
44
|
/**
|
|
41
45
|
* @remarks
|
|
42
|
-
*
|
|
46
|
+
* The target language code. Required. For supported language directions, see the supported language direction list.
|
|
43
47
|
*
|
|
44
48
|
* This parameter is required.
|
|
45
49
|
*
|
|
@@ -49,7 +53,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
49
53
|
targetLanguage?: string;
|
|
50
54
|
/**
|
|
51
55
|
* @remarks
|
|
52
|
-
*
|
|
56
|
+
* Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
|
|
53
57
|
*
|
|
54
58
|
* @example
|
|
55
59
|
* false
|
|
@@ -57,7 +61,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
57
61
|
translatingBrandInTheProduct?: boolean;
|
|
58
62
|
/**
|
|
59
63
|
* @remarks
|
|
60
|
-
*
|
|
64
|
+
* Specifies whether to return layout information such as text position, font, and color. Optional. Default value: false. This can be used for secondary editing when integrated with an image editor.
|
|
61
65
|
*
|
|
62
66
|
* @example
|
|
63
67
|
* false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAoEzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArGD,gEAqGC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* 0
|
|
@@ -10,7 +10,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
|
|
|
10
10
|
degree?: number;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* The height.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* 0
|
|
@@ -18,7 +18,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
|
|
|
18
18
|
height?: number;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
21
|
+
* The left coordinate.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* 0
|
|
@@ -26,7 +26,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
|
|
|
26
26
|
left?: number;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
*
|
|
29
|
+
* The top coordinate.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* 0
|
|
@@ -34,7 +34,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
|
|
|
34
34
|
top?: number;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* The width.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* 0
|
|
@@ -54,7 +54,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
|
|
|
54
54
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
*
|
|
57
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* 0
|
|
@@ -62,7 +62,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
62
62
|
degree?: number;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
*
|
|
65
|
+
* The height.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* 54
|
|
@@ -70,7 +70,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
70
70
|
height?: number;
|
|
71
71
|
/**
|
|
72
72
|
* @remarks
|
|
73
|
-
*
|
|
73
|
+
* The left coordinate.
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* 43
|
|
@@ -78,7 +78,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
78
78
|
left?: number;
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
*
|
|
81
|
+
* The top coordinate.
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* 83
|
|
@@ -86,7 +86,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
86
86
|
top?: number;
|
|
87
87
|
/**
|
|
88
88
|
* @remarks
|
|
89
|
-
*
|
|
89
|
+
* The width.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* 418
|
|
@@ -106,7 +106,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
106
106
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
|
|
107
107
|
/**
|
|
108
108
|
* @remarks
|
|
109
|
-
*
|
|
109
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
112
|
* 0
|
|
@@ -114,7 +114,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
114
114
|
degree?: number;
|
|
115
115
|
/**
|
|
116
116
|
* @remarks
|
|
117
|
-
*
|
|
117
|
+
* The height.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* 30
|
|
@@ -122,7 +122,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
122
122
|
height?: number;
|
|
123
123
|
/**
|
|
124
124
|
* @remarks
|
|
125
|
-
*
|
|
125
|
+
* The left coordinate.
|
|
126
126
|
*
|
|
127
127
|
* @example
|
|
128
128
|
* 8
|
|
@@ -130,7 +130,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
130
130
|
left?: number;
|
|
131
131
|
/**
|
|
132
132
|
* @remarks
|
|
133
|
-
*
|
|
133
|
+
* The top coordinate.
|
|
134
134
|
*
|
|
135
135
|
* @example
|
|
136
136
|
* 95
|
|
@@ -138,7 +138,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
138
138
|
top?: number;
|
|
139
139
|
/**
|
|
140
140
|
* @remarks
|
|
141
|
-
*
|
|
141
|
+
* The width.
|
|
142
142
|
*
|
|
143
143
|
* @example
|
|
144
144
|
* 488
|
|
@@ -158,7 +158,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
158
158
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
159
159
|
/**
|
|
160
160
|
* @remarks
|
|
161
|
-
*
|
|
161
|
+
* The color of the translated text.
|
|
162
162
|
*
|
|
163
163
|
* @example
|
|
164
164
|
* #515151
|
|
@@ -166,7 +166,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
166
166
|
color?: string;
|
|
167
167
|
/**
|
|
168
168
|
* @remarks
|
|
169
|
-
*
|
|
169
|
+
* The font size of the translated text.
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
172
|
* 29
|
|
@@ -174,7 +174,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
174
174
|
fontsize?: number;
|
|
175
175
|
/**
|
|
176
176
|
* @remarks
|
|
177
|
-
*
|
|
177
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
178
178
|
*
|
|
179
179
|
* @example
|
|
180
180
|
* center
|
|
@@ -182,12 +182,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
182
182
|
horizontalLayout?: string;
|
|
183
183
|
/**
|
|
184
184
|
* @remarks
|
|
185
|
-
*
|
|
185
|
+
* The coordinates of the image inpainting area.
|
|
186
186
|
*/
|
|
187
187
|
imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
|
|
188
188
|
/**
|
|
189
189
|
* @remarks
|
|
190
|
-
*
|
|
190
|
+
* The target language code for translation.
|
|
191
191
|
*
|
|
192
192
|
* @example
|
|
193
193
|
* en
|
|
@@ -195,7 +195,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
195
195
|
language?: string;
|
|
196
196
|
/**
|
|
197
197
|
* @remarks
|
|
198
|
-
*
|
|
198
|
+
* The number of lines in the text box.
|
|
199
199
|
*
|
|
200
200
|
* @example
|
|
201
201
|
* 1
|
|
@@ -203,7 +203,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
203
203
|
lineCount?: number;
|
|
204
204
|
/**
|
|
205
205
|
* @remarks
|
|
206
|
-
* Ovis model error message and execution time
|
|
206
|
+
* The Ovis model error message and execution time.
|
|
207
207
|
*
|
|
208
208
|
* @example
|
|
209
209
|
* | ovis time: 0.748
|
|
@@ -211,12 +211,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
211
211
|
ovisErrMsg?: string;
|
|
212
212
|
/**
|
|
213
213
|
* @remarks
|
|
214
|
-
*
|
|
214
|
+
* The coordinates of the text box area.
|
|
215
215
|
*/
|
|
216
216
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
217
217
|
/**
|
|
218
218
|
* @remarks
|
|
219
|
-
*
|
|
219
|
+
* Indicates whether the TextItem is valid. The item is invalid when this value does not exist or is false.
|
|
220
220
|
*
|
|
221
221
|
* @example
|
|
222
222
|
* true
|
|
@@ -224,7 +224,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
224
224
|
valid?: boolean;
|
|
225
225
|
/**
|
|
226
226
|
* @remarks
|
|
227
|
-
*
|
|
227
|
+
* The translated text content.
|
|
228
228
|
*
|
|
229
229
|
* @example
|
|
230
230
|
* Adorable Design · Crisp Bell Sound
|
|
@@ -232,7 +232,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
232
232
|
value?: string;
|
|
233
233
|
/**
|
|
234
234
|
* @remarks
|
|
235
|
-
*
|
|
235
|
+
* The vertical layout mode. Valid values: center, top, down.
|
|
236
236
|
*
|
|
237
237
|
* @example
|
|
238
238
|
* center
|
|
@@ -252,7 +252,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
252
252
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extends $dara.Model {
|
|
253
253
|
/**
|
|
254
254
|
* @remarks
|
|
255
|
-
*
|
|
255
|
+
* The text color, such as #ffffff.
|
|
256
256
|
*
|
|
257
257
|
* @example
|
|
258
258
|
* #515151
|
|
@@ -260,7 +260,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
260
260
|
color?: string;
|
|
261
261
|
/**
|
|
262
262
|
* @remarks
|
|
263
|
-
*
|
|
263
|
+
* The original text before translation.
|
|
264
264
|
*
|
|
265
265
|
* @example
|
|
266
266
|
* 萌趣造型·清脆响铃
|
|
@@ -268,7 +268,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
268
268
|
content?: string;
|
|
269
269
|
/**
|
|
270
270
|
* @remarks
|
|
271
|
-
*
|
|
271
|
+
* The font size.
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
274
|
* 32
|
|
@@ -276,7 +276,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
276
276
|
fontsize?: number;
|
|
277
277
|
/**
|
|
278
278
|
* @remarks
|
|
279
|
-
*
|
|
279
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
280
280
|
*
|
|
281
281
|
* @example
|
|
282
282
|
* left
|
|
@@ -284,7 +284,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
284
284
|
horizontalLayout?: string;
|
|
285
285
|
/**
|
|
286
286
|
* @remarks
|
|
287
|
-
*
|
|
287
|
+
* The number of lines in the text box.
|
|
288
288
|
*
|
|
289
289
|
* @example
|
|
290
290
|
* 1
|
|
@@ -292,12 +292,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
292
292
|
lineCount?: number;
|
|
293
293
|
/**
|
|
294
294
|
* @remarks
|
|
295
|
-
*
|
|
295
|
+
* The list of translated texts. Each element corresponds to the translation result for one target language.
|
|
296
296
|
*/
|
|
297
297
|
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
298
298
|
/**
|
|
299
299
|
* @remarks
|
|
300
|
-
*
|
|
300
|
+
* The vertical layout mode. Valid values: center, top, down.
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
303
|
* center
|
|
@@ -317,22 +317,22 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
317
317
|
export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.Model {
|
|
318
318
|
/**
|
|
319
319
|
* @remarks
|
|
320
|
-
*
|
|
320
|
+
* The list of font types.
|
|
321
321
|
*/
|
|
322
322
|
font?: string[];
|
|
323
323
|
/**
|
|
324
324
|
* @remarks
|
|
325
|
-
*
|
|
325
|
+
* The coordinate information of the product bounding box area.
|
|
326
326
|
*/
|
|
327
327
|
goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
|
|
328
328
|
/**
|
|
329
329
|
* @remarks
|
|
330
|
-
*
|
|
330
|
+
* The list of translation target languages.
|
|
331
331
|
*/
|
|
332
332
|
languages?: string[];
|
|
333
333
|
/**
|
|
334
334
|
* @remarks
|
|
335
|
-
*
|
|
335
|
+
* The URL of the image with all text removed.
|
|
336
336
|
*
|
|
337
337
|
* @example
|
|
338
338
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
|
|
@@ -340,12 +340,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
|
|
|
340
340
|
repairedUrl?: string;
|
|
341
341
|
/**
|
|
342
342
|
* @remarks
|
|
343
|
-
*
|
|
343
|
+
* The collection of global IDs of translated images.
|
|
344
344
|
*/
|
|
345
345
|
resultImageIds?: string[];
|
|
346
346
|
/**
|
|
347
347
|
* @remarks
|
|
348
|
-
*
|
|
348
|
+
* The list of text boxes, including all recognized text area information.
|
|
349
349
|
*/
|
|
350
350
|
textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
|
|
351
351
|
static names(): {
|
|
@@ -362,7 +362,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
|
|
|
362
362
|
export declare class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara.Model {
|
|
363
363
|
/**
|
|
364
364
|
* @remarks
|
|
365
|
-
*
|
|
365
|
+
* The URL of the translated image file.
|
|
366
366
|
*
|
|
367
367
|
* @example
|
|
368
368
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -370,7 +370,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
|
|
|
370
370
|
fileUrl?: string;
|
|
371
371
|
/**
|
|
372
372
|
* @remarks
|
|
373
|
-
*
|
|
373
|
+
* The translation target language.
|
|
374
374
|
*
|
|
375
375
|
* @example
|
|
376
376
|
* en
|
|
@@ -390,17 +390,17 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
|
|
|
390
390
|
export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
391
391
|
/**
|
|
392
392
|
* @remarks
|
|
393
|
-
*
|
|
393
|
+
* The editor information, including recognized text areas, product areas, fonts, and other information.
|
|
394
394
|
*/
|
|
395
395
|
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
396
396
|
/**
|
|
397
397
|
* @remarks
|
|
398
|
-
*
|
|
398
|
+
* The collection of translation results.
|
|
399
399
|
*/
|
|
400
400
|
resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
|
|
401
401
|
/**
|
|
402
402
|
* @remarks
|
|
403
|
-
*
|
|
403
|
+
* The URL of the original image.
|
|
404
404
|
*
|
|
405
405
|
* @example
|
|
406
406
|
* https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg
|
|
@@ -420,7 +420,7 @@ export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.M
|
|
|
420
420
|
export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
421
421
|
/**
|
|
422
422
|
* @remarks
|
|
423
|
-
*
|
|
423
|
+
* The URL of the image translation result.
|
|
424
424
|
*
|
|
425
425
|
* @example
|
|
426
426
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -428,7 +428,7 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
|
|
|
428
428
|
fileUrl?: string;
|
|
429
429
|
/**
|
|
430
430
|
* @remarks
|
|
431
|
-
*
|
|
431
|
+
* The target language of the image translation.
|
|
432
432
|
*
|
|
433
433
|
* @example
|
|
434
434
|
* en
|
|
@@ -448,17 +448,17 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
|
|
|
448
448
|
export declare class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
449
449
|
/**
|
|
450
450
|
* @remarks
|
|
451
|
-
*
|
|
451
|
+
* The editor protocol, including translation result files and editing information.
|
|
452
452
|
*/
|
|
453
453
|
genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
|
|
454
454
|
/**
|
|
455
455
|
* @remarks
|
|
456
|
-
*
|
|
456
|
+
* The list of image translation results.
|
|
457
457
|
*/
|
|
458
458
|
resultList?: ImageTranslationProResponseBodyDataResultList[];
|
|
459
459
|
/**
|
|
460
460
|
* @remarks
|
|
461
|
-
*
|
|
461
|
+
* The asynchronous task ID. Not returned for synchronous calls.
|
|
462
462
|
*
|
|
463
463
|
* @example
|
|
464
464
|
* abc123-task-id
|
|
@@ -466,7 +466,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
466
466
|
taskId?: string;
|
|
467
467
|
/**
|
|
468
468
|
* @remarks
|
|
469
|
-
*
|
|
469
|
+
* The usage information, including the number of processed images.
|
|
470
470
|
*/
|
|
471
471
|
usageMap?: {
|
|
472
472
|
[key: string]: number;
|
|
@@ -485,7 +485,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
485
485
|
export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
486
486
|
/**
|
|
487
487
|
* @remarks
|
|
488
|
-
*
|
|
488
|
+
* The response code. 200 indicates a successful call. For other response codes, see the error code information.
|
|
489
489
|
*
|
|
490
490
|
* @example
|
|
491
491
|
* 200
|
|
@@ -493,12 +493,12 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
493
493
|
code?: string;
|
|
494
494
|
/**
|
|
495
495
|
* @remarks
|
|
496
|
-
*
|
|
496
|
+
* The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
|
|
497
497
|
*/
|
|
498
498
|
data?: ImageTranslationProResponseBodyData;
|
|
499
499
|
/**
|
|
500
500
|
* @remarks
|
|
501
|
-
*
|
|
501
|
+
* The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The content contains sensitive data. Try other input."
|
|
502
502
|
*
|
|
503
503
|
* @example
|
|
504
504
|
* Success
|
|
@@ -506,7 +506,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
506
506
|
message?: string;
|
|
507
507
|
/**
|
|
508
508
|
* @remarks
|
|
509
|
-
*
|
|
509
|
+
* The request ID, used to identify a unique request call.
|
|
510
510
|
*
|
|
511
511
|
* @example
|
|
512
512
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -514,7 +514,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
514
514
|
requestId?: string;
|
|
515
515
|
/**
|
|
516
516
|
* @remarks
|
|
517
|
-
*
|
|
517
|
+
* Indicates whether the call was successful. true indicates success. false indicates failure.
|
|
518
518
|
*
|
|
519
519
|
* @example
|
|
520
520
|
* true
|