@alicloud/aidge20260428 5.9.0 → 5.10.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 +324 -264
- package/dist/client.js +488 -264
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
- package/dist/models/ImageMattingAsyncRequest.js +2 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
- package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
- package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
- package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
- package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
- package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
- package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
- package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +12 -12
- package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +59 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -268
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/ImageMattingAsyncRequest.ts +11 -1
- package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
- package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
- package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
- package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
- package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
- package/src/models/ImageRemoveAsyncRequest.ts +27 -6
- package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
- package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
- package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
- package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
- package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
- package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
- package/src/models/TextTranslateAsyncRequest.ts +28 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoTranslationRequest.ts +12 -12
- package/src/models/VideoTranslationResponseBody.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +12 -12
- package/src/models/model.ts +26 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMattingAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageMattingAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageMattingAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageMattingAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAuDvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,QAAQ;SACtB,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;AApFD,4DAoFC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The task ID used to query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The status code, such as success.
|
|
25
|
+
* The status code, such as "success". This parameter is not returned for normal calls.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -30,12 +30,12 @@ export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The
|
|
33
|
+
* The submission result of the asynchronous task for intelligent image matting.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageMattingAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message. This parameter is not returned
|
|
38
|
+
* The error message. This parameter is not returned for normal calls.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID of the request
|
|
46
|
+
* The ID of the request. It is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
6
14
|
*
|
|
7
15
|
* This parameter is required.
|
|
8
16
|
*
|
|
@@ -12,29 +20,29 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
12
20
|
imageUrl?: string;
|
|
13
21
|
/**
|
|
14
22
|
* @remarks
|
|
15
|
-
*
|
|
16
|
-
* - 1:
|
|
17
|
-
* - 2:
|
|
18
|
-
* - 3:
|
|
19
|
-
* - 4:
|
|
20
|
-
* You can specify multiple
|
|
23
|
+
* The types of elements to detect outside the image subject. Valid values:
|
|
24
|
+
* - 1: watermark
|
|
25
|
+
* - 2: logo
|
|
26
|
+
* - 3: text
|
|
27
|
+
* - 4: text-containing color block
|
|
28
|
+
* You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
21
29
|
*/
|
|
22
30
|
nonObjectDetectElements?: number[];
|
|
23
31
|
/**
|
|
24
32
|
* @remarks
|
|
25
|
-
*
|
|
26
|
-
* - 1:
|
|
27
|
-
* - 2:
|
|
28
|
-
* - 3:
|
|
29
|
-
* - 4:
|
|
30
|
-
* You can specify multiple
|
|
33
|
+
* The types of elements to detect on the image subject. Valid values:
|
|
34
|
+
* - 1: watermark
|
|
35
|
+
* - 2: logo
|
|
36
|
+
* - 3: text
|
|
37
|
+
* - 4: text-containing color block
|
|
38
|
+
* You can specify multiple values.
|
|
31
39
|
*/
|
|
32
40
|
objectDetectElements?: number[];
|
|
33
41
|
/**
|
|
34
42
|
* @remarks
|
|
35
43
|
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
36
|
-
* - 1:
|
|
37
|
-
* - 0:
|
|
44
|
+
* - 1: yes
|
|
45
|
+
* - 0: no
|
|
38
46
|
* Default value: 0.
|
|
39
47
|
*
|
|
40
48
|
* @example
|
|
@@ -43,9 +51,9 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
43
51
|
returnBorderPixel?: number;
|
|
44
52
|
/**
|
|
45
53
|
* @remarks
|
|
46
|
-
* Specifies whether to return the OCR
|
|
47
|
-
* - 1:
|
|
48
|
-
* - 0:
|
|
54
|
+
* Specifies whether to return the OCR result of the text in the recognized area. Valid values:
|
|
55
|
+
* - 1: yes
|
|
56
|
+
* - 0: no
|
|
49
57
|
* Default value: 0.
|
|
50
58
|
*
|
|
51
59
|
* @example
|
|
@@ -55,12 +63,12 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
55
63
|
/**
|
|
56
64
|
* @remarks
|
|
57
65
|
* Specifies whether to return the text proportion. Valid values:
|
|
58
|
-
* - 1:
|
|
59
|
-
* - 0:
|
|
66
|
+
* - 1: yes
|
|
67
|
+
* - 0: no
|
|
60
68
|
* Default value: 0.
|
|
61
69
|
* This parameter takes effect only when the following two conditions are met:
|
|
62
70
|
* 1. ReturnCharacter is set to 1.
|
|
63
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text
|
|
71
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
|
|
64
72
|
*
|
|
65
73
|
* @example
|
|
66
74
|
* 1
|
|
@@ -69,8 +77,8 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
69
77
|
/**
|
|
70
78
|
* @remarks
|
|
71
79
|
* Specifies whether to return the number of subjects. Valid values:
|
|
72
|
-
* - 1:
|
|
73
|
-
* - 0:
|
|
80
|
+
* - 1: yes
|
|
81
|
+
* - 0: no
|
|
74
82
|
* Default value: 0.
|
|
75
83
|
*
|
|
76
84
|
* @example
|
|
@@ -80,8 +88,8 @@ export declare class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
80
88
|
/**
|
|
81
89
|
* @remarks
|
|
82
90
|
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
83
|
-
* - 1:
|
|
84
|
-
* - 0:
|
|
91
|
+
* - 1: yes
|
|
92
|
+
* - 0: no
|
|
85
93
|
* Default value: 0.
|
|
86
94
|
*
|
|
87
95
|
* @example
|
|
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizId: 'BizId',
|
|
42
43
|
imageUrl: 'ImageUrl',
|
|
43
44
|
nonObjectDetectElements: 'NonObjectDetectElements',
|
|
44
45
|
objectDetectElements: 'ObjectDetectElements',
|
|
@@ -51,6 +52,7 @@ class ImageRecognitionAsyncRequest extends $dara.Model {
|
|
|
51
52
|
}
|
|
52
53
|
static types() {
|
|
53
54
|
return {
|
|
55
|
+
bizId: 'string',
|
|
54
56
|
imageUrl: 'string',
|
|
55
57
|
nonObjectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
56
58
|
objectDetectElements: { 'type': 'array', 'itemType': 'number' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRecognitionAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRecognitionAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageR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C;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1ID,oEA0IC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The ID
|
|
5
|
+
* The task ID used to query the result of the asynchronous task.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageRecognitionAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The error code. This parameter is not returned
|
|
25
|
+
* The error code. This parameter is not returned for normal calls.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* 200
|
|
@@ -30,7 +30,7 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The returned recognition result
|
|
33
|
+
* The struct information of the returned recognition result.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageRecognitionAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID
|
|
46
|
+
* The request ID, which is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -52,8 +52,8 @@ export declare class ImageRecognitionAsyncResponseBody extends $dara.Model {
|
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
54
|
* Indicates whether the call is successful. Valid values:
|
|
55
|
-
* - true:
|
|
56
|
-
* - false:
|
|
55
|
+
* - true: successful
|
|
56
|
+
* - false: failed
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* True
|
|
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The image URL. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
6
14
|
*
|
|
7
15
|
* This parameter is required.
|
|
8
16
|
*
|
|
@@ -12,29 +20,29 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
12
20
|
imageUrl?: string;
|
|
13
21
|
/**
|
|
14
22
|
* @remarks
|
|
15
|
-
*
|
|
16
|
-
* - 1:
|
|
17
|
-
* - 2:
|
|
18
|
-
* - 3:
|
|
19
|
-
* - 4:
|
|
20
|
-
* You can specify multiple
|
|
23
|
+
* The types of elements to detect outside the image subject. Valid values:
|
|
24
|
+
* - 1: watermark
|
|
25
|
+
* - 2: logo
|
|
26
|
+
* - 3: text
|
|
27
|
+
* - 4: text-containing color block
|
|
28
|
+
* You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
21
29
|
*/
|
|
22
30
|
nonObjectDetectElementsShrink?: string;
|
|
23
31
|
/**
|
|
24
32
|
* @remarks
|
|
25
|
-
*
|
|
26
|
-
* - 1:
|
|
27
|
-
* - 2:
|
|
28
|
-
* - 3:
|
|
29
|
-
* - 4:
|
|
30
|
-
* You can specify multiple
|
|
33
|
+
* The types of elements to detect on the image subject. Valid values:
|
|
34
|
+
* - 1: watermark
|
|
35
|
+
* - 2: logo
|
|
36
|
+
* - 3: text
|
|
37
|
+
* - 4: text-containing color block
|
|
38
|
+
* You can specify multiple values.
|
|
31
39
|
*/
|
|
32
40
|
objectDetectElementsShrink?: string;
|
|
33
41
|
/**
|
|
34
42
|
* @remarks
|
|
35
43
|
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
36
|
-
* - 1:
|
|
37
|
-
* - 0:
|
|
44
|
+
* - 1: yes
|
|
45
|
+
* - 0: no
|
|
38
46
|
* Default value: 0.
|
|
39
47
|
*
|
|
40
48
|
* @example
|
|
@@ -43,9 +51,9 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
43
51
|
returnBorderPixel?: number;
|
|
44
52
|
/**
|
|
45
53
|
* @remarks
|
|
46
|
-
* Specifies whether to return the OCR
|
|
47
|
-
* - 1:
|
|
48
|
-
* - 0:
|
|
54
|
+
* Specifies whether to return the OCR result of the text in the recognized area. Valid values:
|
|
55
|
+
* - 1: yes
|
|
56
|
+
* - 0: no
|
|
49
57
|
* Default value: 0.
|
|
50
58
|
*
|
|
51
59
|
* @example
|
|
@@ -55,12 +63,12 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
55
63
|
/**
|
|
56
64
|
* @remarks
|
|
57
65
|
* Specifies whether to return the text proportion. Valid values:
|
|
58
|
-
* - 1:
|
|
59
|
-
* - 0:
|
|
66
|
+
* - 1: yes
|
|
67
|
+
* - 0: no
|
|
60
68
|
* Default value: 0.
|
|
61
69
|
* This parameter takes effect only when the following two conditions are met:
|
|
62
70
|
* 1. ReturnCharacter is set to 1.
|
|
63
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text
|
|
71
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text needs to be recognized.
|
|
64
72
|
*
|
|
65
73
|
* @example
|
|
66
74
|
* 1
|
|
@@ -69,8 +77,8 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
69
77
|
/**
|
|
70
78
|
* @remarks
|
|
71
79
|
* Specifies whether to return the number of subjects. Valid values:
|
|
72
|
-
* - 1:
|
|
73
|
-
* - 0:
|
|
80
|
+
* - 1: yes
|
|
81
|
+
* - 0: no
|
|
74
82
|
* Default value: 0.
|
|
75
83
|
*
|
|
76
84
|
* @example
|
|
@@ -80,8 +88,8 @@ export declare class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
80
88
|
/**
|
|
81
89
|
* @remarks
|
|
82
90
|
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
83
|
-
* - 1:
|
|
84
|
-
* - 0:
|
|
91
|
+
* - 1: yes
|
|
92
|
+
* - 0: no
|
|
85
93
|
* Default value: 0.
|
|
86
94
|
*
|
|
87
95
|
* @example
|
|
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizId: 'BizId',
|
|
42
43
|
imageUrl: 'ImageUrl',
|
|
43
44
|
nonObjectDetectElementsShrink: 'NonObjectDetectElements',
|
|
44
45
|
objectDetectElementsShrink: 'ObjectDetectElements',
|
|
@@ -51,6 +52,7 @@ class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
51
52
|
}
|
|
52
53
|
static types() {
|
|
53
54
|
return {
|
|
55
|
+
bizId: 'string',
|
|
54
56
|
imageUrl: 'string',
|
|
55
57
|
nonObjectDetectElementsShrink: 'string',
|
|
56
58
|
objectDetectElementsShrink: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRecognitionAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRecognitionAsyncShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRecognitionAsyncShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAiGjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,6BAA6B,EAAE,yBAAyB;YACxD,0BAA0B,EAAE,sBAAsB;YAClD,iBAAiB,EAAE,mBAAmB;YACtC,eAAe,EAAE,iBAAiB;YAClC,mBAAmB,EAAE,qBAAqB;YAC1C,gBAAgB,EAAE,kBAAkB;YACpC,iBAAiB,EAAE,mBAAmB;SACvC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,6BAA6B,EAAE,QAAQ;YACvC,0BAA0B,EAAE,QAAQ;YACpC,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,QAAQ;YACzB,mBAAmB,EAAE,QAAQ;YAC7B,gBAAgB,EAAE,QAAQ;YAC1B,iBAAiB,EAAE,QAAQ;SAC5B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApID,gFAoIC"}
|
|
@@ -2,7 +2,16 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The URL of the original image. The image must be in the JPG, JPEG, PNG, BMP, or WEBP format.
|
|
14
|
+
* · Resolution: 256×256 to 3000×3000. File size: ≤ 10 MB.
|
|
6
15
|
*
|
|
7
16
|
* This parameter is required.
|
|
8
17
|
*
|
|
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizId: 'BizId',
|
|
42
43
|
imageUrl: 'ImageUrl',
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
static types() {
|
|
46
47
|
return {
|
|
48
|
+
bizId: 'string',
|
|
47
49
|
imageUrl: 'string',
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemovalProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemovalProAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAoB1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;SACnB,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;AAzCD,kEAyCC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The ID of the task. You can use this ID to query the asynchronous task result.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -22,7 +22,7 @@ export declare class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The error code. This parameter is not returned
|
|
25
|
+
* The error code. This parameter is not returned for successful calls.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -35,7 +35,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
35
35
|
data?: ImageRemovalProAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message. This parameter is not returned
|
|
38
|
+
* The error message. This parameter is not returned for successful calls. Example: "The parameters contain sensitive information. Try other inputs."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID of the request
|
|
46
|
+
* The ID of the request. This ID is used to uniquely identify the request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,9 @@ export declare class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful.
|
|
54
|
+
* Indicates whether the call is successful. Valid values:
|
|
55
|
+
* - true: successful.
|
|
56
|
+
* - false: failed.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemovalProAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemovalProAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4EAsEC"}
|
|
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The business order ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the result of the asynchronous task.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* order-20260928-001
|
|
9
|
+
*/
|
|
10
|
+
bizId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
6
14
|
*
|
|
7
15
|
* This parameter is required.
|
|
8
16
|
*
|
|
@@ -12,7 +20,9 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
12
20
|
imageUrl?: string;
|
|
13
21
|
/**
|
|
14
22
|
* @remarks
|
|
15
|
-
* The specific area to erase. This parameter must be used in conjunction with the editor
|
|
23
|
+
* The specific area to erase. This parameter must be used in conjunction with the editor. The input format is Run-Length Encoding (RLE).
|
|
24
|
+
* If this parameter is specified, it takes precedence and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
25
|
+
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
16
26
|
*
|
|
17
27
|
* @example
|
|
18
28
|
* "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"
|
|
@@ -20,17 +30,26 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
20
30
|
mask?: string;
|
|
21
31
|
/**
|
|
22
32
|
* @remarks
|
|
23
|
-
* The list of element types to remove from the
|
|
33
|
+
* The list of element types to remove from the image background.
|
|
24
34
|
*/
|
|
25
35
|
nonObjectRemoveElements?: number[];
|
|
26
36
|
/**
|
|
27
37
|
* @remarks
|
|
28
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
38
|
+
* The types of elements to remove from the image subject. Valid values:
|
|
39
|
+
* - 1: Transparent text blocks.
|
|
40
|
+
* - 2: Specific names.
|
|
41
|
+
* - 3: Text.
|
|
42
|
+
* - 4: Promotional stickers.
|
|
43
|
+
* You can select multiple element types. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
44
|
+
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
45
|
+
* For more information about each type, see the product documentation.
|
|
46
|
+
* Image subject: the core product area in the image.
|
|
29
47
|
*/
|
|
30
48
|
objectRemoveElements?: number[];
|
|
31
49
|
/**
|
|
32
50
|
* @remarks
|
|
33
|
-
* The specific area to erase. This parameter must be used in conjunction with the editor
|
|
51
|
+
* The specific area to erase. This parameter must be used in conjunction with the editor. The input format is a four-point coordinate array, such as [xx,yy,zz,dd]. This parameter is optional, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage.
|
|
52
|
+
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
34
53
|
*
|
|
35
54
|
* @example
|
|
36
55
|
* [10,20,100,200]
|
|
@@ -43,7 +62,7 @@ export declare class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
43
62
|
userImage?: string[];
|
|
44
63
|
/**
|
|
45
64
|
* @remarks
|
|
46
|
-
* The list of user-specified
|
|
65
|
+
* The list of user-specified text strings to erase.
|
|
47
66
|
*/
|
|
48
67
|
userText?: string[];
|
|
49
68
|
static names(): {
|
|
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class ImageRemoveAsyncRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizId: 'BizId',
|
|
42
43
|
imageUrl: 'ImageUrl',
|
|
43
44
|
mask: 'Mask',
|
|
44
45
|
nonObjectRemoveElements: 'NonObjectRemoveElements',
|
|
@@ -50,6 +51,7 @@ class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
50
51
|
}
|
|
51
52
|
static types() {
|
|
52
53
|
return {
|
|
54
|
+
bizId: 'string',
|
|
53
55
|
imageUrl: 'string',
|
|
54
56
|
mask: 'string',
|
|
55
57
|
nonObjectRemoveElements: { 'type': 'array', 'itemType': 'number' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageRemoveAsyncRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAkEtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,uBAAuB,EAAE,yBAAyB;YAClD,oBAAoB,EAAE,sBAAsB;YAC5C,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,QAAQ;YAClB,IAAI,EAAE,QAAQ;YACd,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,E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* The returned result struct information.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageRemoveAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as "The parameters contain sensitive information.
|
|
38
|
+
* The error message, such as "The parameters contain sensitive information. Try another input."
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* OK
|
|
@@ -43,7 +43,7 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID
|
|
46
|
+
* The request ID, which is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,7 +51,9 @@ export declare class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call
|
|
54
|
+
* Indicates whether the call is successful. Valid values:
|
|
55
|
+
* - true: The call is successful.
|
|
56
|
+
* - false: The call fails.
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
59
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRemoveAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAS/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IA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