@alicloud/aidge20260428 5.7.0 → 5.8.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 +286 -78
- package/dist/client.js +405 -78
- package/dist/client.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +11 -2
- package/dist/models/AiTryOnRequest.js.map +1 -1
- package/dist/models/AiTryOnResponseBody.d.ts +35 -1
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DiduiAreaDeductionProRequest.d.ts +33 -0
- package/dist/models/DiduiAreaDeductionProRequest.js +60 -0
- package/dist/models/DiduiAreaDeductionProRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionProResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionProResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +70 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js +88 -0
- package/dist/models/DiduiAreaDeductionProResponseBody.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js +58 -0
- package/dist/models/GeneralRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js +69 -0
- package/dist/models/GeneralRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/GeneralRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +10 -10
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionProRequest.d.ts +39 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js +62 -0
- package/dist/models/MerchandisePlacementDetectionProRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionProResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.d.ts +118 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js +124 -0
- package/dist/models/MerchandisePlacementDetectionProResponseBody.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +13 -5
- package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +7 -7
- package/dist/models/PetHealthAnalysisRequest.d.ts +36 -0
- package/dist/models/PetHealthAnalysisRequest.js +65 -0
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponse.d.ts +19 -0
- package/dist/models/PetHealthAnalysisResponse.js +69 -0
- package/dist/models/PetHealthAnalysisResponse.js.map +1 -0
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +70 -0
- package/dist/models/PetHealthAnalysisResponseBody.js +88 -0
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +36 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js +62 -0
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +6 -6
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
- package/dist/models/model.d.ts +21 -0
- package/dist/models/model.js +46 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +424 -78
- package/src/models/AiTryOnRequest.ts +11 -2
- package/src/models/AiTryOnResponseBody.ts +35 -1
- package/src/models/DiduiAreaDeductionProRequest.ts +48 -0
- package/src/models/DiduiAreaDeductionProResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionProResponseBody.ts +104 -0
- package/src/models/GeneralRephotographyDetectionRequest.ts +36 -0
- package/src/models/GeneralRephotographyDetectionResponse.ts +40 -0
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +1 -1
- package/src/models/ImageTranslationProRequest.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +10 -10
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/MerchandisePlacementDetectionProRequest.ts +56 -0
- package/src/models/MerchandisePlacementDetectionProResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionProResponseBody.ts +177 -0
- package/src/models/MerchandisePlacementDetectionRequest.ts +15 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +7 -7
- package/src/models/PetHealthAnalysisRequest.ts +56 -0
- package/src/models/PetHealthAnalysisResponse.ts +40 -0
- package/src/models/PetHealthAnalysisResponseBody.ts +104 -0
- package/src/models/PetHealthAnalysisShrinkRequest.ts +53 -0
- package/src/models/TextTranslateRequest.ts +6 -6
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +6 -6
- package/src/models/model.ts +21 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationStandardRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The intervention glossary ID.
|
|
8
|
+
* The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -13,10 +13,10 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
13
13
|
glossary?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* - Image URL:
|
|
17
|
-
* - Format: png, jpeg, jpg, bmp, webp
|
|
18
|
-
* - Pixels:
|
|
19
|
-
* - File size:
|
|
16
|
+
* - Image URL: The URL must be publicly accessible.
|
|
17
|
+
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
18
|
+
* - Pixels: The width and height must not exceed 4000 pixels each.
|
|
19
|
+
* - File size: The original file must be 10 MB or smaller.
|
|
20
20
|
*
|
|
21
21
|
* This parameter is required.
|
|
22
22
|
*
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the product area of
|
|
29
|
+
* Specifies whether to translate text on the product area of the image. This parameter is optional. Default value: false. This helps protect information by preventing translation of embedded content such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -34,7 +34,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
34
34
|
includingProductArea?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The source language code.
|
|
37
|
+
* The source language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
38
38
|
*
|
|
39
39
|
* This parameter is required.
|
|
40
40
|
*
|
|
@@ -44,7 +44,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
44
44
|
sourceLanguage?: string;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The target language code.
|
|
47
|
+
* The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
48
48
|
*
|
|
49
49
|
* This parameter is required.
|
|
50
50
|
*
|
|
@@ -54,7 +54,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
54
54
|
targetLanguage?: string;
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
* Specifies whether to translate brand names on
|
|
57
|
+
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps protect brand name information from being translated.
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* false
|
|
@@ -62,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
62
62
|
translatingBrandInTheProduct?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned
|
|
65
|
+
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned for secondary editing through an image editor. Default value: false.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -207,7 +207,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
|
|
|
207
207
|
language?: string;
|
|
208
208
|
/**
|
|
209
209
|
* @remarks
|
|
210
|
-
* The
|
|
210
|
+
* The number of lines.
|
|
211
211
|
*
|
|
212
212
|
* @example
|
|
213
213
|
* 1
|
|
@@ -322,7 +322,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreas extends $
|
|
|
322
322
|
horizontalLayout?: string;
|
|
323
323
|
/**
|
|
324
324
|
* @remarks
|
|
325
|
-
* The
|
|
325
|
+
* The number of lines.
|
|
326
326
|
*
|
|
327
327
|
* @example
|
|
328
328
|
* 2
|
|
@@ -388,12 +388,12 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
388
388
|
font?: string[];
|
|
389
389
|
/**
|
|
390
390
|
* @remarks
|
|
391
|
-
* The product area
|
|
391
|
+
* The rectangle of the product area.
|
|
392
392
|
*/
|
|
393
393
|
goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
394
394
|
/**
|
|
395
395
|
* @remarks
|
|
396
|
-
* The product image
|
|
396
|
+
* The URL of the product image.
|
|
397
397
|
*
|
|
398
398
|
* @example
|
|
399
399
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
409
409
|
languages?: string[];
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* The original image
|
|
412
|
+
* The URL of the original image.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
417
417
|
pictUrl?: string;
|
|
418
418
|
/**
|
|
419
419
|
* @remarks
|
|
420
|
-
* The repaired image
|
|
420
|
+
* The URL of the repaired image.
|
|
421
421
|
*
|
|
422
422
|
* @example
|
|
423
423
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code.
|
|
571
|
+
* The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -576,7 +576,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
576
576
|
code?: string;
|
|
577
577
|
/**
|
|
578
578
|
* @remarks
|
|
579
|
-
* The translation result data, including the translated image
|
|
579
|
+
* The translation result data, including the URL of the translated image and usage information.
|
|
580
580
|
*/
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionProRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTPS URL of the display image to detect.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/image.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The detection rule. When non-empty, this value takes priority as the model prompt.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* Identify all Genki Forest beverages on the shelf and mark their positions
|
|
22
|
+
*/
|
|
23
|
+
rule?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The product type. This parameter must be set to Genki Forest when Rule is empty.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* 元气森林
|
|
30
|
+
*/
|
|
31
|
+
type?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
imageUrl: 'ImageUrl',
|
|
35
|
+
rule: 'Rule',
|
|
36
|
+
type: 'Type',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static types(): { [key: string]: any } {
|
|
41
|
+
return {
|
|
42
|
+
imageUrl: 'string',
|
|
43
|
+
rule: 'string',
|
|
44
|
+
type: 'string',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { MerchandisePlacementDetectionProResponseBody } from "./MerchandisePlacementDetectionProResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MerchandisePlacementDetectionProResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: MerchandisePlacementDetectionProResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: MerchandisePlacementDetectionProResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionProResponseBodyDataData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The normalized bounding box coordinates [x1,y1,x2,y2], with values in the range 0–1000.
|
|
9
|
+
*/
|
|
10
|
+
bbox2d?: number[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The detected product name. The value is unknown if the name cannot be determined.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* unknown
|
|
17
|
+
*/
|
|
18
|
+
detectedSkuName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The bounding box index, starting from 1.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* 1
|
|
25
|
+
*/
|
|
26
|
+
idx?: number;
|
|
27
|
+
static names(): { [key: string]: string } {
|
|
28
|
+
return {
|
|
29
|
+
bbox2d: 'Bbox2d',
|
|
30
|
+
detectedSkuName: 'DetectedSkuName',
|
|
31
|
+
idx: 'Idx',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
bbox2d: { 'type': 'array', 'itemType': 'number' },
|
|
38
|
+
detectedSkuName: 'string',
|
|
39
|
+
idx: 'number',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
validate() {
|
|
44
|
+
if(Array.isArray(this.bbox2d)) {
|
|
45
|
+
$dara.Model.validateArray(this.bbox2d);
|
|
46
|
+
}
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class MerchandisePlacementDetectionProResponseBodyData extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The number of valid bounding boxes.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* 3
|
|
62
|
+
*/
|
|
63
|
+
boxCount?: number;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The list of per-box detection details.
|
|
67
|
+
*/
|
|
68
|
+
data?: MerchandisePlacementDetectionProResponseBodyDataData[];
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The usage information.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* {"ProcessingCount":1}
|
|
75
|
+
*/
|
|
76
|
+
usageMap?: { [key: string]: number };
|
|
77
|
+
static names(): { [key: string]: string } {
|
|
78
|
+
return {
|
|
79
|
+
boxCount: 'BoxCount',
|
|
80
|
+
data: 'Data',
|
|
81
|
+
usageMap: 'UsageMap',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static types(): { [key: string]: any } {
|
|
86
|
+
return {
|
|
87
|
+
boxCount: 'number',
|
|
88
|
+
data: { 'type': 'array', 'itemType': MerchandisePlacementDetectionProResponseBodyDataData },
|
|
89
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(Array.isArray(this.data)) {
|
|
95
|
+
$dara.Model.validateArray(this.data);
|
|
96
|
+
}
|
|
97
|
+
if(this.usageMap) {
|
|
98
|
+
$dara.Model.validateMap(this.usageMap);
|
|
99
|
+
}
|
|
100
|
+
super.validate();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
constructor(map?: { [key: string]: any }) {
|
|
104
|
+
super(map);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class MerchandisePlacementDetectionProResponseBody extends $dara.Model {
|
|
109
|
+
/**
|
|
110
|
+
* @remarks
|
|
111
|
+
* The error code.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* success
|
|
115
|
+
*/
|
|
116
|
+
code?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The detection result of product display detection Pro.
|
|
120
|
+
*/
|
|
121
|
+
data?: MerchandisePlacementDetectionProResponseBodyData;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The response message or failure description.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* Success
|
|
128
|
+
*/
|
|
129
|
+
message?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The request ID.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
136
|
+
*/
|
|
137
|
+
requestId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* Indicates whether the call is successful.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* True
|
|
144
|
+
*/
|
|
145
|
+
success?: boolean;
|
|
146
|
+
static names(): { [key: string]: string } {
|
|
147
|
+
return {
|
|
148
|
+
code: 'Code',
|
|
149
|
+
data: 'Data',
|
|
150
|
+
message: 'Message',
|
|
151
|
+
requestId: 'RequestId',
|
|
152
|
+
success: 'Success',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static types(): { [key: string]: any } {
|
|
157
|
+
return {
|
|
158
|
+
code: 'string',
|
|
159
|
+
data: MerchandisePlacementDetectionProResponseBodyData,
|
|
160
|
+
message: 'string',
|
|
161
|
+
requestId: 'string',
|
|
162
|
+
success: 'boolean',
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
validate() {
|
|
167
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
168
|
+
(this.data as any).validate();
|
|
169
|
+
}
|
|
170
|
+
super.validate();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under
|
|
8
|
+
* Specify this parameter to use a custom API version. If you created a custom API during the trial phase, you can find the corresponding ApiId in the product console under Intelligent Inspection > API Management > My API.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* api_xxx
|
|
@@ -13,7 +13,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
13
13
|
apiId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The URL of the shelf or floor
|
|
16
|
+
* The URL of the original shelf or floor stack image to be recognized (accessible over the Internet or through OSS).
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
19
19
|
*
|
|
@@ -23,7 +23,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The ID of the customer-specific SKU vector library, which determines which library is used for
|
|
26
|
+
* The ID of the customer-specific SKU vector library, which determines which library is used for retrieval. The library must be created in advance through the library creation process.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* rag_xxx
|
|
@@ -31,10 +31,18 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
31
31
|
ragId?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The
|
|
34
|
+
* The custom rule. Enter a detection prompt as the workflow input parameter rule. When this parameter is specified, the type parameter is not required (a dedicated rule branch is used). If Rule is empty, you must specify Type to start detection.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
*
|
|
37
|
+
* Please identify all visible beverage products in the image and return only a JSON array. Output format example: [{"bbox_2d":[100,200,250,600],"sku_name":"Coca-Cola"}]
|
|
38
|
+
*/
|
|
39
|
+
rule?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The business type (reserved for future routing by business line). The current release supports skincare & lotion.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 水乳
|
|
38
46
|
*/
|
|
39
47
|
type?: string;
|
|
40
48
|
static names(): { [key: string]: string } {
|
|
@@ -42,6 +50,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
42
50
|
apiId: 'ApiId',
|
|
43
51
|
imageUrl: 'ImageUrl',
|
|
44
52
|
ragId: 'RagId',
|
|
53
|
+
rule: 'Rule',
|
|
45
54
|
type: 'Type',
|
|
46
55
|
};
|
|
47
56
|
}
|
|
@@ -51,6 +60,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
|
|
|
51
60
|
apiId: 'string',
|
|
52
61
|
imageUrl: 'string',
|
|
53
62
|
ragId: 'string',
|
|
63
|
+
rule: 'string',
|
|
54
64
|
type: 'string',
|
|
55
65
|
};
|
|
56
66
|
}
|
|
@@ -55,7 +55,7 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTop1 extends $dara
|
|
|
55
55
|
export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara.Model {
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The recall rank
|
|
58
|
+
* The recall rank.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* 1
|
|
@@ -115,15 +115,15 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara
|
|
|
115
115
|
export class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Model {
|
|
116
116
|
/**
|
|
117
117
|
* @remarks
|
|
118
|
-
* The position coordinates
|
|
118
|
+
* The detection box position coordinates in the format [x1,y1,x2,y2].
|
|
119
119
|
*/
|
|
120
120
|
bbox?: number[];
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
* The failure reason for
|
|
123
|
+
* The failure reason for a single detection box. The value is null if the detection is successful.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
|
-
* "
|
|
126
|
+
* "embedding failed"
|
|
127
127
|
*/
|
|
128
128
|
error?: string;
|
|
129
129
|
/**
|
|
@@ -193,7 +193,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
|
|
|
193
193
|
boxCount?: number;
|
|
194
194
|
/**
|
|
195
195
|
* @remarks
|
|
196
|
-
* The list of
|
|
196
|
+
* The list of retrieval details for each detection box.
|
|
197
197
|
*/
|
|
198
198
|
data?: MerchandisePlacementDetectionResponseBodyDataData[];
|
|
199
199
|
/**
|
|
@@ -238,7 +238,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
|
|
|
238
238
|
export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
|
|
239
239
|
/**
|
|
240
240
|
* @remarks
|
|
241
|
-
* The error code. This parameter is not returned
|
|
241
|
+
* The error code. This parameter is not returned for successful calls.
|
|
242
242
|
*
|
|
243
243
|
* @example
|
|
244
244
|
* 200
|
|
@@ -251,7 +251,7 @@ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
|
|
|
251
251
|
data?: MerchandisePlacementDetectionResponseBodyData;
|
|
252
252
|
/**
|
|
253
253
|
* @remarks
|
|
254
|
-
* The error message. This parameter is not returned
|
|
254
|
+
* The error message. This parameter is not returned for successful calls.
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
257
|
* OK
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PetHealthAnalysisRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The list of HTTPS URLs of images to analyze. At least one accessible image must be provided.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*/
|
|
12
|
+
imageUrl?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The system prompt used to specify the response role or requirements. The value must comply with JSON string escaping rules.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* You are a professional veterinarian
|
|
19
|
+
*/
|
|
20
|
+
systemPrompt?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The custom analysis requirement. If not specified or set to an empty string, excrement analysis is performed by default. The value must comply with JSON string escaping rules.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* Please analyze the health condition of this pet
|
|
27
|
+
*/
|
|
28
|
+
userPrompt?: string;
|
|
29
|
+
static names(): { [key: string]: string } {
|
|
30
|
+
return {
|
|
31
|
+
imageUrl: 'ImageUrl',
|
|
32
|
+
systemPrompt: 'SystemPrompt',
|
|
33
|
+
userPrompt: 'UserPrompt',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static types(): { [key: string]: any } {
|
|
38
|
+
return {
|
|
39
|
+
imageUrl: { 'type': 'array', 'itemType': 'string' },
|
|
40
|
+
systemPrompt: 'string',
|
|
41
|
+
userPrompt: 'string',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
validate() {
|
|
46
|
+
if(Array.isArray(this.imageUrl)) {
|
|
47
|
+
$dara.Model.validateArray(this.imageUrl);
|
|
48
|
+
}
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PetHealthAnalysisResponseBody } from "./PetHealthAnalysisResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PetHealthAnalysisResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: PetHealthAnalysisResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: PetHealthAnalysisResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|