@alicloud/aidge20260428 1.0.0 → 3.0.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 +257 -139
- package/dist/client.js +333 -143
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +7 -7
- package/dist/models/ImageMattingResponseBody.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +35 -0
- package/dist/models/ImageRemovalProRequest.js +60 -0
- package/dist/models/ImageRemovalProRequest.js.map +1 -0
- package/dist/models/ImageRemovalProResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProResponse.js +69 -0
- package/dist/models/ImageRemovalProResponse.js.map +1 -0
- package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
- package/dist/models/ImageRemovalProResponseBody.js +95 -0
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -5
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +9 -12
- package/dist/models/ImageTranslationProRequest.js +2 -2
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
- package/dist/models/MaterialInspectionRequest.d.ts +55 -0
- package/dist/models/MaterialInspectionRequest.js +66 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -0
- package/dist/models/MaterialInspectionResponse.d.ts +19 -0
- package/dist/models/MaterialInspectionResponse.js +69 -0
- package/dist/models/MaterialInspectionResponse.js.map +1 -0
- package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
- package/dist/models/MaterialInspectionResponseBody.js +147 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +15 -5
- package/dist/models/TextTranslateRequest.js +4 -0
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
- package/dist/models/TextTranslateShrinkRequest.js +4 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +23 -2
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +347 -144
- package/src/models/DocumentTranslateRequest.ts +3 -3
- package/src/models/DocumentTranslateResponseBody.ts +3 -5
- package/src/models/ImageMattingRequest.ts +7 -7
- package/src/models/ImageMattingResponseBody.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +50 -0
- package/src/models/ImageRemovalProResponse.ts +40 -0
- package/src/models/ImageRemovalProResponseBody.ts +126 -0
- package/src/models/ImageRemoveRequest.ts +15 -5
- package/src/models/ImageRemoveResponseBody.ts +8 -8
- package/src/models/ImageRemoveShrinkRequest.ts +15 -5
- package/src/models/ImageTranslationProRequest.ts +11 -14
- package/src/models/ImageTranslationProResponseBody.ts +19 -19
- package/src/models/MaterialInspectionRequest.ts +76 -0
- package/src/models/MaterialInspectionResponse.ts +40 -0
- package/src/models/MaterialInspectionResponseBody.ts +227 -0
- package/src/models/TextTranslateRequest.ts +19 -5
- package/src/models/TextTranslateResponseBody.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +19 -5
- package/src/models/model.ts +10 -0
package/src/client.ts
CHANGED
|
@@ -11,7 +11,10 @@ export default class Client extends OpenApi {
|
|
|
11
11
|
|
|
12
12
|
constructor(config: $OpenApiUtil.Config) {
|
|
13
13
|
super(config);
|
|
14
|
-
this._endpointRule = "";
|
|
14
|
+
this._endpointRule = "regional";
|
|
15
|
+
this._endpointMap = {
|
|
16
|
+
'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
|
|
17
|
+
};
|
|
15
18
|
this.checkConfig(config);
|
|
16
19
|
this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
17
20
|
}
|
|
@@ -512,25 +515,24 @@ export default class Client extends OpenApi {
|
|
|
512
515
|
}
|
|
513
516
|
|
|
514
517
|
/**
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
* -
|
|
518
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
518
|
+
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
519
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
520
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
519
521
|
*
|
|
520
522
|
* @remarks
|
|
521
523
|
* ## Product Introduction
|
|
522
|
-
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs),
|
|
523
|
-
*
|
|
524
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
525
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
524
|
+
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
|
|
525
|
+
* Excels in the following areas:
|
|
526
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
527
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
526
528
|
* ## Common scenarios
|
|
527
529
|
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
528
530
|
* 3. Features
|
|
529
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
530
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
531
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
|
|
532
|
+
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
531
533
|
* - Supports high-fidelity layout preservation after translation.
|
|
532
|
-
* - A single PDF supports up to 100 pages
|
|
533
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
534
|
+
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
535
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
|
|
534
536
|
*
|
|
535
537
|
* @param request - DocumentTranslateRequest
|
|
536
538
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -573,25 +575,24 @@ export default class Client extends OpenApi {
|
|
|
573
575
|
}
|
|
574
576
|
|
|
575
577
|
/**
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
* -
|
|
579
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
578
|
+
* Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
|
|
579
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
580
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
580
581
|
*
|
|
581
582
|
* @remarks
|
|
582
583
|
* ## Product Introduction
|
|
583
|
-
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs),
|
|
584
|
-
*
|
|
585
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
586
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
584
|
+
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
|
|
585
|
+
* Excels in the following areas:
|
|
586
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
587
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
587
588
|
* ## Common scenarios
|
|
588
589
|
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
589
590
|
* 3. Features
|
|
590
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
591
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
591
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
|
|
592
|
+
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
592
593
|
* - Supports high-fidelity layout preservation after translation.
|
|
593
|
-
* - A single PDF supports up to 100 pages
|
|
594
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
594
|
+
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
595
|
+
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
|
|
595
596
|
*
|
|
596
597
|
* @param request - DocumentTranslateRequest
|
|
597
598
|
* @returns DocumentTranslateResponse
|
|
@@ -692,32 +693,32 @@ export default class Client extends OpenApi {
|
|
|
692
693
|
}
|
|
693
694
|
|
|
694
695
|
/**
|
|
695
|
-
*
|
|
696
|
+
* Automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
|
|
696
697
|
*
|
|
697
698
|
* @remarks
|
|
698
699
|
* ## Product Introduction
|
|
699
|
-
*
|
|
700
|
+
* The intelligent image matting product automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
|
|
700
701
|
* ## Scenarios
|
|
701
702
|
* * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
|
|
702
703
|
*
|
|
703
704
|
* * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
|
|
704
705
|
* ## Features.
|
|
705
706
|
* #### 1. One-click precise subject recognition
|
|
706
|
-
* * **AI automatic recognition**: Based on deep learning models,
|
|
707
|
+
* * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
|
|
707
708
|
*
|
|
708
709
|
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
|
|
709
710
|
* #### 2. Intelligent edge optimization
|
|
710
|
-
* * **Detail-level processing**: Performs automatic optimization
|
|
711
|
+
* * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
|
|
711
712
|
* #### 3. Multi-format output and background operations
|
|
712
713
|
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
|
|
713
714
|
*
|
|
714
|
-
* * **Custom background color support
|
|
715
|
+
* * **Custom background color support**
|
|
715
716
|
* ## Effect comparison
|
|
716
717
|
* | **Original image (input)** | **Result image (output)** |
|
|
717
718
|
* | --- | --- |
|
|
718
719
|
* |  |  |
|
|
719
720
|
* |  |  |
|
|
720
|
-
* |  | 
|
|
721
|
+
* |  |  |
|
|
721
722
|
*
|
|
722
723
|
* @param request - ImageMattingRequest
|
|
723
724
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -764,32 +765,32 @@ export default class Client extends OpenApi {
|
|
|
764
765
|
}
|
|
765
766
|
|
|
766
767
|
/**
|
|
767
|
-
*
|
|
768
|
+
* Automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
|
|
768
769
|
*
|
|
769
770
|
* @remarks
|
|
770
771
|
* ## Product Introduction
|
|
771
|
-
*
|
|
772
|
+
* The intelligent image matting product automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
|
|
772
773
|
* ## Scenarios
|
|
773
774
|
* * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
|
|
774
775
|
*
|
|
775
776
|
* * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
|
|
776
777
|
* ## Features.
|
|
777
778
|
* #### 1. One-click precise subject recognition
|
|
778
|
-
* * **AI automatic recognition**: Based on deep learning models,
|
|
779
|
+
* * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
|
|
779
780
|
*
|
|
780
781
|
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
|
|
781
782
|
* #### 2. Intelligent edge optimization
|
|
782
|
-
* * **Detail-level processing**: Performs automatic optimization
|
|
783
|
+
* * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
|
|
783
784
|
* #### 3. Multi-format output and background operations
|
|
784
785
|
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
|
|
785
786
|
*
|
|
786
|
-
* * **Custom background color support
|
|
787
|
+
* * **Custom background color support**
|
|
787
788
|
* ## Effect comparison
|
|
788
789
|
* | **Original image (input)** | **Result image (output)** |
|
|
789
790
|
* | --- | --- |
|
|
790
791
|
* |  |  |
|
|
791
792
|
* |  |  |
|
|
792
|
-
* |  | 
|
|
793
|
+
* |  |  |
|
|
793
794
|
*
|
|
794
795
|
* @param request - ImageMattingRequest
|
|
795
796
|
* @returns ImageMattingResponse
|
|
@@ -1016,80 +1017,173 @@ export default class Client extends OpenApi {
|
|
|
1016
1017
|
}
|
|
1017
1018
|
|
|
1018
1019
|
/**
|
|
1019
|
-
*
|
|
1020
|
+
* Intelligently identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images, supports specifying objects to remove as needed, enables efficient and precise batch processing of images, and simplifies image editing workflows (synchronous/asynchronous).
|
|
1020
1021
|
*
|
|
1021
1022
|
* @remarks
|
|
1022
|
-
* ## Product
|
|
1023
|
-
* The
|
|
1024
|
-
* ##
|
|
1025
|
-
* * **Efficient
|
|
1023
|
+
* ## Product introduction
|
|
1024
|
+
* The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of images and simplifying image editing workflows. (Synchronous/Asynchronous)
|
|
1025
|
+
* ## Common scenarios
|
|
1026
|
+
* * **Efficient e-commerce image processing:**
|
|
1026
1027
|
*
|
|
1027
|
-
* Remove irrelevant visual elements to provide
|
|
1028
|
-
* * **Multi-platform
|
|
1028
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
1029
|
+
* * **Multi-platform product information synchronization:**
|
|
1029
1030
|
*
|
|
1030
|
-
* When merchants
|
|
1031
|
-
*
|
|
1031
|
+
* When merchants list products across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with image specifications of different platforms.
|
|
1032
|
+
* ## Features
|
|
1033
|
+
* 1. First, clarify the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
|
|
1032
1034
|
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
*
|
|
1035
|
+
* 1. Image subject: the core product area in the image.
|
|
1036
|
+
*
|
|
1037
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
1038
|
+
*
|
|
1039
|
+
* 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1040
|
+
* ## Effect comparison
|
|
1041
|
+
* | **Original image** | **Image after removal** |
|
|
1042
|
+
* | --- | --- |
|
|
1043
|
+
* |  |  |
|
|
1044
|
+
* |  |  |
|
|
1045
|
+
*
|
|
1046
|
+
* @param request - ImageRemovalProRequest
|
|
1047
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1048
|
+
* @returns ImageRemovalProResponse
|
|
1049
|
+
*/
|
|
1050
|
+
async imageRemovalProWithOptions(request: $_model.ImageRemovalProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemovalProResponse> {
|
|
1051
|
+
request.validate();
|
|
1052
|
+
let query = { };
|
|
1053
|
+
if (!$dara.isNull(request.async)) {
|
|
1054
|
+
query["Async"] = request.async;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1058
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1062
|
+
query: OpenApiUtil.query(query),
|
|
1063
|
+
});
|
|
1064
|
+
let params = new $OpenApiUtil.Params({
|
|
1065
|
+
action: "ImageRemovalPro",
|
|
1066
|
+
version: "2026-04-28",
|
|
1067
|
+
protocol: "HTTPS",
|
|
1068
|
+
pathname: "/",
|
|
1069
|
+
method: "POST",
|
|
1070
|
+
authType: "AK",
|
|
1071
|
+
style: "RPC",
|
|
1072
|
+
reqBodyType: "formData",
|
|
1073
|
+
bodyType: "json",
|
|
1074
|
+
});
|
|
1075
|
+
return $dara.cast<$_model.ImageRemovalProResponse>(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Intelligently identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images, supports specifying objects to remove as needed, enables efficient and precise batch processing of images, and simplifies image editing workflows (synchronous/asynchronous).
|
|
1080
|
+
*
|
|
1081
|
+
* @remarks
|
|
1082
|
+
* ## Product introduction
|
|
1083
|
+
* The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of images and simplifying image editing workflows. (Synchronous/Asynchronous)
|
|
1084
|
+
* ## Common scenarios
|
|
1085
|
+
* * **Efficient e-commerce image processing:**
|
|
1037
1086
|
*
|
|
1038
|
-
*
|
|
1087
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
1088
|
+
* * **Multi-platform product information synchronization:**
|
|
1089
|
+
*
|
|
1090
|
+
* When merchants list products across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with image specifications of different platforms.
|
|
1091
|
+
* ## Features
|
|
1092
|
+
* 1. First, clarify the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
|
|
1093
|
+
*
|
|
1094
|
+
* 1. Image subject: the core product area in the image.
|
|
1039
1095
|
*
|
|
1040
|
-
* 2. Image background:
|
|
1096
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
1041
1097
|
*
|
|
1042
|
-
* 2. Second, the
|
|
1098
|
+
* 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1099
|
+
* ## Effect comparison
|
|
1100
|
+
* | **Original image** | **Image after removal** |
|
|
1101
|
+
* | --- | --- |
|
|
1102
|
+
* |  |  |
|
|
1103
|
+
* |  |  |
|
|
1104
|
+
*
|
|
1105
|
+
* @param request - ImageRemovalProRequest
|
|
1106
|
+
* @returns ImageRemovalProResponse
|
|
1107
|
+
*/
|
|
1108
|
+
async imageRemovalPro(request: $_model.ImageRemovalProRequest): Promise<$_model.ImageRemovalProResponse> {
|
|
1109
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1110
|
+
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and image blemishes, with support for specifying objects to erase as needed for efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
|
|
1115
|
+
*
|
|
1116
|
+
* @remarks
|
|
1117
|
+
* ## Product Introduction
|
|
1118
|
+
* The intelligent image erasure product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
|
|
1119
|
+
* ## Scenarios
|
|
1120
|
+
* * **Efficient e-commerce image processing:**
|
|
1043
1121
|
*
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1122
|
+
* Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
|
|
1123
|
+
* * **Multi-platform product information synchronization:**
|
|
1124
|
+
*
|
|
1125
|
+
* When merchants list products across different e-commerce platforms, they can quickly erase specific text and image blemishes to comply with different platform image requirements.
|
|
1126
|
+
* * **Marketing material preparation:**
|
|
1127
|
+
*
|
|
1128
|
+
* Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
|
|
1129
|
+
* > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this API in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and image blemishes, then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition," while the Intelligent Erasure API focuses on "erasure." By calling them sequentially, you can maximize erasure effectiveness and reduce false removals and false identifications.
|
|
1130
|
+
* ## Features
|
|
1131
|
+
* 1. First, understand the definitions of image subject and image background. When specifying erasure objects, you can choose whether the erasure scope covers the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
|
|
1132
|
+
*
|
|
1133
|
+
* 1. Image subject: The core product area in the image.
|
|
1134
|
+
*
|
|
1135
|
+
* 2. Image background: The remaining portion of the image outside the product subject.
|
|
1136
|
+
*
|
|
1137
|
+
* 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1138
|
+
* ## Effect comparison
|
|
1139
|
+
* | **Erasable objects in images** | **Original image** | **Image after erasure** |
|
|
1046
1140
|
* | --- | --- | --- |
|
|
1047
|
-
* | Text | *
|
|
1141
|
+
* | Text | * Involves the image subject area
|
|
1048
1142
|
*
|
|
1049
1143
|
* 
|
|
1050
1144
|
*
|
|
1051
|
-
* *
|
|
1145
|
+
* * Does not involve the image subject area
|
|
1052
1146
|
*
|
|
1053
|
-
*  | *
|
|
1147
|
+
*  | * Involves the image subject area
|
|
1054
1148
|
*
|
|
1055
1149
|
* 
|
|
1056
|
-
* *
|
|
1150
|
+
* * Does not involve the image subject area
|
|
1057
1151
|
*
|
|
1058
1152
|
*  |
|
|
1059
|
-
* | Specific
|
|
1153
|
+
* | Specific names | * Involves the image subject area
|
|
1060
1154
|
*
|
|
1061
1155
|
* 
|
|
1062
1156
|
*
|
|
1063
|
-
* *
|
|
1157
|
+
* * Does not involve the image subject area
|
|
1064
1158
|
*
|
|
1065
|
-
*  | *
|
|
1159
|
+
*  | * Involves the image subject area
|
|
1066
1160
|
*
|
|
1067
1161
|
* 
|
|
1068
|
-
* *
|
|
1162
|
+
* * Does not involve the image subject area
|
|
1069
1163
|
*
|
|
1070
1164
|
*  |
|
|
1071
|
-
* | Transparent
|
|
1165
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
1072
1166
|
*
|
|
1073
1167
|
* 
|
|
1074
1168
|
*
|
|
1075
|
-
* *
|
|
1169
|
+
* * Does not involve the image subject area
|
|
1076
1170
|
*
|
|
1077
|
-
*  | *
|
|
1171
|
+
*  | * Involves the image subject area
|
|
1078
1172
|
*
|
|
1079
1173
|
* 
|
|
1080
|
-
* *
|
|
1174
|
+
* * Does not involve the image subject area
|
|
1081
1175
|
*
|
|
1082
1176
|
*  |
|
|
1083
|
-
* |
|
|
1177
|
+
* | Image blemishes | * Involves the image subject area
|
|
1084
1178
|
*
|
|
1085
1179
|
* 
|
|
1086
1180
|
*
|
|
1087
|
-
* *
|
|
1181
|
+
* * Does not involve the image subject area
|
|
1088
1182
|
*
|
|
1089
|
-
*  | *
|
|
1183
|
+
*  | * Involves the image subject area
|
|
1090
1184
|
*
|
|
1091
1185
|
* 
|
|
1092
|
-
* *
|
|
1186
|
+
* * Does not involve the image subject area
|
|
1093
1187
|
*
|
|
1094
1188
|
*  |
|
|
1095
1189
|
*
|
|
@@ -1144,80 +1238,79 @@ export default class Client extends OpenApi {
|
|
|
1144
1238
|
}
|
|
1145
1239
|
|
|
1146
1240
|
/**
|
|
1147
|
-
*
|
|
1241
|
+
* Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and image blemishes, with support for specifying objects to erase as needed for efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
|
|
1148
1242
|
*
|
|
1149
1243
|
* @remarks
|
|
1150
|
-
* ## Product
|
|
1151
|
-
* The
|
|
1152
|
-
* ##
|
|
1153
|
-
* * **Efficient
|
|
1244
|
+
* ## Product Introduction
|
|
1245
|
+
* The intelligent image erasure product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
|
|
1246
|
+
* ## Scenarios
|
|
1247
|
+
* * **Efficient e-commerce image processing:**
|
|
1154
1248
|
*
|
|
1155
|
-
*
|
|
1156
|
-
* * **Multi-platform
|
|
1249
|
+
* Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
|
|
1250
|
+
* * **Multi-platform product information synchronization:**
|
|
1157
1251
|
*
|
|
1158
|
-
* When merchants
|
|
1159
|
-
* * **Marketing
|
|
1252
|
+
* When merchants list products across different e-commerce platforms, they can quickly erase specific text and image blemishes to comply with different platform image requirements.
|
|
1253
|
+
* * **Marketing material preparation:**
|
|
1160
1254
|
*
|
|
1161
|
-
* Merchants can easily remove existing promotional information and quickly update
|
|
1162
|
-
* > Note: Merchants or platforms can batch
|
|
1163
|
-
* ##
|
|
1164
|
-
* 1. First,
|
|
1255
|
+
* Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
|
|
1256
|
+
* > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this API in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and image blemishes, then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition," while the Intelligent Erasure API focuses on "erasure." By calling them sequentially, you can maximize erasure effectiveness and reduce false removals and false identifications.
|
|
1257
|
+
* ## Features
|
|
1258
|
+
* 1. First, understand the definitions of image subject and image background. When specifying erasure objects, you can choose whether the erasure scope covers the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
|
|
1165
1259
|
*
|
|
1166
|
-
* 1. Image subject: The core product area in the image
|
|
1260
|
+
* 1. Image subject: The core product area in the image.
|
|
1167
1261
|
*
|
|
1168
|
-
* 2. Image background: The remaining portion of the image
|
|
1262
|
+
* 2. Image background: The remaining portion of the image outside the product subject.
|
|
1169
1263
|
*
|
|
1170
|
-
* 2.
|
|
1171
|
-
*
|
|
1172
|
-
*
|
|
1173
|
-
* | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
|
|
1264
|
+
* 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations:
|
|
1265
|
+
* ## Effect comparison
|
|
1266
|
+
* | **Erasable objects in images** | **Original image** | **Image after erasure** |
|
|
1174
1267
|
* | --- | --- | --- |
|
|
1175
|
-
* | Text | *
|
|
1268
|
+
* | Text | * Involves the image subject area
|
|
1176
1269
|
*
|
|
1177
1270
|
* 
|
|
1178
1271
|
*
|
|
1179
|
-
* *
|
|
1272
|
+
* * Does not involve the image subject area
|
|
1180
1273
|
*
|
|
1181
|
-
*  | *
|
|
1274
|
+
*  | * Involves the image subject area
|
|
1182
1275
|
*
|
|
1183
1276
|
* 
|
|
1184
|
-
* *
|
|
1277
|
+
* * Does not involve the image subject area
|
|
1185
1278
|
*
|
|
1186
1279
|
*  |
|
|
1187
|
-
* | Specific
|
|
1280
|
+
* | Specific names | * Involves the image subject area
|
|
1188
1281
|
*
|
|
1189
1282
|
* 
|
|
1190
1283
|
*
|
|
1191
|
-
* *
|
|
1284
|
+
* * Does not involve the image subject area
|
|
1192
1285
|
*
|
|
1193
|
-
*  | *
|
|
1286
|
+
*  | * Involves the image subject area
|
|
1194
1287
|
*
|
|
1195
1288
|
* 
|
|
1196
|
-
* *
|
|
1289
|
+
* * Does not involve the image subject area
|
|
1197
1290
|
*
|
|
1198
1291
|
*  |
|
|
1199
|
-
* | Transparent
|
|
1292
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
1200
1293
|
*
|
|
1201
1294
|
* 
|
|
1202
1295
|
*
|
|
1203
|
-
* *
|
|
1296
|
+
* * Does not involve the image subject area
|
|
1204
1297
|
*
|
|
1205
|
-
*  | *
|
|
1298
|
+
*  | * Involves the image subject area
|
|
1206
1299
|
*
|
|
1207
1300
|
* 
|
|
1208
|
-
* *
|
|
1301
|
+
* * Does not involve the image subject area
|
|
1209
1302
|
*
|
|
1210
1303
|
*  |
|
|
1211
|
-
* |
|
|
1304
|
+
* | Image blemishes | * Involves the image subject area
|
|
1212
1305
|
*
|
|
1213
1306
|
* 
|
|
1214
1307
|
*
|
|
1215
|
-
* *
|
|
1308
|
+
* * Does not involve the image subject area
|
|
1216
1309
|
*
|
|
1217
|
-
*  | *
|
|
1310
|
+
*  | * Involves the image subject area
|
|
1218
1311
|
*
|
|
1219
1312
|
* 
|
|
1220
|
-
* *
|
|
1313
|
+
* * Does not involve the image subject area
|
|
1221
1314
|
*
|
|
1222
1315
|
*  |
|
|
1223
1316
|
*
|
|
@@ -1230,18 +1323,18 @@ export default class Client extends OpenApi {
|
|
|
1230
1323
|
}
|
|
1231
1324
|
|
|
1232
1325
|
/**
|
|
1233
|
-
*
|
|
1326
|
+
* Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
|
|
1234
1327
|
*
|
|
1235
1328
|
* @remarks
|
|
1236
1329
|
* ## Product Introduction
|
|
1237
|
-
* Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal
|
|
1330
|
+
* The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
|
|
1238
1331
|
* ## Scenarios
|
|
1239
1332
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1240
1333
|
* ## Features
|
|
1241
|
-
* - **Product subject
|
|
1242
|
-
* - **Post-translation editing**:
|
|
1243
|
-
* - **Brand name protection**:
|
|
1244
|
-
* - **Translation intervention**:
|
|
1334
|
+
* - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
|
|
1335
|
+
* - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
1336
|
+
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1337
|
+
* - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1245
1338
|
*
|
|
1246
1339
|
* @param request - ImageTranslationProRequest
|
|
1247
1340
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1250,6 +1343,10 @@ export default class Client extends OpenApi {
|
|
|
1250
1343
|
async imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse> {
|
|
1251
1344
|
request.validate();
|
|
1252
1345
|
let body : {[key: string ]: any} = { };
|
|
1346
|
+
if (!$dara.isNull(request.async)) {
|
|
1347
|
+
body["Async"] = request.async;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1253
1350
|
if (!$dara.isNull(request.glossary)) {
|
|
1254
1351
|
body["Glossary"] = request.glossary;
|
|
1255
1352
|
}
|
|
@@ -1278,10 +1375,6 @@ export default class Client extends OpenApi {
|
|
|
1278
1375
|
body["UseImageEditor"] = request.useImageEditor;
|
|
1279
1376
|
}
|
|
1280
1377
|
|
|
1281
|
-
if (!$dara.isNull(request.callType)) {
|
|
1282
|
-
body["callType"] = request.callType;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
1378
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1286
1379
|
body: OpenApiUtil.parseToMap(body),
|
|
1287
1380
|
});
|
|
@@ -1300,18 +1393,18 @@ export default class Client extends OpenApi {
|
|
|
1300
1393
|
}
|
|
1301
1394
|
|
|
1302
1395
|
/**
|
|
1303
|
-
*
|
|
1396
|
+
* Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
|
|
1304
1397
|
*
|
|
1305
1398
|
* @remarks
|
|
1306
1399
|
* ## Product Introduction
|
|
1307
|
-
* Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal
|
|
1400
|
+
* The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
|
|
1308
1401
|
* ## Scenarios
|
|
1309
1402
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1310
1403
|
* ## Features
|
|
1311
|
-
* - **Product subject
|
|
1312
|
-
* - **Post-translation editing**:
|
|
1313
|
-
* - **Brand name protection**:
|
|
1314
|
-
* - **Translation intervention**:
|
|
1404
|
+
* - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
|
|
1405
|
+
* - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
|
|
1406
|
+
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1407
|
+
* - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1315
1408
|
*
|
|
1316
1409
|
* @param request - ImageTranslationProRequest
|
|
1317
1410
|
* @returns ImageTranslationProResponse
|
|
@@ -1453,6 +1546,108 @@ export default class Client extends OpenApi {
|
|
|
1453
1546
|
return await this.languageDetectWithOptions(request, runtime);
|
|
1454
1547
|
}
|
|
1455
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* Material display detection is an intelligent compliance detection capability for in-store marketing materials built on multimodal large language models (MLLMs). It is designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as function card stands, posters, and door-shaped display stands, as well as long-tail materials such as light box fabrics, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and Chinese evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
|
|
1551
|
+
*
|
|
1552
|
+
* @remarks
|
|
1553
|
+
* ## **Common scenarios**
|
|
1554
|
+
* - **In-store marketing material compliance inspection**: Automatically determines whether a store has placed or posted specified marketing materials (function card stands, posters, door-shaped display stands, etc.) according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "placement fault," or "content mismatch."
|
|
1555
|
+
*
|
|
1556
|
+
* - **New product or campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials in store photos have been listed as required for publishing, overriding manual spot checks.
|
|
1557
|
+
*
|
|
1558
|
+
* - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode uses automatic switchover based on whether `ImageRefer` is provided. The caller does not need to differentiate between invocation methods.
|
|
1559
|
+
* ## **Features**
|
|
1560
|
+
* - **Multi-mode intelligent routing**: The service has built-in material type parsing capabilities. It automatically identifies the target material type from the `Rules` natural language text and routes the request to the corresponding detection pipeline. The caller only needs to provide image URLs and rule text. Four detection routing pipelines are currently supported: "function card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
|
|
1561
|
+
*
|
|
1562
|
+
* - **MLLM semantic-level understanding + structured rule coordination**: A multimodal large language model performs semantic-level understanding tasks such as material recognition, content comparison, and text OCR. Combined with rule cleaning and a structuring model, natural language rules are broken down into individually evaluable steps (S1, S2, ...), ensuring both accuracy and rule flexibility with full traceability.
|
|
1563
|
+
*
|
|
1564
|
+
* - **Structured inspection conclusion output**: The output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logically ANDing all step results. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
1565
|
+
*
|
|
1566
|
+
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) call modes are supported, with an identical output structure.
|
|
1567
|
+
* ## **How to invoke**
|
|
1568
|
+
* - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
1569
|
+
*
|
|
1570
|
+
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
1571
|
+
*
|
|
1572
|
+
* - **Timeout settings**: Set the request timeout to no less than the maximum response time of the API (refer to the official release for the specific value).
|
|
1573
|
+
*
|
|
1574
|
+
* @param request - MaterialInspectionRequest
|
|
1575
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1576
|
+
* @returns MaterialInspectionResponse
|
|
1577
|
+
*/
|
|
1578
|
+
async materialInspectionWithOptions(request: $_model.MaterialInspectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MaterialInspectionResponse> {
|
|
1579
|
+
request.validate();
|
|
1580
|
+
let query = { };
|
|
1581
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1582
|
+
query["ApiId"] = request.apiId;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
if (!$dara.isNull(request.imageRefer)) {
|
|
1586
|
+
query["ImageRefer"] = request.imageRefer;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1590
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
if (!$dara.isNull(request.reqId)) {
|
|
1594
|
+
query["ReqId"] = request.reqId;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
if (!$dara.isNull(request.rules)) {
|
|
1598
|
+
query["Rules"] = request.rules;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1602
|
+
query: OpenApiUtil.query(query),
|
|
1603
|
+
});
|
|
1604
|
+
let params = new $OpenApiUtil.Params({
|
|
1605
|
+
action: "MaterialInspection",
|
|
1606
|
+
version: "2026-04-28",
|
|
1607
|
+
protocol: "HTTPS",
|
|
1608
|
+
pathname: "/",
|
|
1609
|
+
method: "POST",
|
|
1610
|
+
authType: "AK",
|
|
1611
|
+
style: "RPC",
|
|
1612
|
+
reqBodyType: "formData",
|
|
1613
|
+
bodyType: "json",
|
|
1614
|
+
});
|
|
1615
|
+
return $dara.cast<$_model.MaterialInspectionResponse>(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Material display detection is an intelligent compliance detection capability for in-store marketing materials built on multimodal large language models (MLLMs). It is designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as function card stands, posters, and door-shaped display stands, as well as long-tail materials such as light box fabrics, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and Chinese evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
|
|
1620
|
+
*
|
|
1621
|
+
* @remarks
|
|
1622
|
+
* ## **Common scenarios**
|
|
1623
|
+
* - **In-store marketing material compliance inspection**: Automatically determines whether a store has placed or posted specified marketing materials (function card stands, posters, door-shaped display stands, etc.) according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "placement fault," or "content mismatch."
|
|
1624
|
+
*
|
|
1625
|
+
* - **New product or campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials in store photos have been listed as required for publishing, overriding manual spot checks.
|
|
1626
|
+
*
|
|
1627
|
+
* - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode uses automatic switchover based on whether `ImageRefer` is provided. The caller does not need to differentiate between invocation methods.
|
|
1628
|
+
* ## **Features**
|
|
1629
|
+
* - **Multi-mode intelligent routing**: The service has built-in material type parsing capabilities. It automatically identifies the target material type from the `Rules` natural language text and routes the request to the corresponding detection pipeline. The caller only needs to provide image URLs and rule text. Four detection routing pipelines are currently supported: "function card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
|
|
1630
|
+
*
|
|
1631
|
+
* - **MLLM semantic-level understanding + structured rule coordination**: A multimodal large language model performs semantic-level understanding tasks such as material recognition, content comparison, and text OCR. Combined with rule cleaning and a structuring model, natural language rules are broken down into individually evaluable steps (S1, S2, ...), ensuring both accuracy and rule flexibility with full traceability.
|
|
1632
|
+
*
|
|
1633
|
+
* - **Structured inspection conclusion output**: The output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logically ANDing all step results. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
|
|
1634
|
+
*
|
|
1635
|
+
* - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) call modes are supported, with an identical output structure.
|
|
1636
|
+
* ## **How to invoke**
|
|
1637
|
+
* - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
1638
|
+
*
|
|
1639
|
+
* - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
|
|
1640
|
+
*
|
|
1641
|
+
* - **Timeout settings**: Set the request timeout to no less than the maximum response time of the API (refer to the official release for the specific value).
|
|
1642
|
+
*
|
|
1643
|
+
* @param request - MaterialInspectionRequest
|
|
1644
|
+
* @returns MaterialInspectionResponse
|
|
1645
|
+
*/
|
|
1646
|
+
async materialInspection(request: $_model.MaterialInspectionRequest): Promise<$_model.MaterialInspectionResponse> {
|
|
1647
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1648
|
+
return await this.materialInspectionWithOptions(request, runtime);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1456
1651
|
/**
|
|
1457
1652
|
* An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
|
|
1458
1653
|
*
|
|
@@ -2034,28 +2229,28 @@ export default class Client extends OpenApi {
|
|
|
2034
2229
|
}
|
|
2035
2230
|
|
|
2036
2231
|
/**
|
|
2037
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2232
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2038
2233
|
*
|
|
2039
2234
|
* @remarks
|
|
2040
2235
|
* ## Product Introduction
|
|
2041
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2236
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2042
2237
|
* ## Common scenarios
|
|
2043
|
-
* - Product titles: Marco MT
|
|
2044
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco
|
|
2045
|
-
* - Product attributes: Product attribute terms are
|
|
2046
|
-
* - Customer service conversations: In customer service scenarios,
|
|
2047
|
-
* Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2238
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
2239
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
2240
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2241
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
2242
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2048
2243
|
* ## Features
|
|
2049
|
-
* - **Supported language directions** Marco MT supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in
|
|
2050
|
-
* - **Ultra-low hallucination rate and high-speed inference** Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it
|
|
2244
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
|
|
2245
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
2051
2246
|
* - **Supported text format types** Currently supports text and html text types.
|
|
2052
|
-
* - **Translation intervention** Supports custom translation results, including do-not-translate (ABC
|
|
2247
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform for additional capacity.
|
|
2053
2248
|
* ## Translation quality comparison
|
|
2054
2249
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2055
2250
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2056
2251
|
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
2057
2252
|
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
|
|
2058
|
-
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject
|
|
2253
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject expression as "key bag" rather than "keychain". Other translations may cause ambiguity about the product subject |
|
|
2059
2254
|
*
|
|
2060
2255
|
* @param tmpReq - TextTranslateRequest
|
|
2061
2256
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2070,6 +2265,10 @@ export default class Client extends OpenApi {
|
|
|
2070
2265
|
}
|
|
2071
2266
|
|
|
2072
2267
|
let body : {[key: string ]: any} = { };
|
|
2268
|
+
if (!$dara.isNull(request.bizName)) {
|
|
2269
|
+
body["BizName"] = request.bizName;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2073
2272
|
if (!$dara.isNull(request.formatType)) {
|
|
2074
2273
|
body["FormatType"] = request.formatType;
|
|
2075
2274
|
}
|
|
@@ -2090,6 +2289,10 @@ export default class Client extends OpenApi {
|
|
|
2090
2289
|
body["TargetLanguage"] = request.targetLanguage;
|
|
2091
2290
|
}
|
|
2092
2291
|
|
|
2292
|
+
if (!$dara.isNull(request.translateScene)) {
|
|
2293
|
+
body["TranslateScene"] = request.translateScene;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2093
2296
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2094
2297
|
body: OpenApiUtil.parseToMap(body),
|
|
2095
2298
|
});
|
|
@@ -2108,28 +2311,28 @@ export default class Client extends OpenApi {
|
|
|
2108
2311
|
}
|
|
2109
2312
|
|
|
2110
2313
|
/**
|
|
2111
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2314
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2112
2315
|
*
|
|
2113
2316
|
* @remarks
|
|
2114
2317
|
* ## Product Introduction
|
|
2115
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2318
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
|
|
2116
2319
|
* ## Common scenarios
|
|
2117
|
-
* - Product titles: Marco MT
|
|
2118
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco
|
|
2119
|
-
* - Product attributes: Product attribute terms are
|
|
2120
|
-
* - Customer service conversations: In customer service scenarios,
|
|
2121
|
-
* Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2320
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
2321
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
2322
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2323
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
2324
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2122
2325
|
* ## Features
|
|
2123
|
-
* - **Supported language directions** Marco MT supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in
|
|
2124
|
-
* - **Ultra-low hallucination rate and high-speed inference** Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it
|
|
2326
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
|
|
2327
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
2125
2328
|
* - **Supported text format types** Currently supports text and html text types.
|
|
2126
|
-
* - **Translation intervention** Supports custom translation results, including do-not-translate (ABC
|
|
2329
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform for additional capacity.
|
|
2127
2330
|
* ## Translation quality comparison
|
|
2128
2331
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2129
2332
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2130
2333
|
* | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
|
|
2131
2334
|
* | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
|
|
2132
|
-
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject
|
|
2335
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject expression as "key bag" rather than "keychain". Other translations may cause ambiguity about the product subject |
|
|
2133
2336
|
*
|
|
2134
2337
|
* @param request - TextTranslateRequest
|
|
2135
2338
|
* @returns TextTranslateResponse
|