@alicloud/aidge20260428 5.11.0 → 5.12.0
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 +803 -674
- package/dist/client.js +830 -674
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +2 -2
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +7 -7
- package/dist/models/AiTryOnRequest.d.ts +3 -3
- package/dist/models/AiTryOnResponseBody.d.ts +2 -4
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +1 -1
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +2 -2
- package/dist/models/AssetOptimizeProRequest.d.ts +12 -12
- package/dist/models/AssetOptimizeProResponseBody.d.ts +6 -6
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +12 -12
- package/dist/models/CategoryAttributeMatchRequest.d.ts +9 -9
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +13 -13
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +9 -9
- package/dist/models/CategoryMatchRequest.d.ts +10 -10
- package/dist/models/CategoryMatchResponseBody.d.ts +12 -12
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +8 -8
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionRequest.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +6 -6
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateRequest.d.ts +6 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +8 -6
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/EcomVideoRecreationRequest.d.ts +15 -15
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +1 -1
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +1 -1
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +11 -11
- package/dist/models/GenerateProductContentRequest.d.ts +37 -3
- package/dist/models/GenerateProductContentRequest.js.map +1 -1
- package/dist/models/GenerateProductContentResponseBody.d.ts +40 -0
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -1
- package/dist/models/ImageCroppingRequest.d.ts +1 -1
- package/dist/models/ImageCroppingResponseBody.d.ts +1 -3
- package/dist/models/ImageCroppingResponseBody.js.map +1 -1
- package/dist/models/ImageMattingAsyncRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +4 -6
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +5 -6
- package/dist/models/ImageMattingRequest.js.map +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +26 -7
- package/dist/models/ImageMattingResponseBody.js +2 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +7 -7
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRemovalProRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProRequest.js.map +1 -1
- package/dist/models/ImageRemovalProResponseBody.d.ts +6 -6
- package/dist/models/ImageRemoveAsyncRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +10 -10
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageTranslationPlusRequest.d.ts +2 -2
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +6 -6
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProRequest.d.ts +16 -17
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +24 -26
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +2 -2
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +12 -12
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +54 -9
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
- package/dist/models/ImageUpscaleRequest.d.ts +31 -0
- package/dist/models/ImageUpscaleRequest.js +60 -0
- package/dist/models/ImageUpscaleRequest.js.map +1 -0
- package/dist/models/ImageUpscaleResponse.d.ts +19 -0
- package/dist/models/ImageUpscaleResponse.js +69 -0
- package/dist/models/ImageUpscaleResponse.js.map +1 -0
- package/dist/models/ImageUpscaleResponseBody.d.ts +160 -0
- package/dist/models/ImageUpscaleResponseBody.js +146 -0
- package/dist/models/ImageUpscaleResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +11 -11
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +3 -3
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +2 -2
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +3 -3
- package/dist/models/TextTranslateAsyncRequest.d.ts +12 -12
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +12 -12
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +6 -6
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +17 -8
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +6 -4
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +17 -8
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/VirtualTryOnRequest.d.ts +3 -3
- package/dist/models/VirtualTryOnResponseBody.d.ts +7 -5
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +18 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +834 -674
- package/src/models/AddDisplayKnowledgeRequest.ts +2 -2
- package/src/models/AddDisplayKnowledgeResponseBody.ts +7 -7
- package/src/models/AiTryOnRequest.ts +3 -3
- package/src/models/AiTryOnResponseBody.ts +2 -4
- package/src/models/AssetOptimizeLiteRequest.ts +1 -1
- package/src/models/AssetOptimizeLiteResponseBody.ts +2 -2
- package/src/models/AssetOptimizeProRequest.ts +12 -12
- package/src/models/AssetOptimizeProResponseBody.ts +6 -6
- package/src/models/AssetOptimizeProShrinkRequest.ts +12 -12
- package/src/models/CategoryAttributeMatchRequest.ts +9 -9
- package/src/models/CategoryAttributeMatchResponseBody.ts +13 -13
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +9 -9
- package/src/models/CategoryMatchRequest.ts +10 -10
- package/src/models/CategoryMatchResponseBody.ts +12 -12
- package/src/models/DeleteDisplayKnowledgeRequest.ts +1 -1
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +8 -8
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/DiduiAreaDeductionProResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionRequest.ts +8 -8
- package/src/models/DiduiAreaDeductionResponseBody.ts +6 -6
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +3 -3
- package/src/models/DocumentTranslateRequest.ts +6 -7
- package/src/models/DocumentTranslateResponseBody.ts +8 -6
- package/src/models/EcomVideoRecreationRequest.ts +15 -15
- package/src/models/EcomVideoRecreationResponseBody.ts +1 -1
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionRequest.ts +1 -1
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +11 -11
- package/src/models/GenerateProductContentRequest.ts +37 -3
- package/src/models/GenerateProductContentResponseBody.ts +40 -0
- package/src/models/ImageCroppingRequest.ts +1 -1
- package/src/models/ImageCroppingResponseBody.ts +1 -3
- package/src/models/ImageMattingAsyncRequest.ts +2 -2
- package/src/models/ImageMattingAsyncResponseBody.ts +4 -6
- package/src/models/ImageMattingRequest.ts +5 -6
- package/src/models/ImageMattingResponseBody.ts +28 -7
- package/src/models/ImageRecognitionAsyncRequest.ts +10 -35
- package/src/models/ImageRecognitionAsyncResponseBody.ts +5 -7
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +10 -35
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +7 -7
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemovalProAsyncRequest.ts +2 -3
- package/src/models/ImageRemovalProAsyncResponseBody.ts +5 -5
- package/src/models/ImageRemovalProRequest.ts +2 -3
- package/src/models/ImageRemovalProResponseBody.ts +6 -6
- package/src/models/ImageRemoveAsyncRequest.ts +7 -18
- package/src/models/ImageRemoveAsyncResponseBody.ts +5 -7
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +7 -18
- package/src/models/ImageTranslationPlusAsyncRequest.ts +10 -10
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +6 -6
- package/src/models/ImageTranslationPlusRequest.ts +2 -2
- package/src/models/ImageTranslationPlusResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +6 -6
- package/src/models/ImageTranslationProAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProRequest.ts +17 -18
- package/src/models/ImageTranslationProResponseBody.ts +24 -26
- package/src/models/ImageTranslationStandardAsyncRequest.ts +2 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +12 -12
- package/src/models/ImageTranslationStandardResponseBody.ts +54 -9
- package/src/models/ImageUpscaleRequest.ts +46 -0
- package/src/models/ImageUpscaleResponse.ts +40 -0
- package/src/models/ImageUpscaleResponseBody.ts +234 -0
- package/src/models/QueryDisplayKnowledgeRequest.ts +1 -1
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +11 -11
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/SizeChartExtractAsyncRequest.ts +3 -3
- package/src/models/SizeChartExtractAsyncResponseBody.ts +2 -2
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +3 -3
- package/src/models/TextTranslateAsyncRequest.ts +12 -12
- package/src/models/TextTranslateAsyncResponseBody.ts +3 -3
- package/src/models/TextTranslateAsyncShrinkRequest.ts +12 -12
- package/src/models/UpdateDisplayKnowledgeRequest.ts +1 -1
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +6 -6
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/VideoTranslationRequest.ts +17 -8
- package/src/models/VideoTranslationResponseBody.ts +6 -4
- package/src/models/VideoTranslationShrinkRequest.ts +17 -8
- package/src/models/VirtualTryOnRequest.ts +3 -3
- package/src/models/VirtualTryOnResponseBody.ts +7 -5
- package/src/models/model.ts +6 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
8
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when you query the result of the asynchronous task.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -13,7 +13,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
13
13
|
bizId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The image
|
|
16
|
+
* The URL of the 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.
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -23,30 +23,17 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The types of elements to
|
|
27
|
-
* - 1: watermark
|
|
28
|
-
* - 2: logo
|
|
29
|
-
* - 3: text
|
|
30
|
-
* - 4: text-containing color block
|
|
31
|
-
* You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
26
|
+
* The types of elements to be detected outside the image subject. Valid values: 1: Watermark. 2: Logo. 3: Text. 4: Text-containing color block. You can specify multiple values. This parameter and ObjectDetectElements cannot be both empty.
|
|
32
27
|
*/
|
|
33
28
|
nonObjectDetectElementsShrink?: string;
|
|
34
29
|
/**
|
|
35
30
|
* @remarks
|
|
36
|
-
* The types of elements to
|
|
37
|
-
* - 1: watermark
|
|
38
|
-
* - 2: logo
|
|
39
|
-
* - 3: text
|
|
40
|
-
* - 4: text-containing color block
|
|
41
|
-
* You can specify multiple values.
|
|
31
|
+
* The types of elements to be detected on the image subject. Valid values: 1: Watermark. 2: Logo. 3: Text. 4: Text-containing color block. You can specify multiple values.
|
|
42
32
|
*/
|
|
43
33
|
objectDetectElementsShrink?: string;
|
|
44
34
|
/**
|
|
45
35
|
* @remarks
|
|
46
|
-
* Specifies whether to return the marginalization distance of the subject. Valid values:
|
|
47
|
-
* - 1: yes
|
|
48
|
-
* - 0: no
|
|
49
|
-
* Default value: 0.
|
|
36
|
+
* Specifies whether to return the marginalization distance of the subject. Valid values: 1: Yes. 0: No. Default value: 0.
|
|
50
37
|
*
|
|
51
38
|
* @example
|
|
52
39
|
* 1
|
|
@@ -54,10 +41,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
54
41
|
returnBorderPixel?: number;
|
|
55
42
|
/**
|
|
56
43
|
* @remarks
|
|
57
|
-
* Specifies whether to return the OCR result of the text in the recognized area. Valid values:
|
|
58
|
-
* - 1: yes
|
|
59
|
-
* - 0: no
|
|
60
|
-
* Default value: 0.
|
|
44
|
+
* Specifies whether to return the OCR result of the text in the recognized area. Valid values: 1: Yes. 0: No. Default value: 0.
|
|
61
45
|
*
|
|
62
46
|
* @example
|
|
63
47
|
* 1
|
|
@@ -65,13 +49,10 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
65
49
|
returnCharacter?: number;
|
|
66
50
|
/**
|
|
67
51
|
* @remarks
|
|
68
|
-
* Specifies whether to return the text proportion. Valid values:
|
|
69
|
-
* - 1: yes
|
|
70
|
-
* - 0: no
|
|
71
|
-
* Default value: 0.
|
|
52
|
+
* Specifies whether to return the text proportion. Valid values: 1: Yes. 0: No. Default value: 0.
|
|
72
53
|
* This parameter takes effect only when the following two conditions are met:
|
|
73
54
|
* 1. ReturnCharacter is set to 1.
|
|
74
|
-
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text
|
|
55
|
+
* 2. ObjectDetectElements or NonObjectDetectElements is set to 3, which means text recognition is required.
|
|
75
56
|
*
|
|
76
57
|
* @example
|
|
77
58
|
* 1
|
|
@@ -79,10 +60,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
79
60
|
returnCharacterProp?: number;
|
|
80
61
|
/**
|
|
81
62
|
* @remarks
|
|
82
|
-
* Specifies whether to return the number of subjects. Valid values:
|
|
83
|
-
* - 1: yes
|
|
84
|
-
* - 0: no
|
|
85
|
-
* Default value: 0.
|
|
63
|
+
* Specifies whether to return the number of subjects. Valid values: 1: Yes. 0: No. Default value: 0.
|
|
86
64
|
*
|
|
87
65
|
* @example
|
|
88
66
|
* 1
|
|
@@ -90,10 +68,7 @@ export class ImageRecognitionAsyncShrinkRequest extends $dara.Model {
|
|
|
90
68
|
returnProductNum?: number;
|
|
91
69
|
/**
|
|
92
70
|
* @remarks
|
|
93
|
-
* Specifies whether to return the area proportion of the subject. Valid values:
|
|
94
|
-
* - 1: yes
|
|
95
|
-
* - 0: no
|
|
96
|
-
* Default value: 0.
|
|
71
|
+
* Specifies whether to return the area proportion of the subject. Valid values: 1: Yes. 0: No. Default value: 0.
|
|
97
72
|
*
|
|
98
73
|
* @example
|
|
99
74
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the image to
|
|
8
|
+
* The URL of the image to be recognized.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The
|
|
18
|
+
* The elements to detect outside the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElements?: number[];
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The
|
|
26
|
+
* The elements to detect on the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -55,7 +55,7 @@ export class ImageRecognitionRequest extends $dara.Model {
|
|
|
55
55
|
returnCharacterProp?: number;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* Specifies whether to return the product
|
|
58
|
+
* Specifies whether to return the product quantity. Valid values: 1 (return) and 0 (do not return).
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The border pixel information,
|
|
8
|
+
* The border pixel information, which is a comma-separated string.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 8,10,0,1,330,330
|
|
@@ -77,7 +77,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
77
77
|
objWatermark?: boolean;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The
|
|
80
|
+
* The product quantity.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* 2
|
|
@@ -85,7 +85,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
85
85
|
pdNum?: number;
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* The
|
|
88
|
+
* The product proportion.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 74.15%
|
|
@@ -98,7 +98,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
98
98
|
recText?: string[];
|
|
99
99
|
/**
|
|
100
100
|
* @remarks
|
|
101
|
-
* The
|
|
101
|
+
* The text proportion.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
104
|
* 7.52%
|
|
@@ -168,7 +168,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
|
|
|
168
168
|
export class ImageRecognitionResponseBody extends $dara.Model {
|
|
169
169
|
/**
|
|
170
170
|
* @remarks
|
|
171
|
-
* The error code. This parameter is not returned
|
|
171
|
+
* The error code. This parameter is not returned when the call is successful.
|
|
172
172
|
*
|
|
173
173
|
* @example
|
|
174
174
|
* 200
|
|
@@ -181,7 +181,7 @@ export class ImageRecognitionResponseBody extends $dara.Model {
|
|
|
181
181
|
data?: ImageRecognitionResponseBodyData;
|
|
182
182
|
/**
|
|
183
183
|
* @remarks
|
|
184
|
-
* The error message. This parameter is not returned
|
|
184
|
+
* The error message. This parameter is not returned when the call is successful.
|
|
185
185
|
*
|
|
186
186
|
* @example
|
|
187
187
|
* OK
|
|
@@ -197,7 +197,7 @@ export class ImageRecognitionResponseBody extends $dara.Model {
|
|
|
197
197
|
requestId?: string;
|
|
198
198
|
/**
|
|
199
199
|
* @remarks
|
|
200
|
-
* Indicates whether the call
|
|
200
|
+
* Indicates whether the call was successful.
|
|
201
201
|
*
|
|
202
202
|
* @example
|
|
203
203
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the image to
|
|
8
|
+
* The URL of the image to be recognized.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
15
15
|
imageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The
|
|
18
|
+
* The elements to detect outside the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values. This parameter and ObjectDetectElements cannot be empty at the same time.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* [1,2,3,4]
|
|
@@ -23,7 +23,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
23
23
|
nonObjectDetectElementsShrink?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The
|
|
26
|
+
* The elements to detect on the image subject. Valid values: 1 (watermark), 2 (logo), 3 (text), and 4 (text-containing color block). You can specify multiple values.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* [1,2,3,4]
|
|
@@ -55,7 +55,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
|
|
|
55
55
|
returnCharacterProp?: number;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* Specifies whether to return the product
|
|
58
|
+
* Specifies whether to return the product quantity. Valid values: 1 (return) and 0 (do not return).
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* 1
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business
|
|
8
|
+
* The business ID of the caller. This ID is recorded when the request is accepted and returned as-is when you query the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -13,8 +13,7 @@ export class ImageRemovalProAsyncRequest extends $dara.Model {
|
|
|
13
13
|
bizId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The URL of the original image. The image must be in
|
|
17
|
-
* · Resolution: 256×256 to 3000×3000. File size: ≤ 10 MB.
|
|
16
|
+
* 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 must be less than or equal to 10 MB.
|
|
18
17
|
*
|
|
19
18
|
* This parameter is required.
|
|
20
19
|
*
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The ID of the task
|
|
8
|
+
* The ID of the task used to query the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -48,7 +48,7 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: ImageRemovalProAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message. This parameter is not returned for successful calls. Example: "The parameters contain sensitive information.
|
|
51
|
+
* The error message. This parameter is not returned for successful calls. Example: "The parameters contain sensitive information. Please try another input."
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -56,7 +56,7 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The
|
|
59
|
+
* The request ID, which uniquely identifies the request.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -65,8 +65,8 @@ export class ImageRemovalProAsyncResponseBody extends $dara.Model {
|
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
67
|
* Indicates whether the call is successful. Valid values:
|
|
68
|
-
* - true: successful.
|
|
69
|
-
* - false:
|
|
68
|
+
* - true: The call is successful.
|
|
69
|
+
* - false: The call fails.
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* True
|
|
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* Specifies the call type. Valid values:
|
|
9
9
|
* - true: Asynchronous.
|
|
10
10
|
* - false: Synchronous.
|
|
11
|
-
*
|
|
12
11
|
* Default value: false.
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
@@ -17,7 +16,7 @@ export class ImageRemovalProRequest extends $dara.Model {
|
|
|
17
16
|
async?: boolean;
|
|
18
17
|
/**
|
|
19
18
|
* @remarks
|
|
20
|
-
* The URL of the image to
|
|
19
|
+
* The URL of the image to be processed.
|
|
21
20
|
*
|
|
22
21
|
* This parameter is required.
|
|
23
22
|
*
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the
|
|
8
|
+
* The URL of the result image. This parameter is returned in synchronous mode.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* https://aib-image.oss-ap-southeast-1.aliyuncs.com/ai_desc%2F250cc947-9cd5-4df0-9c23-44eba5d0dfc30.jpg?OSSAccessKeyId=LTAI5tSEGjGp5wixZgHLc3bV&Expires=4999655814&Signature=shvGNDmkyv9MLTw4%2BOxYglJCpAE%3D
|
|
@@ -13,7 +13,7 @@ export class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
|
13
13
|
imageUrl?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The asynchronous task
|
|
16
|
+
* The ID of the asynchronous task. This parameter is returned in asynchronous mode and is used to query the task result.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ed9d8504-6141-9fbb-8345-4fa36433483f
|
|
@@ -55,7 +55,7 @@ export class ImageRemovalProResponseBodyData extends $dara.Model {
|
|
|
55
55
|
export class ImageRemovalProResponseBody extends $dara.Model {
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The error code. This parameter is not returned
|
|
58
|
+
* The error code. This parameter is not returned when the call is successful.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* 200
|
|
@@ -63,12 +63,12 @@ export class ImageRemovalProResponseBody extends $dara.Model {
|
|
|
63
63
|
code?: string;
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
|
-
* The
|
|
66
|
+
* The result of the intelligent object removal Pro operation.
|
|
67
67
|
*/
|
|
68
68
|
data?: ImageRemovalProResponseBodyData;
|
|
69
69
|
/**
|
|
70
70
|
* @remarks
|
|
71
|
-
* The error message. This parameter is not returned
|
|
71
|
+
* The error message. This parameter is not returned when the call is successful.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* OK
|
|
@@ -86,7 +86,7 @@ export class ImageRemovalProResponseBody extends $dara.Model {
|
|
|
86
86
|
* @remarks
|
|
87
87
|
* Indicates whether the call is successful. Valid values:
|
|
88
88
|
* - true: The call is successful.
|
|
89
|
-
* - false: The call
|
|
89
|
+
* - false: The call fails.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business order ID of the caller.
|
|
8
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -13,7 +13,7 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
13
13
|
bizId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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
|
|
16
|
+
* 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 must not exceed 10 MB.
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -23,9 +23,7 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The specific area to
|
|
27
|
-
* 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.
|
|
28
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
26
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is RLE. 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 not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
29
27
|
*
|
|
30
28
|
* @example
|
|
31
29
|
* "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"
|
|
@@ -38,21 +36,12 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
38
36
|
nonObjectRemoveElements?: number[];
|
|
39
37
|
/**
|
|
40
38
|
* @remarks
|
|
41
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
42
|
-
* - 1: Transparent text blocks.
|
|
43
|
-
* - 2: Specific names.
|
|
44
|
-
* - 3: Text.
|
|
45
|
-
* - 4: Promotional stickers.
|
|
46
|
-
* 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.
|
|
47
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
48
|
-
* For more information about each type, see the product documentation.
|
|
49
|
-
* Image subject: the core product area in the image.
|
|
39
|
+
* The types of elements to remove from the image subject. Valid values: 1: transparent text blocks. 2: specific names. 3: text. 4: watermarks. You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
50
40
|
*/
|
|
51
41
|
objectRemoveElements?: number[];
|
|
52
42
|
/**
|
|
53
43
|
* @remarks
|
|
54
|
-
* The specific area to
|
|
55
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
44
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
56
45
|
*
|
|
57
46
|
* @example
|
|
58
47
|
* [10,20,100,200]
|
|
@@ -60,12 +49,12 @@ export class ImageRemoveAsyncRequest extends $dara.Model {
|
|
|
60
49
|
position?: string;
|
|
61
50
|
/**
|
|
62
51
|
* @remarks
|
|
63
|
-
* The list of URLs
|
|
52
|
+
* The list of URLs of image elements to remove specified by the user.
|
|
64
53
|
*/
|
|
65
54
|
userImage?: string[];
|
|
66
55
|
/**
|
|
67
56
|
* @remarks
|
|
68
|
-
* The list of
|
|
57
|
+
* The list of text strings to remove specified by the user.
|
|
69
58
|
*/
|
|
70
59
|
userText?: string[];
|
|
71
60
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The task ID used to query the
|
|
8
|
+
* The task ID used to query the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
@@ -35,7 +35,7 @@ export class ImageRemoveAsyncResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The status code, such as
|
|
38
|
+
* The status code, such as success.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -48,7 +48,7 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: ImageRemoveAsyncResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message, such as "The
|
|
51
|
+
* The error message, such as \\"The parameter contains sensitive information. Please try another input.\\"
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* OK
|
|
@@ -56,7 +56,7 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request ID, which is used to identify a unique request.
|
|
59
|
+
* The request ID, which is used to identify a unique request call.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -64,9 +64,7 @@ export class ImageRemoveAsyncResponseBody extends $dara.Model {
|
|
|
64
64
|
requestId?: string;
|
|
65
65
|
/**
|
|
66
66
|
* @remarks
|
|
67
|
-
* Indicates whether the call is successful. Valid values:
|
|
68
|
-
* - true: The call is successful.
|
|
69
|
-
* - false: The call fails.
|
|
67
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
|
|
70
68
|
*
|
|
71
69
|
* @example
|
|
72
70
|
* True
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business order ID of the caller.
|
|
8
|
+
* The business order ID of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -13,7 +13,7 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
13
13
|
bizId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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
|
|
16
|
+
* 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 must not exceed 10 MB.
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -23,9 +23,7 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The specific area to
|
|
27
|
-
* 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.
|
|
28
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
26
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is RLE. 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 not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
29
27
|
*
|
|
30
28
|
* @example
|
|
31
29
|
* "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"
|
|
@@ -38,21 +36,12 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
38
36
|
nonObjectRemoveElementsShrink?: string;
|
|
39
37
|
/**
|
|
40
38
|
* @remarks
|
|
41
|
-
* The types of elements to remove from the image subject. Valid values:
|
|
42
|
-
* - 1: Transparent text blocks.
|
|
43
|
-
* - 2: Specific names.
|
|
44
|
-
* - 3: Text.
|
|
45
|
-
* - 4: Promotional stickers.
|
|
46
|
-
* 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.
|
|
47
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
48
|
-
* For more information about each type, see the product documentation.
|
|
49
|
-
* Image subject: the core product area in the image.
|
|
39
|
+
* The types of elements to remove from the image subject. Valid values: 1: transparent text blocks. 2: specific names. 3: text. 4: watermarks. You can select multiple element types. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements. For more information about each type, see the product documentation. Image subject: the core product area in the image.
|
|
50
40
|
*/
|
|
51
41
|
objectRemoveElementsShrink?: string;
|
|
52
42
|
/**
|
|
53
43
|
* @remarks
|
|
54
|
-
* The specific area to
|
|
55
|
-
* If multiple parameters are specified, the priority is as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
44
|
+
* The specific area to remove. This parameter must be used in conjunction with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but you must specify at least one of the following parameters: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, and UserImage. If multiple parameters are specified, the priority takes effect as follows: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
|
|
56
45
|
*
|
|
57
46
|
* @example
|
|
58
47
|
* [10,20,100,200]
|
|
@@ -60,12 +49,12 @@ export class ImageRemoveAsyncShrinkRequest extends $dara.Model {
|
|
|
60
49
|
position?: string;
|
|
61
50
|
/**
|
|
62
51
|
* @remarks
|
|
63
|
-
* The list of URLs
|
|
52
|
+
* The list of URLs of image elements to remove specified by the user.
|
|
64
53
|
*/
|
|
65
54
|
userImageShrink?: string;
|
|
66
55
|
/**
|
|
67
56
|
* @remarks
|
|
68
|
-
* The list of
|
|
57
|
+
* The list of text strings to remove specified by the user.
|
|
69
58
|
*/
|
|
70
59
|
userTextShrink?: string;
|
|
71
60
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The business order
|
|
8
|
+
* The business order number of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* order-20260928-001
|
|
@@ -13,7 +13,7 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
13
13
|
bizId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The intervention glossary
|
|
16
|
+
* The ID of the intervention glossary. The intervention glossary ID must be created separately and provided in the input parameters. If the provided intervention glossary ID is empty, the translation results will not be modified.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* glossary_1
|
|
@@ -21,10 +21,10 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
21
21
|
glossary?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* * Image URL:
|
|
25
|
-
* * Format: PNG, JPEG, JPG, BMP, or
|
|
26
|
-
* * Resolution: The width and height
|
|
27
|
-
* * File size: The original file
|
|
24
|
+
* * Image URL: Must be publicly accessible over the Internet.
|
|
25
|
+
* * Format: PNG, JPEG, JPG, BMP, or WebP.
|
|
26
|
+
* * Resolution: The width and height must not exceed 4,000 pixels.
|
|
27
|
+
* * File size: The original file must be less than or equal to 10 MB.
|
|
28
28
|
*
|
|
29
29
|
* This parameter is required.
|
|
30
30
|
*
|
|
@@ -34,7 +34,7 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
34
34
|
imageUrl?: string;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information
|
|
37
|
+
* Specifies whether to translate the text on the image subject. This helps you protect information and prevent embedded information such as product names from being translated. In the example image, the text in the red box represents the text on the subject, and the text in the blue box represents the text not on the subject.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* false
|
|
@@ -52,7 +52,7 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
52
52
|
sourceLanguage?: string;
|
|
53
53
|
/**
|
|
54
54
|
* @remarks
|
|
55
|
-
* The target language code. We recommend
|
|
55
|
+
* The target language code. We recommend using the 12 minor language pairs listed above.
|
|
56
56
|
*
|
|
57
57
|
* This parameter is required.
|
|
58
58
|
*
|
|
@@ -62,7 +62,7 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
62
62
|
targetLanguage?: string;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to translate the brand
|
|
65
|
+
* Specifies whether to translate the brand names in the image. This helps you protect brand name information from being translated. Default value: false, which indicates that brand names are not translated. In the example image, "Lazy Corner" represents the brand name.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -70,7 +70,7 @@ export class ImageTranslationPlusAsyncRequest extends $dara.Model {
|
|
|
70
70
|
translatingBrandInTheProduct?: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* @remarks
|
|
73
|
-
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when
|
|
73
|
+
* Specifies whether to return layout information such as the position, font, and color of the text. This can be used to obtain data when integrating the image editor for secondary editing. You can call the image translation result query API to obtain the complete parameter information.
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* false
|