@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/dist/client.js
CHANGED
|
@@ -48,7 +48,10 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
48
|
class Client extends openapi_core_1.default {
|
|
49
49
|
constructor(config) {
|
|
50
50
|
super(config);
|
|
51
|
-
this._endpointRule = "";
|
|
51
|
+
this._endpointRule = "regional";
|
|
52
|
+
this._endpointMap = {
|
|
53
|
+
'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
|
|
54
|
+
};
|
|
52
55
|
this.checkConfig(config);
|
|
53
56
|
this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
54
57
|
}
|
|
@@ -498,25 +501,24 @@ class Client extends openapi_core_1.default {
|
|
|
498
501
|
return await this.categoryMatchWithOptions(request, runtime);
|
|
499
502
|
}
|
|
500
503
|
/**
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
* -
|
|
504
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
504
|
+
* 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:
|
|
505
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
506
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
505
507
|
*
|
|
506
508
|
* @remarks
|
|
507
509
|
* ## Product Introduction
|
|
508
|
-
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs),
|
|
509
|
-
*
|
|
510
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
511
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
510
|
+
* 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.
|
|
511
|
+
* Excels in the following areas:
|
|
512
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
513
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
512
514
|
* ## Common scenarios
|
|
513
515
|
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
514
516
|
* 3. Features
|
|
515
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
516
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
517
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
|
|
518
|
+
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
517
519
|
* - Supports high-fidelity layout preservation after translation.
|
|
518
|
-
* - A single PDF supports up to 100 pages
|
|
519
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
520
|
+
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
521
|
+
* - 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.
|
|
520
522
|
*
|
|
521
523
|
* @param request - DocumentTranslateRequest
|
|
522
524
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -554,25 +556,24 @@ class Client extends openapi_core_1.default {
|
|
|
554
556
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
|
|
555
557
|
}
|
|
556
558
|
/**
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
* -
|
|
560
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation.
|
|
559
|
+
* 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:
|
|
560
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
561
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
561
562
|
*
|
|
562
563
|
* @remarks
|
|
563
564
|
* ## Product Introduction
|
|
564
|
-
* Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs),
|
|
565
|
-
*
|
|
566
|
-
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
567
|
-
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
565
|
+
* 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.
|
|
566
|
+
* Excels in the following areas:
|
|
567
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
568
|
+
* - Structural integrity: overall layout continuity, page margin and layout preservation
|
|
568
569
|
* ## Common scenarios
|
|
569
570
|
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
|
|
570
571
|
* 3. Features
|
|
571
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
572
|
-
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
572
|
+
* - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
|
|
573
|
+
* - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
|
|
573
574
|
* - Supports high-fidelity layout preservation after translation.
|
|
574
|
-
* - A single PDF supports up to 100 pages
|
|
575
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
575
|
+
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
576
|
+
* - 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.
|
|
576
577
|
*
|
|
577
578
|
* @param request - DocumentTranslateRequest
|
|
578
579
|
* @returns DocumentTranslateResponse
|
|
@@ -667,32 +668,32 @@ class Client extends openapi_core_1.default {
|
|
|
667
668
|
return await this.imageCroppingWithOptions(request, runtime);
|
|
668
669
|
}
|
|
669
670
|
/**
|
|
670
|
-
*
|
|
671
|
+
* 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)
|
|
671
672
|
*
|
|
672
673
|
* @remarks
|
|
673
674
|
* ## Product Introduction
|
|
674
|
-
*
|
|
675
|
+
* 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)
|
|
675
676
|
* ## Scenarios
|
|
676
677
|
* * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
|
|
677
678
|
*
|
|
678
679
|
* * **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.
|
|
679
680
|
* ## Features.
|
|
680
681
|
* #### 1. One-click precise subject recognition
|
|
681
|
-
* * **AI automatic recognition**: Based on deep learning models,
|
|
682
|
+
* * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
|
|
682
683
|
*
|
|
683
684
|
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
|
|
684
685
|
* #### 2. Intelligent edge optimization
|
|
685
|
-
* * **Detail-level processing**: Performs automatic optimization
|
|
686
|
+
* * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
|
|
686
687
|
* #### 3. Multi-format output and background operations
|
|
687
688
|
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
|
|
688
689
|
*
|
|
689
|
-
* * **Custom background color support
|
|
690
|
+
* * **Custom background color support**
|
|
690
691
|
* ## Effect comparison
|
|
691
692
|
* | **Original image (input)** | **Result image (output)** |
|
|
692
693
|
* | --- | --- |
|
|
693
694
|
* |  |  |
|
|
694
695
|
* |  |  |
|
|
695
|
-
* |  | 
|
|
696
|
+
* |  |  |
|
|
696
697
|
*
|
|
697
698
|
* @param request - ImageMattingRequest
|
|
698
699
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -733,32 +734,32 @@ class Client extends openapi_core_1.default {
|
|
|
733
734
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageMattingResponse({}));
|
|
734
735
|
}
|
|
735
736
|
/**
|
|
736
|
-
*
|
|
737
|
+
* 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)
|
|
737
738
|
*
|
|
738
739
|
* @remarks
|
|
739
740
|
* ## Product Introduction
|
|
740
|
-
*
|
|
741
|
+
* 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)
|
|
741
742
|
* ## Scenarios
|
|
742
743
|
* * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
|
|
743
744
|
*
|
|
744
745
|
* * **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.
|
|
745
746
|
* ## Features.
|
|
746
747
|
* #### 1. One-click precise subject recognition
|
|
747
|
-
* * **AI automatic recognition**: Based on deep learning models,
|
|
748
|
+
* * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
|
|
748
749
|
*
|
|
749
750
|
* * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
|
|
750
751
|
* #### 2. Intelligent edge optimization
|
|
751
|
-
* * **Detail-level processing**: Performs automatic optimization
|
|
752
|
+
* * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
|
|
752
753
|
* #### 3. Multi-format output and background operations
|
|
753
754
|
* * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
|
|
754
755
|
*
|
|
755
|
-
* * **Custom background color support
|
|
756
|
+
* * **Custom background color support**
|
|
756
757
|
* ## Effect comparison
|
|
757
758
|
* | **Original image (input)** | **Result image (output)** |
|
|
758
759
|
* | --- | --- |
|
|
759
760
|
* |  |  |
|
|
760
761
|
* |  |  |
|
|
761
|
-
* |  | 
|
|
762
|
+
* |  |  |
|
|
762
763
|
*
|
|
763
764
|
* @param request - ImageMattingRequest
|
|
764
765
|
* @returns ImageMattingResponse
|
|
@@ -972,80 +973,169 @@ class Client extends openapi_core_1.default {
|
|
|
972
973
|
return await this.imageRecognitionWithOptions(request, runtime);
|
|
973
974
|
}
|
|
974
975
|
/**
|
|
975
|
-
*
|
|
976
|
+
* 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).
|
|
976
977
|
*
|
|
977
978
|
* @remarks
|
|
978
|
-
* ## Product
|
|
979
|
-
* The
|
|
980
|
-
* ##
|
|
981
|
-
* * **Efficient
|
|
979
|
+
* ## Product introduction
|
|
980
|
+
* 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)
|
|
981
|
+
* ## Common scenarios
|
|
982
|
+
* * **Efficient e-commerce image processing:**
|
|
982
983
|
*
|
|
983
|
-
* Remove irrelevant visual elements to provide
|
|
984
|
-
* * **Multi-platform
|
|
984
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
985
|
+
* * **Multi-platform product information synchronization:**
|
|
985
986
|
*
|
|
986
|
-
* When merchants
|
|
987
|
-
*
|
|
987
|
+
* 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.
|
|
988
|
+
* ## Features
|
|
989
|
+
* 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.
|
|
988
990
|
*
|
|
989
|
-
*
|
|
990
|
-
* > Note: Merchants or platforms can batch remove impurities from images to optimize image quality. We recommend using this in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and blemishes, then use the "Intelligent Removal API" to batch remove them. The Intelligent Recognition API focuses on "recognition," while the Intelligent Removal API focuses on "removal." By calling them in sequence, you can maximize removal effectiveness and reduce "false removals" and "false recognitions."
|
|
991
|
-
* ## Feature Introduction
|
|
992
|
-
* 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
|
|
991
|
+
* 1. Image subject: the core product area in the image.
|
|
993
992
|
*
|
|
994
|
-
*
|
|
993
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
995
994
|
*
|
|
996
|
-
*
|
|
995
|
+
* 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:
|
|
996
|
+
* ## Effect comparison
|
|
997
|
+
* | **Original image** | **Image after removal** |
|
|
998
|
+
* | --- | --- |
|
|
999
|
+
* |  |  |
|
|
1000
|
+
* |  |  |
|
|
997
1001
|
*
|
|
998
|
-
*
|
|
1002
|
+
* @param request - ImageRemovalProRequest
|
|
1003
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1004
|
+
* @returns ImageRemovalProResponse
|
|
1005
|
+
*/
|
|
1006
|
+
async imageRemovalProWithOptions(request, runtime) {
|
|
1007
|
+
request.validate();
|
|
1008
|
+
let query = {};
|
|
1009
|
+
if (!$dara.isNull(request.async)) {
|
|
1010
|
+
query["Async"] = request.async;
|
|
1011
|
+
}
|
|
1012
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1013
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1014
|
+
}
|
|
1015
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1016
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1017
|
+
});
|
|
1018
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1019
|
+
action: "ImageRemovalPro",
|
|
1020
|
+
version: "2026-04-28",
|
|
1021
|
+
protocol: "HTTPS",
|
|
1022
|
+
pathname: "/",
|
|
1023
|
+
method: "POST",
|
|
1024
|
+
authType: "AK",
|
|
1025
|
+
style: "RPC",
|
|
1026
|
+
reqBodyType: "formData",
|
|
1027
|
+
bodyType: "json",
|
|
1028
|
+
});
|
|
1029
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* 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).
|
|
999
1033
|
*
|
|
1000
|
-
*
|
|
1001
|
-
*
|
|
1034
|
+
* @remarks
|
|
1035
|
+
* ## Product introduction
|
|
1036
|
+
* 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)
|
|
1037
|
+
* ## Common scenarios
|
|
1038
|
+
* * **Efficient e-commerce image processing:**
|
|
1039
|
+
*
|
|
1040
|
+
* Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
|
|
1041
|
+
* * **Multi-platform product information synchronization:**
|
|
1042
|
+
*
|
|
1043
|
+
* 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.
|
|
1044
|
+
* ## Features
|
|
1045
|
+
* 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.
|
|
1046
|
+
*
|
|
1047
|
+
* 1. Image subject: the core product area in the image.
|
|
1048
|
+
*
|
|
1049
|
+
* 2. Image background: the remaining part of the image other than the product subject.
|
|
1050
|
+
*
|
|
1051
|
+
* 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:
|
|
1052
|
+
* ## Effect comparison
|
|
1053
|
+
* | **Original image** | **Image after removal** |
|
|
1054
|
+
* | --- | --- |
|
|
1055
|
+
* |  |  |
|
|
1056
|
+
* |  |  |
|
|
1057
|
+
*
|
|
1058
|
+
* @param request - ImageRemovalProRequest
|
|
1059
|
+
* @returns ImageRemovalProResponse
|
|
1060
|
+
*/
|
|
1061
|
+
async imageRemovalPro(request) {
|
|
1062
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1063
|
+
return await this.imageRemovalProWithOptions(request, runtime);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* 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)
|
|
1067
|
+
*
|
|
1068
|
+
* @remarks
|
|
1069
|
+
* ## Product Introduction
|
|
1070
|
+
* 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)
|
|
1071
|
+
* ## Scenarios
|
|
1072
|
+
* * **Efficient e-commerce image processing:**
|
|
1073
|
+
*
|
|
1074
|
+
* Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
|
|
1075
|
+
* * **Multi-platform product information synchronization:**
|
|
1076
|
+
*
|
|
1077
|
+
* 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.
|
|
1078
|
+
* * **Marketing material preparation:**
|
|
1079
|
+
*
|
|
1080
|
+
* Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
|
|
1081
|
+
* > 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.
|
|
1082
|
+
* ## Features
|
|
1083
|
+
* 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.
|
|
1084
|
+
*
|
|
1085
|
+
* 1. Image subject: The core product area in the image.
|
|
1086
|
+
*
|
|
1087
|
+
* 2. Image background: The remaining portion of the image outside the product subject.
|
|
1088
|
+
*
|
|
1089
|
+
* 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:
|
|
1090
|
+
* ## Effect comparison
|
|
1091
|
+
* | **Erasable objects in images** | **Original image** | **Image after erasure** |
|
|
1002
1092
|
* | --- | --- | --- |
|
|
1003
|
-
* | Text | *
|
|
1093
|
+
* | Text | * Involves the image subject area
|
|
1004
1094
|
*
|
|
1005
1095
|
* 
|
|
1006
1096
|
*
|
|
1007
|
-
* *
|
|
1097
|
+
* * Does not involve the image subject area
|
|
1008
1098
|
*
|
|
1009
|
-
*  | *
|
|
1099
|
+
*  | * Involves the image subject area
|
|
1010
1100
|
*
|
|
1011
1101
|
* 
|
|
1012
|
-
* *
|
|
1102
|
+
* * Does not involve the image subject area
|
|
1013
1103
|
*
|
|
1014
1104
|
*  |
|
|
1015
|
-
* | Specific
|
|
1105
|
+
* | Specific names | * Involves the image subject area
|
|
1016
1106
|
*
|
|
1017
1107
|
* 
|
|
1018
1108
|
*
|
|
1019
|
-
* *
|
|
1109
|
+
* * Does not involve the image subject area
|
|
1020
1110
|
*
|
|
1021
|
-
*  | *
|
|
1111
|
+
*  | * Involves the image subject area
|
|
1022
1112
|
*
|
|
1023
1113
|
* 
|
|
1024
|
-
* *
|
|
1114
|
+
* * Does not involve the image subject area
|
|
1025
1115
|
*
|
|
1026
1116
|
*  |
|
|
1027
|
-
* | Transparent
|
|
1117
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
1028
1118
|
*
|
|
1029
1119
|
* 
|
|
1030
1120
|
*
|
|
1031
|
-
* *
|
|
1121
|
+
* * Does not involve the image subject area
|
|
1032
1122
|
*
|
|
1033
|
-
*  | *
|
|
1123
|
+
*  | * Involves the image subject area
|
|
1034
1124
|
*
|
|
1035
1125
|
* 
|
|
1036
|
-
* *
|
|
1126
|
+
* * Does not involve the image subject area
|
|
1037
1127
|
*
|
|
1038
1128
|
*  |
|
|
1039
|
-
* |
|
|
1129
|
+
* | Image blemishes | * Involves the image subject area
|
|
1040
1130
|
*
|
|
1041
1131
|
* 
|
|
1042
1132
|
*
|
|
1043
|
-
* *
|
|
1133
|
+
* * Does not involve the image subject area
|
|
1044
1134
|
*
|
|
1045
|
-
*  | *
|
|
1135
|
+
*  | * Involves the image subject area
|
|
1046
1136
|
*
|
|
1047
1137
|
* 
|
|
1048
|
-
* *
|
|
1138
|
+
* * Does not involve the image subject area
|
|
1049
1139
|
*
|
|
1050
1140
|
*  |
|
|
1051
1141
|
*
|
|
@@ -1093,80 +1183,79 @@ class Client extends openapi_core_1.default {
|
|
|
1093
1183
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveResponse({}));
|
|
1094
1184
|
}
|
|
1095
1185
|
/**
|
|
1096
|
-
*
|
|
1186
|
+
* 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)
|
|
1097
1187
|
*
|
|
1098
1188
|
* @remarks
|
|
1099
|
-
* ## Product
|
|
1100
|
-
* The
|
|
1101
|
-
* ##
|
|
1102
|
-
* * **Efficient
|
|
1103
|
-
*
|
|
1104
|
-
* Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
|
|
1105
|
-
* * **Multi-platform Product Information Synchronization:**
|
|
1189
|
+
* ## Product Introduction
|
|
1190
|
+
* 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)
|
|
1191
|
+
* ## Scenarios
|
|
1192
|
+
* * **Efficient e-commerce image processing:**
|
|
1106
1193
|
*
|
|
1107
|
-
*
|
|
1108
|
-
* * **
|
|
1194
|
+
* Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
|
|
1195
|
+
* * **Multi-platform product information synchronization:**
|
|
1109
1196
|
*
|
|
1110
|
-
*
|
|
1111
|
-
*
|
|
1112
|
-
* ## Feature Introduction
|
|
1113
|
-
* 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
|
|
1197
|
+
* 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.
|
|
1198
|
+
* * **Marketing material preparation:**
|
|
1114
1199
|
*
|
|
1115
|
-
*
|
|
1200
|
+
* Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
|
|
1201
|
+
* > 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.
|
|
1202
|
+
* ## Features
|
|
1203
|
+
* 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.
|
|
1116
1204
|
*
|
|
1117
|
-
*
|
|
1205
|
+
* 1. Image subject: The core product area in the image.
|
|
1118
1206
|
*
|
|
1119
|
-
*
|
|
1207
|
+
* 2. Image background: The remaining portion of the image outside the product subject.
|
|
1120
1208
|
*
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1209
|
+
* 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:
|
|
1210
|
+
* ## Effect comparison
|
|
1211
|
+
* | **Erasable objects in images** | **Original image** | **Image after erasure** |
|
|
1123
1212
|
* | --- | --- | --- |
|
|
1124
|
-
* | Text | *
|
|
1213
|
+
* | Text | * Involves the image subject area
|
|
1125
1214
|
*
|
|
1126
1215
|
* 
|
|
1127
1216
|
*
|
|
1128
|
-
* *
|
|
1217
|
+
* * Does not involve the image subject area
|
|
1129
1218
|
*
|
|
1130
|
-
*  | *
|
|
1219
|
+
*  | * Involves the image subject area
|
|
1131
1220
|
*
|
|
1132
1221
|
* 
|
|
1133
|
-
* *
|
|
1222
|
+
* * Does not involve the image subject area
|
|
1134
1223
|
*
|
|
1135
1224
|
*  |
|
|
1136
|
-
* | Specific
|
|
1225
|
+
* | Specific names | * Involves the image subject area
|
|
1137
1226
|
*
|
|
1138
1227
|
* 
|
|
1139
1228
|
*
|
|
1140
|
-
* *
|
|
1229
|
+
* * Does not involve the image subject area
|
|
1141
1230
|
*
|
|
1142
|
-
*  | *
|
|
1231
|
+
*  | * Involves the image subject area
|
|
1143
1232
|
*
|
|
1144
1233
|
* 
|
|
1145
|
-
* *
|
|
1234
|
+
* * Does not involve the image subject area
|
|
1146
1235
|
*
|
|
1147
1236
|
*  |
|
|
1148
|
-
* | Transparent
|
|
1237
|
+
* | Transparent text blocks | * Involves the image subject area
|
|
1149
1238
|
*
|
|
1150
1239
|
* 
|
|
1151
1240
|
*
|
|
1152
|
-
* *
|
|
1241
|
+
* * Does not involve the image subject area
|
|
1153
1242
|
*
|
|
1154
|
-
*  | *
|
|
1243
|
+
*  | * Involves the image subject area
|
|
1155
1244
|
*
|
|
1156
1245
|
* 
|
|
1157
|
-
* *
|
|
1246
|
+
* * Does not involve the image subject area
|
|
1158
1247
|
*
|
|
1159
1248
|
*  |
|
|
1160
|
-
* |
|
|
1249
|
+
* | Image blemishes | * Involves the image subject area
|
|
1161
1250
|
*
|
|
1162
1251
|
* 
|
|
1163
1252
|
*
|
|
1164
|
-
* *
|
|
1253
|
+
* * Does not involve the image subject area
|
|
1165
1254
|
*
|
|
1166
|
-
*  | *
|
|
1255
|
+
*  | * Involves the image subject area
|
|
1167
1256
|
*
|
|
1168
1257
|
* 
|
|
1169
|
-
* *
|
|
1258
|
+
* * Does not involve the image subject area
|
|
1170
1259
|
*
|
|
1171
1260
|
*  |
|
|
1172
1261
|
*
|
|
@@ -1178,18 +1267,18 @@ class Client extends openapi_core_1.default {
|
|
|
1178
1267
|
return await this.imageRemoveWithOptions(request, runtime);
|
|
1179
1268
|
}
|
|
1180
1269
|
/**
|
|
1181
|
-
*
|
|
1270
|
+
* 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).
|
|
1182
1271
|
*
|
|
1183
1272
|
* @remarks
|
|
1184
1273
|
* ## Product Introduction
|
|
1185
|
-
* Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal
|
|
1274
|
+
* 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).
|
|
1186
1275
|
* ## Scenarios
|
|
1187
1276
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1188
1277
|
* ## Features
|
|
1189
|
-
* - **Product subject
|
|
1190
|
-
* - **Post-translation editing**:
|
|
1191
|
-
* - **Brand name protection**:
|
|
1192
|
-
* - **Translation intervention**:
|
|
1278
|
+
* - **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.
|
|
1279
|
+
* - **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.
|
|
1280
|
+
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1281
|
+
* - **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.
|
|
1193
1282
|
*
|
|
1194
1283
|
* @param request - ImageTranslationProRequest
|
|
1195
1284
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1198,6 +1287,9 @@ class Client extends openapi_core_1.default {
|
|
|
1198
1287
|
async imageTranslationProWithOptions(request, runtime) {
|
|
1199
1288
|
request.validate();
|
|
1200
1289
|
let body = {};
|
|
1290
|
+
if (!$dara.isNull(request.async)) {
|
|
1291
|
+
body["Async"] = request.async;
|
|
1292
|
+
}
|
|
1201
1293
|
if (!$dara.isNull(request.glossary)) {
|
|
1202
1294
|
body["Glossary"] = request.glossary;
|
|
1203
1295
|
}
|
|
@@ -1219,9 +1311,6 @@ class Client extends openapi_core_1.default {
|
|
|
1219
1311
|
if (!$dara.isNull(request.useImageEditor)) {
|
|
1220
1312
|
body["UseImageEditor"] = request.useImageEditor;
|
|
1221
1313
|
}
|
|
1222
|
-
if (!$dara.isNull(request.callType)) {
|
|
1223
|
-
body["callType"] = request.callType;
|
|
1224
|
-
}
|
|
1225
1314
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1226
1315
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1227
1316
|
});
|
|
@@ -1239,18 +1328,18 @@ class Client extends openapi_core_1.default {
|
|
|
1239
1328
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
|
|
1240
1329
|
}
|
|
1241
1330
|
/**
|
|
1242
|
-
*
|
|
1331
|
+
* 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).
|
|
1243
1332
|
*
|
|
1244
1333
|
* @remarks
|
|
1245
1334
|
* ## Product Introduction
|
|
1246
|
-
* Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal
|
|
1335
|
+
* 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).
|
|
1247
1336
|
* ## Scenarios
|
|
1248
1337
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1249
1338
|
* ## Features
|
|
1250
|
-
* - **Product subject
|
|
1251
|
-
* - **Post-translation editing**:
|
|
1252
|
-
* - **Brand name protection**:
|
|
1253
|
-
* - **Translation intervention**:
|
|
1339
|
+
* - **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.
|
|
1340
|
+
* - **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.
|
|
1341
|
+
* - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
|
|
1342
|
+
* - **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.
|
|
1254
1343
|
*
|
|
1255
1344
|
* @param request - ImageTranslationProRequest
|
|
1256
1345
|
* @returns ImageTranslationProResponse
|
|
@@ -1380,6 +1469,101 @@ class Client extends openapi_core_1.default {
|
|
|
1380
1469
|
let runtime = new $dara.RuntimeOptions({});
|
|
1381
1470
|
return await this.languageDetectWithOptions(request, runtime);
|
|
1382
1471
|
}
|
|
1472
|
+
/**
|
|
1473
|
+
* 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.
|
|
1474
|
+
*
|
|
1475
|
+
* @remarks
|
|
1476
|
+
* ## **Common scenarios**
|
|
1477
|
+
* - **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."
|
|
1478
|
+
*
|
|
1479
|
+
* - **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.
|
|
1480
|
+
*
|
|
1481
|
+
* - **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.
|
|
1482
|
+
* ## **Features**
|
|
1483
|
+
* - **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.
|
|
1484
|
+
*
|
|
1485
|
+
* - **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.
|
|
1486
|
+
*
|
|
1487
|
+
* - **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.
|
|
1488
|
+
*
|
|
1489
|
+
* - **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.
|
|
1490
|
+
* ## **How to invoke**
|
|
1491
|
+
* - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
1492
|
+
*
|
|
1493
|
+
* - **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.
|
|
1494
|
+
*
|
|
1495
|
+
* - **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).
|
|
1496
|
+
*
|
|
1497
|
+
* @param request - MaterialInspectionRequest
|
|
1498
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1499
|
+
* @returns MaterialInspectionResponse
|
|
1500
|
+
*/
|
|
1501
|
+
async materialInspectionWithOptions(request, runtime) {
|
|
1502
|
+
request.validate();
|
|
1503
|
+
let query = {};
|
|
1504
|
+
if (!$dara.isNull(request.apiId)) {
|
|
1505
|
+
query["ApiId"] = request.apiId;
|
|
1506
|
+
}
|
|
1507
|
+
if (!$dara.isNull(request.imageRefer)) {
|
|
1508
|
+
query["ImageRefer"] = request.imageRefer;
|
|
1509
|
+
}
|
|
1510
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1511
|
+
query["ImageUrl"] = request.imageUrl;
|
|
1512
|
+
}
|
|
1513
|
+
if (!$dara.isNull(request.reqId)) {
|
|
1514
|
+
query["ReqId"] = request.reqId;
|
|
1515
|
+
}
|
|
1516
|
+
if (!$dara.isNull(request.rules)) {
|
|
1517
|
+
query["Rules"] = request.rules;
|
|
1518
|
+
}
|
|
1519
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1520
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1521
|
+
});
|
|
1522
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1523
|
+
action: "MaterialInspection",
|
|
1524
|
+
version: "2026-04-28",
|
|
1525
|
+
protocol: "HTTPS",
|
|
1526
|
+
pathname: "/",
|
|
1527
|
+
method: "POST",
|
|
1528
|
+
authType: "AK",
|
|
1529
|
+
style: "RPC",
|
|
1530
|
+
reqBodyType: "formData",
|
|
1531
|
+
bodyType: "json",
|
|
1532
|
+
});
|
|
1533
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* 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.
|
|
1537
|
+
*
|
|
1538
|
+
* @remarks
|
|
1539
|
+
* ## **Common scenarios**
|
|
1540
|
+
* - **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."
|
|
1541
|
+
*
|
|
1542
|
+
* - **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.
|
|
1543
|
+
*
|
|
1544
|
+
* - **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.
|
|
1545
|
+
* ## **Features**
|
|
1546
|
+
* - **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.
|
|
1547
|
+
*
|
|
1548
|
+
* - **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.
|
|
1549
|
+
*
|
|
1550
|
+
* - **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.
|
|
1551
|
+
*
|
|
1552
|
+
* - **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.
|
|
1553
|
+
* ## **How to invoke**
|
|
1554
|
+
* - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
|
|
1555
|
+
*
|
|
1556
|
+
* - **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.
|
|
1557
|
+
*
|
|
1558
|
+
* - **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).
|
|
1559
|
+
*
|
|
1560
|
+
* @param request - MaterialInspectionRequest
|
|
1561
|
+
* @returns MaterialInspectionResponse
|
|
1562
|
+
*/
|
|
1563
|
+
async materialInspection(request) {
|
|
1564
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1565
|
+
return await this.materialInspectionWithOptions(request, runtime);
|
|
1566
|
+
}
|
|
1383
1567
|
/**
|
|
1384
1568
|
* 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.
|
|
1385
1569
|
*
|
|
@@ -1940,28 +2124,28 @@ class Client extends openapi_core_1.default {
|
|
|
1940
2124
|
return await this.textCorrectWithOptions(request, runtime);
|
|
1941
2125
|
}
|
|
1942
2126
|
/**
|
|
1943
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2127
|
+
* 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.
|
|
1944
2128
|
*
|
|
1945
2129
|
* @remarks
|
|
1946
2130
|
* ## Product Introduction
|
|
1947
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2131
|
+
* 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.
|
|
1948
2132
|
* ## Common scenarios
|
|
1949
|
-
* - Product titles: Marco MT
|
|
1950
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco
|
|
1951
|
-
* - Product attributes: Product attribute terms are
|
|
1952
|
-
* - Customer service conversations: In customer service scenarios,
|
|
1953
|
-
* Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2133
|
+
* - 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.
|
|
2134
|
+
* - 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.
|
|
2135
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2136
|
+
* - 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.
|
|
2137
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
1954
2138
|
* ## Features
|
|
1955
|
-
* - **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
|
|
1956
|
-
* - **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
|
|
2139
|
+
* - **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.
|
|
2140
|
+
* - **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.
|
|
1957
2141
|
* - **Supported text format types** Currently supports text and html text types.
|
|
1958
|
-
* - **Translation intervention** Supports custom translation results, including do-not-translate (ABC
|
|
2142
|
+
* - **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.
|
|
1959
2143
|
* ## Translation quality comparison
|
|
1960
2144
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
1961
2145
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
1962
2146
|
* | 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 |
|
|
1963
2147
|
* | 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 |
|
|
1964
|
-
* | 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
|
|
2148
|
+
* | 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 |
|
|
1965
2149
|
*
|
|
1966
2150
|
* @param tmpReq - TextTranslateRequest
|
|
1967
2151
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1975,6 +2159,9 @@ class Client extends openapi_core_1.default {
|
|
|
1975
2159
|
request.sourceTextListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
|
|
1976
2160
|
}
|
|
1977
2161
|
let body = {};
|
|
2162
|
+
if (!$dara.isNull(request.bizName)) {
|
|
2163
|
+
body["BizName"] = request.bizName;
|
|
2164
|
+
}
|
|
1978
2165
|
if (!$dara.isNull(request.formatType)) {
|
|
1979
2166
|
body["FormatType"] = request.formatType;
|
|
1980
2167
|
}
|
|
@@ -1990,6 +2177,9 @@ class Client extends openapi_core_1.default {
|
|
|
1990
2177
|
if (!$dara.isNull(request.targetLanguage)) {
|
|
1991
2178
|
body["TargetLanguage"] = request.targetLanguage;
|
|
1992
2179
|
}
|
|
2180
|
+
if (!$dara.isNull(request.translateScene)) {
|
|
2181
|
+
body["TranslateScene"] = request.translateScene;
|
|
2182
|
+
}
|
|
1993
2183
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1994
2184
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1995
2185
|
});
|
|
@@ -2007,28 +2197,28 @@ class Client extends openapi_core_1.default {
|
|
|
2007
2197
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
|
|
2008
2198
|
}
|
|
2009
2199
|
/**
|
|
2010
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2200
|
+
* 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.
|
|
2011
2201
|
*
|
|
2012
2202
|
* @remarks
|
|
2013
2203
|
* ## Product Introduction
|
|
2014
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs
|
|
2204
|
+
* 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.
|
|
2015
2205
|
* ## Common scenarios
|
|
2016
|
-
* - Product titles: Marco MT
|
|
2017
|
-
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco
|
|
2018
|
-
* - Product attributes: Product attribute terms are
|
|
2019
|
-
* - Customer service conversations: In customer service scenarios,
|
|
2020
|
-
* Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2206
|
+
* - 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.
|
|
2207
|
+
* - 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.
|
|
2208
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2209
|
+
* - 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.
|
|
2210
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
2021
2211
|
* ## Features
|
|
2022
|
-
* - **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
|
|
2023
|
-
* - **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
|
|
2212
|
+
* - **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.
|
|
2213
|
+
* - **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.
|
|
2024
2214
|
* - **Supported text format types** Currently supports text and html text types.
|
|
2025
|
-
* - **Translation intervention** Supports custom translation results, including do-not-translate (ABC
|
|
2215
|
+
* - **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.
|
|
2026
2216
|
* ## Translation quality comparison
|
|
2027
2217
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2028
2218
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2029
2219
|
* | 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 |
|
|
2030
2220
|
* | 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 |
|
|
2031
|
-
* | 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
|
|
2221
|
+
* | 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 |
|
|
2032
2222
|
*
|
|
2033
2223
|
* @param request - TextTranslateRequest
|
|
2034
2224
|
* @returns TextTranslateResponse
|