@alicloud/aidge20260428 5.12.1 → 5.12.2
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 +58 -58
- package/dist/client.js +62 -58
- package/dist/client.js.map +1 -1
- package/dist/models/VisionFlowRequest.d.ts +17 -17
- package/dist/models/VisionFlowResponseBody.d.ts +6 -6
- package/dist/models/VisionFlowShrinkRequest.d.ts +17 -17
- package/package.json +2 -1
- package/src/client.ts +62 -58
- package/src/models/VisionFlowRequest.ts +17 -17
- package/src/models/VisionFlowResponseBody.ts +6 -6
- package/src/models/VisionFlowShrinkRequest.ts +17 -17
package/dist/client.d.ts
CHANGED
|
@@ -3553,61 +3553,61 @@ export default class Client extends OpenApi {
|
|
|
3553
3553
|
*/
|
|
3554
3554
|
virtualTryOn(request: $_model.VirtualTryOnRequest): Promise<$_model.VirtualTryOnResponse>;
|
|
3555
3555
|
/**
|
|
3556
|
-
* Provides a one-stop AI
|
|
3556
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
3557
3557
|
*
|
|
3558
3558
|
* @remarks
|
|
3559
|
-
* # 1. Product
|
|
3560
|
-
*
|
|
3561
|
-
* # 2.
|
|
3562
|
-
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms.
|
|
3563
|
-
* *
|
|
3559
|
+
* # 1. Product introduction
|
|
3560
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
3561
|
+
* # 2. Scenarios
|
|
3562
|
+
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supports the following operations:
|
|
3563
|
+
* * Identifies low-quality images with text, watermarks, logos, or cluttered text, and allows users to filter the images to be processed.
|
|
3564
3564
|
*
|
|
3565
|
-
* *
|
|
3565
|
+
* * Removes non-compliant elements such as watermarks, logos, cluttered text, and Chinese text from the original image.
|
|
3566
3566
|
*
|
|
3567
|
-
* *
|
|
3567
|
+
* * Removes the background around the main product subject.
|
|
3568
3568
|
*
|
|
3569
|
-
* *
|
|
3569
|
+
* * Translates text in the image into other languages.
|
|
3570
3570
|
*
|
|
3571
|
-
* *
|
|
3571
|
+
* * Expands the image to other sizes (by ratio or dimensions) and automatically fills the background.
|
|
3572
3572
|
*
|
|
3573
|
-
* *
|
|
3573
|
+
* * Crops the image to a specified size.
|
|
3574
3574
|
*
|
|
3575
|
-
* *
|
|
3575
|
+
* * Upscales the image pixels by a specified factor.
|
|
3576
3576
|
* # 3. Features
|
|
3577
|
-
*
|
|
3577
|
+
* Users input the URL of a product image and select the required AI capabilities through the Ability parameter (1=Intelligent element recognition, 2=Intelligent cutout, 3=Intelligent erasure, 4=Image translation Pro, 5=Image expansion, 6=Intelligent cropping, 7=High-definition upscaling). The system executes the selected capabilities in a preset sequence. Because intelligent element recognition helps users determine whether an image contains specific elements, and the presence of these elements affects the selection of subsequent AI capabilities, an additional input option is provided. This option allows users to choose whether to filter out images from subsequent AI processing or retain them without further processing.
|
|
3578
3578
|
* 
|
|
3579
|
-
*
|
|
3580
|
-
* 1.
|
|
3579
|
+
* The following section describes each AI capability:
|
|
3580
|
+
* **1. Intelligent element recognition**: An element detection capability designed specifically for e-commerce images. It identifies elements such as text, logos, watermarks, and text blocks in the subject and background of an image, and returns Boolean detection results. Users can filter images based on the recognition results (for example, processing only images with watermarks) and link this capability with subsequent ones—first identifying the types of elements to be optimized, and then precisely executing operations such as erasure.
|
|
3581
3581
|
*
|
|
3582
|
-
* 2.
|
|
3582
|
+
* **2. Intelligent cutout**: Automatically identifies the main product subject in an image and precisely separates it from the background. Based on deep learning models, it supports precise segmentation of complex edges such as hair and transparent objects. It can output images with transparent or white backgrounds, supports custom background colors and target size cropping, and directly generates product display images that comply with e-commerce platform specifications.
|
|
3583
3583
|
*
|
|
3584
|
-
* 3.
|
|
3584
|
+
* **3. Intelligent erasure**: Automatically identifies and removes non-compliant elements in e-commerce images, such as text, specific names (brand or store names), transparent text blocks, and cluttered text. It supports specifying the removal of elements in the subject area or non-subject area separately. It also supports precisely specifying the removal area through the Mask parameter to achieve efficient and compliant cleanup of large batches of images.
|
|
3585
3585
|
*
|
|
3586
|
-
* 4.
|
|
3586
|
+
* **4. Image translation Pro**: Integrates multimodal large model technology to translate text in an image into a target language and directly renders it in the corresponding position of the original image. It supports over 100 language pairs. It provides features such as product subject text protection, brand name protection, and translation intervention glossaries to avoid mistranslating embedded product information. After translation, it can return layout information such as text position, font, and color to support secondary editing.
|
|
3587
3587
|
*
|
|
3588
|
-
* 5.
|
|
3588
|
+
* **5. Intelligent image expansion**: Expands the image canvas based on AI generation technology to broaden the image field of view without cropping the subject. It supports multiple expansion methods: expanding by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), scaling by horizontal or vertical proportion (1.0 to 3.0 times), and shifting pixels in the up, down, left, or right directions. The AI automatically fills and generates naturally transitioning background content.
|
|
3589
3589
|
*
|
|
3590
|
-
* 6.
|
|
3590
|
+
* **6. Intelligent cropping**: Intelligently crops images to specified sizes, automatically identifies the main subject area of the image, and precisely retains the core content. It supports custom output width and height (100 to 5000 pixels) and adapts to the image size requirements of different e-commerce platforms and ad slots, ensuring that the subject stands out and the picture is balanced after cropping.
|
|
3591
3591
|
*
|
|
3592
|
-
* 7.
|
|
3593
|
-
* # 4.
|
|
3592
|
+
* **7. High-definition upscaling**: Enhances details and reduces noise while upscaling the image. It supports 2x to 4x upscaling. It is applicable to improving the clarity of low-resolution product images and optimizing visual presentation. It supports output in formats such as PNG, JPG, and BMP.
|
|
3593
|
+
* # 4. Effect comparison
|
|
3594
3594
|
* | **Original image** | **Capabilities used** | **Output image** |
|
|
3595
3595
|
* | --- | --- | --- |
|
|
3596
|
-
* |  | * Intelligent
|
|
3596
|
+
* |  | * Intelligent recognition
|
|
3597
3597
|
*
|
|
3598
|
-
* * Image
|
|
3598
|
+
* * Image translation Pro
|
|
3599
3599
|
*
|
|
3600
3600
|
* * Intelligent cropping |  |
|
|
3601
|
-
* |  | * Intelligent
|
|
3601
|
+
* |  | * Intelligent cutout
|
|
3602
3602
|
*
|
|
3603
|
-
* * Intelligent
|
|
3603
|
+
* * Intelligent erasure
|
|
3604
3604
|
*
|
|
3605
3605
|
* * Intelligent cropping |  |
|
|
3606
|
-
* |  | * Intelligent
|
|
3606
|
+
* |  | * Intelligent recognition
|
|
3607
3607
|
*
|
|
3608
|
-
* * Intelligent
|
|
3608
|
+
* * Intelligent erasure
|
|
3609
3609
|
*
|
|
3610
|
-
* *
|
|
3610
|
+
* * High-definition upscaling |  |
|
|
3611
3611
|
*
|
|
3612
3612
|
* @param tmpReq - VisionFlowRequest
|
|
3613
3613
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3615,61 +3615,61 @@ export default class Client extends OpenApi {
|
|
|
3615
3615
|
*/
|
|
3616
3616
|
visionFlowWithOptions(tmpReq: $_model.VisionFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VisionFlowResponse>;
|
|
3617
3617
|
/**
|
|
3618
|
-
* Provides a one-stop AI
|
|
3618
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
3619
3619
|
*
|
|
3620
3620
|
* @remarks
|
|
3621
|
-
* # 1. Product
|
|
3622
|
-
*
|
|
3623
|
-
* # 2.
|
|
3624
|
-
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms.
|
|
3625
|
-
* *
|
|
3621
|
+
* # 1. Product introduction
|
|
3622
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
3623
|
+
* # 2. Scenarios
|
|
3624
|
+
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supports the following operations:
|
|
3625
|
+
* * Identifies low-quality images with text, watermarks, logos, or cluttered text, and allows users to filter the images to be processed.
|
|
3626
3626
|
*
|
|
3627
|
-
* *
|
|
3627
|
+
* * Removes non-compliant elements such as watermarks, logos, cluttered text, and Chinese text from the original image.
|
|
3628
3628
|
*
|
|
3629
|
-
* *
|
|
3629
|
+
* * Removes the background around the main product subject.
|
|
3630
3630
|
*
|
|
3631
|
-
* *
|
|
3631
|
+
* * Translates text in the image into other languages.
|
|
3632
3632
|
*
|
|
3633
|
-
* *
|
|
3633
|
+
* * Expands the image to other sizes (by ratio or dimensions) and automatically fills the background.
|
|
3634
3634
|
*
|
|
3635
|
-
* *
|
|
3635
|
+
* * Crops the image to a specified size.
|
|
3636
3636
|
*
|
|
3637
|
-
* *
|
|
3637
|
+
* * Upscales the image pixels by a specified factor.
|
|
3638
3638
|
* # 3. Features
|
|
3639
|
-
*
|
|
3639
|
+
* Users input the URL of a product image and select the required AI capabilities through the Ability parameter (1=Intelligent element recognition, 2=Intelligent cutout, 3=Intelligent erasure, 4=Image translation Pro, 5=Image expansion, 6=Intelligent cropping, 7=High-definition upscaling). The system executes the selected capabilities in a preset sequence. Because intelligent element recognition helps users determine whether an image contains specific elements, and the presence of these elements affects the selection of subsequent AI capabilities, an additional input option is provided. This option allows users to choose whether to filter out images from subsequent AI processing or retain them without further processing.
|
|
3640
3640
|
* 
|
|
3641
|
-
*
|
|
3642
|
-
* 1.
|
|
3641
|
+
* The following section describes each AI capability:
|
|
3642
|
+
* **1. Intelligent element recognition**: An element detection capability designed specifically for e-commerce images. It identifies elements such as text, logos, watermarks, and text blocks in the subject and background of an image, and returns Boolean detection results. Users can filter images based on the recognition results (for example, processing only images with watermarks) and link this capability with subsequent ones—first identifying the types of elements to be optimized, and then precisely executing operations such as erasure.
|
|
3643
3643
|
*
|
|
3644
|
-
* 2.
|
|
3644
|
+
* **2. Intelligent cutout**: Automatically identifies the main product subject in an image and precisely separates it from the background. Based on deep learning models, it supports precise segmentation of complex edges such as hair and transparent objects. It can output images with transparent or white backgrounds, supports custom background colors and target size cropping, and directly generates product display images that comply with e-commerce platform specifications.
|
|
3645
3645
|
*
|
|
3646
|
-
* 3.
|
|
3646
|
+
* **3. Intelligent erasure**: Automatically identifies and removes non-compliant elements in e-commerce images, such as text, specific names (brand or store names), transparent text blocks, and cluttered text. It supports specifying the removal of elements in the subject area or non-subject area separately. It also supports precisely specifying the removal area through the Mask parameter to achieve efficient and compliant cleanup of large batches of images.
|
|
3647
3647
|
*
|
|
3648
|
-
* 4.
|
|
3648
|
+
* **4. Image translation Pro**: Integrates multimodal large model technology to translate text in an image into a target language and directly renders it in the corresponding position of the original image. It supports over 100 language pairs. It provides features such as product subject text protection, brand name protection, and translation intervention glossaries to avoid mistranslating embedded product information. After translation, it can return layout information such as text position, font, and color to support secondary editing.
|
|
3649
3649
|
*
|
|
3650
|
-
* 5.
|
|
3650
|
+
* **5. Intelligent image expansion**: Expands the image canvas based on AI generation technology to broaden the image field of view without cropping the subject. It supports multiple expansion methods: expanding by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), scaling by horizontal or vertical proportion (1.0 to 3.0 times), and shifting pixels in the up, down, left, or right directions. The AI automatically fills and generates naturally transitioning background content.
|
|
3651
3651
|
*
|
|
3652
|
-
* 6.
|
|
3652
|
+
* **6. Intelligent cropping**: Intelligently crops images to specified sizes, automatically identifies the main subject area of the image, and precisely retains the core content. It supports custom output width and height (100 to 5000 pixels) and adapts to the image size requirements of different e-commerce platforms and ad slots, ensuring that the subject stands out and the picture is balanced after cropping.
|
|
3653
3653
|
*
|
|
3654
|
-
* 7.
|
|
3655
|
-
* # 4.
|
|
3654
|
+
* **7. High-definition upscaling**: Enhances details and reduces noise while upscaling the image. It supports 2x to 4x upscaling. It is applicable to improving the clarity of low-resolution product images and optimizing visual presentation. It supports output in formats such as PNG, JPG, and BMP.
|
|
3655
|
+
* # 4. Effect comparison
|
|
3656
3656
|
* | **Original image** | **Capabilities used** | **Output image** |
|
|
3657
3657
|
* | --- | --- | --- |
|
|
3658
|
-
* |  | * Intelligent
|
|
3658
|
+
* |  | * Intelligent recognition
|
|
3659
3659
|
*
|
|
3660
|
-
* * Image
|
|
3660
|
+
* * Image translation Pro
|
|
3661
3661
|
*
|
|
3662
3662
|
* * Intelligent cropping |  |
|
|
3663
|
-
* |  | * Intelligent
|
|
3663
|
+
* |  | * Intelligent cutout
|
|
3664
3664
|
*
|
|
3665
|
-
* * Intelligent
|
|
3665
|
+
* * Intelligent erasure
|
|
3666
3666
|
*
|
|
3667
3667
|
* * Intelligent cropping |  |
|
|
3668
|
-
* |  | * Intelligent
|
|
3668
|
+
* |  | * Intelligent recognition
|
|
3669
3669
|
*
|
|
3670
|
-
* * Intelligent
|
|
3670
|
+
* * Intelligent erasure
|
|
3671
3671
|
*
|
|
3672
|
-
* *
|
|
3672
|
+
* * High-definition upscaling |  |
|
|
3673
3673
|
*
|
|
3674
3674
|
* @param request - VisionFlowRequest
|
|
3675
3675
|
* @returns VisionFlowResponse
|
package/dist/client.js
CHANGED
|
@@ -41,6 +41,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
// This file is auto-generated, don't edit it
|
|
43
43
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
44
|
+
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
44
45
|
const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
|
|
45
46
|
const openapi_core_2 = require("@alicloud/openapi-core");
|
|
46
47
|
const $_model = __importStar(require("./models/model"));
|
|
@@ -48,6 +49,9 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
49
|
class Client extends openapi_core_1.default {
|
|
49
50
|
constructor(config) {
|
|
50
51
|
super(config);
|
|
52
|
+
this._productId = "Aidge";
|
|
53
|
+
let gatewayClient = new gateway_pop_1.default();
|
|
54
|
+
this._spi = gatewayClient;
|
|
51
55
|
this._endpointRule = "regional";
|
|
52
56
|
this.checkConfig(config);
|
|
53
57
|
this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -5702,61 +5706,61 @@ class Client extends openapi_core_1.default {
|
|
|
5702
5706
|
return await this.virtualTryOnWithOptions(request, runtime);
|
|
5703
5707
|
}
|
|
5704
5708
|
/**
|
|
5705
|
-
* Provides a one-stop AI
|
|
5709
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
5706
5710
|
*
|
|
5707
5711
|
* @remarks
|
|
5708
|
-
* # 1. Product
|
|
5709
|
-
*
|
|
5710
|
-
* # 2.
|
|
5711
|
-
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms.
|
|
5712
|
-
* *
|
|
5712
|
+
* # 1. Product introduction
|
|
5713
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
5714
|
+
* # 2. Scenarios
|
|
5715
|
+
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supports the following operations:
|
|
5716
|
+
* * Identifies low-quality images with text, watermarks, logos, or cluttered text, and allows users to filter the images to be processed.
|
|
5713
5717
|
*
|
|
5714
|
-
* *
|
|
5718
|
+
* * Removes non-compliant elements such as watermarks, logos, cluttered text, and Chinese text from the original image.
|
|
5715
5719
|
*
|
|
5716
|
-
* *
|
|
5720
|
+
* * Removes the background around the main product subject.
|
|
5717
5721
|
*
|
|
5718
|
-
* *
|
|
5722
|
+
* * Translates text in the image into other languages.
|
|
5719
5723
|
*
|
|
5720
|
-
* *
|
|
5724
|
+
* * Expands the image to other sizes (by ratio or dimensions) and automatically fills the background.
|
|
5721
5725
|
*
|
|
5722
|
-
* *
|
|
5726
|
+
* * Crops the image to a specified size.
|
|
5723
5727
|
*
|
|
5724
|
-
* *
|
|
5728
|
+
* * Upscales the image pixels by a specified factor.
|
|
5725
5729
|
* # 3. Features
|
|
5726
|
-
*
|
|
5730
|
+
* Users input the URL of a product image and select the required AI capabilities through the Ability parameter (1=Intelligent element recognition, 2=Intelligent cutout, 3=Intelligent erasure, 4=Image translation Pro, 5=Image expansion, 6=Intelligent cropping, 7=High-definition upscaling). The system executes the selected capabilities in a preset sequence. Because intelligent element recognition helps users determine whether an image contains specific elements, and the presence of these elements affects the selection of subsequent AI capabilities, an additional input option is provided. This option allows users to choose whether to filter out images from subsequent AI processing or retain them without further processing.
|
|
5727
5731
|
* 
|
|
5728
|
-
*
|
|
5729
|
-
* 1.
|
|
5732
|
+
* The following section describes each AI capability:
|
|
5733
|
+
* **1. Intelligent element recognition**: An element detection capability designed specifically for e-commerce images. It identifies elements such as text, logos, watermarks, and text blocks in the subject and background of an image, and returns Boolean detection results. Users can filter images based on the recognition results (for example, processing only images with watermarks) and link this capability with subsequent ones—first identifying the types of elements to be optimized, and then precisely executing operations such as erasure.
|
|
5730
5734
|
*
|
|
5731
|
-
* 2.
|
|
5735
|
+
* **2. Intelligent cutout**: Automatically identifies the main product subject in an image and precisely separates it from the background. Based on deep learning models, it supports precise segmentation of complex edges such as hair and transparent objects. It can output images with transparent or white backgrounds, supports custom background colors and target size cropping, and directly generates product display images that comply with e-commerce platform specifications.
|
|
5732
5736
|
*
|
|
5733
|
-
* 3.
|
|
5737
|
+
* **3. Intelligent erasure**: Automatically identifies and removes non-compliant elements in e-commerce images, such as text, specific names (brand or store names), transparent text blocks, and cluttered text. It supports specifying the removal of elements in the subject area or non-subject area separately. It also supports precisely specifying the removal area through the Mask parameter to achieve efficient and compliant cleanup of large batches of images.
|
|
5734
5738
|
*
|
|
5735
|
-
* 4.
|
|
5739
|
+
* **4. Image translation Pro**: Integrates multimodal large model technology to translate text in an image into a target language and directly renders it in the corresponding position of the original image. It supports over 100 language pairs. It provides features such as product subject text protection, brand name protection, and translation intervention glossaries to avoid mistranslating embedded product information. After translation, it can return layout information such as text position, font, and color to support secondary editing.
|
|
5736
5740
|
*
|
|
5737
|
-
* 5.
|
|
5741
|
+
* **5. Intelligent image expansion**: Expands the image canvas based on AI generation technology to broaden the image field of view without cropping the subject. It supports multiple expansion methods: expanding by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), scaling by horizontal or vertical proportion (1.0 to 3.0 times), and shifting pixels in the up, down, left, or right directions. The AI automatically fills and generates naturally transitioning background content.
|
|
5738
5742
|
*
|
|
5739
|
-
* 6.
|
|
5743
|
+
* **6. Intelligent cropping**: Intelligently crops images to specified sizes, automatically identifies the main subject area of the image, and precisely retains the core content. It supports custom output width and height (100 to 5000 pixels) and adapts to the image size requirements of different e-commerce platforms and ad slots, ensuring that the subject stands out and the picture is balanced after cropping.
|
|
5740
5744
|
*
|
|
5741
|
-
* 7.
|
|
5742
|
-
* # 4.
|
|
5745
|
+
* **7. High-definition upscaling**: Enhances details and reduces noise while upscaling the image. It supports 2x to 4x upscaling. It is applicable to improving the clarity of low-resolution product images and optimizing visual presentation. It supports output in formats such as PNG, JPG, and BMP.
|
|
5746
|
+
* # 4. Effect comparison
|
|
5743
5747
|
* | **Original image** | **Capabilities used** | **Output image** |
|
|
5744
5748
|
* | --- | --- | --- |
|
|
5745
|
-
* |  | * Intelligent
|
|
5749
|
+
* |  | * Intelligent recognition
|
|
5746
5750
|
*
|
|
5747
|
-
* * Image
|
|
5751
|
+
* * Image translation Pro
|
|
5748
5752
|
*
|
|
5749
5753
|
* * Intelligent cropping |  |
|
|
5750
|
-
* |  | * Intelligent
|
|
5754
|
+
* |  | * Intelligent cutout
|
|
5751
5755
|
*
|
|
5752
|
-
* * Intelligent
|
|
5756
|
+
* * Intelligent erasure
|
|
5753
5757
|
*
|
|
5754
5758
|
* * Intelligent cropping |  |
|
|
5755
|
-
* |  | * Intelligent
|
|
5759
|
+
* |  | * Intelligent recognition
|
|
5756
5760
|
*
|
|
5757
|
-
* * Intelligent
|
|
5761
|
+
* * Intelligent erasure
|
|
5758
5762
|
*
|
|
5759
|
-
* *
|
|
5763
|
+
* * High-definition upscaling |  |
|
|
5760
5764
|
*
|
|
5761
5765
|
* @param tmpReq - VisionFlowRequest
|
|
5762
5766
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5850,61 +5854,61 @@ class Client extends openapi_core_1.default {
|
|
|
5850
5854
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VisionFlowResponse({}));
|
|
5851
5855
|
}
|
|
5852
5856
|
/**
|
|
5853
|
-
* Provides a one-stop AI
|
|
5857
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
5854
5858
|
*
|
|
5855
5859
|
* @remarks
|
|
5856
|
-
* # 1. Product
|
|
5857
|
-
*
|
|
5858
|
-
* # 2.
|
|
5859
|
-
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms.
|
|
5860
|
-
* *
|
|
5860
|
+
* # 1. Product introduction
|
|
5861
|
+
* Provides a one-stop AI image processing service for e-commerce sellers. Orchestrates six atomic capabilities—element recognition, intelligent cutout, intelligent erasure, image translation Pro, intelligent cropping, and high-definition upscaling—into an image processing workflow. Users can upload an image once, select the required capabilities, and complete multiple image optimizations in sequence to output product images that meet the requirements of e-commerce platforms. (Asynchronous)
|
|
5862
|
+
* # 2. Scenarios
|
|
5863
|
+
* Applicable to batch optimization of product images in cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supports the following operations:
|
|
5864
|
+
* * Identifies low-quality images with text, watermarks, logos, or cluttered text, and allows users to filter the images to be processed.
|
|
5861
5865
|
*
|
|
5862
|
-
* *
|
|
5866
|
+
* * Removes non-compliant elements such as watermarks, logos, cluttered text, and Chinese text from the original image.
|
|
5863
5867
|
*
|
|
5864
|
-
* *
|
|
5868
|
+
* * Removes the background around the main product subject.
|
|
5865
5869
|
*
|
|
5866
|
-
* *
|
|
5870
|
+
* * Translates text in the image into other languages.
|
|
5867
5871
|
*
|
|
5868
|
-
* *
|
|
5872
|
+
* * Expands the image to other sizes (by ratio or dimensions) and automatically fills the background.
|
|
5869
5873
|
*
|
|
5870
|
-
* *
|
|
5874
|
+
* * Crops the image to a specified size.
|
|
5871
5875
|
*
|
|
5872
|
-
* *
|
|
5876
|
+
* * Upscales the image pixels by a specified factor.
|
|
5873
5877
|
* # 3. Features
|
|
5874
|
-
*
|
|
5878
|
+
* Users input the URL of a product image and select the required AI capabilities through the Ability parameter (1=Intelligent element recognition, 2=Intelligent cutout, 3=Intelligent erasure, 4=Image translation Pro, 5=Image expansion, 6=Intelligent cropping, 7=High-definition upscaling). The system executes the selected capabilities in a preset sequence. Because intelligent element recognition helps users determine whether an image contains specific elements, and the presence of these elements affects the selection of subsequent AI capabilities, an additional input option is provided. This option allows users to choose whether to filter out images from subsequent AI processing or retain them without further processing.
|
|
5875
5879
|
* 
|
|
5876
|
-
*
|
|
5877
|
-
* 1.
|
|
5880
|
+
* The following section describes each AI capability:
|
|
5881
|
+
* **1. Intelligent element recognition**: An element detection capability designed specifically for e-commerce images. It identifies elements such as text, logos, watermarks, and text blocks in the subject and background of an image, and returns Boolean detection results. Users can filter images based on the recognition results (for example, processing only images with watermarks) and link this capability with subsequent ones—first identifying the types of elements to be optimized, and then precisely executing operations such as erasure.
|
|
5878
5882
|
*
|
|
5879
|
-
* 2.
|
|
5883
|
+
* **2. Intelligent cutout**: Automatically identifies the main product subject in an image and precisely separates it from the background. Based on deep learning models, it supports precise segmentation of complex edges such as hair and transparent objects. It can output images with transparent or white backgrounds, supports custom background colors and target size cropping, and directly generates product display images that comply with e-commerce platform specifications.
|
|
5880
5884
|
*
|
|
5881
|
-
* 3.
|
|
5885
|
+
* **3. Intelligent erasure**: Automatically identifies and removes non-compliant elements in e-commerce images, such as text, specific names (brand or store names), transparent text blocks, and cluttered text. It supports specifying the removal of elements in the subject area or non-subject area separately. It also supports precisely specifying the removal area through the Mask parameter to achieve efficient and compliant cleanup of large batches of images.
|
|
5882
5886
|
*
|
|
5883
|
-
* 4.
|
|
5887
|
+
* **4. Image translation Pro**: Integrates multimodal large model technology to translate text in an image into a target language and directly renders it in the corresponding position of the original image. It supports over 100 language pairs. It provides features such as product subject text protection, brand name protection, and translation intervention glossaries to avoid mistranslating embedded product information. After translation, it can return layout information such as text position, font, and color to support secondary editing.
|
|
5884
5888
|
*
|
|
5885
|
-
* 5.
|
|
5889
|
+
* **5. Intelligent image expansion**: Expands the image canvas based on AI generation technology to broaden the image field of view without cropping the subject. It supports multiple expansion methods: expanding by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), scaling by horizontal or vertical proportion (1.0 to 3.0 times), and shifting pixels in the up, down, left, or right directions. The AI automatically fills and generates naturally transitioning background content.
|
|
5886
5890
|
*
|
|
5887
|
-
* 6.
|
|
5891
|
+
* **6. Intelligent cropping**: Intelligently crops images to specified sizes, automatically identifies the main subject area of the image, and precisely retains the core content. It supports custom output width and height (100 to 5000 pixels) and adapts to the image size requirements of different e-commerce platforms and ad slots, ensuring that the subject stands out and the picture is balanced after cropping.
|
|
5888
5892
|
*
|
|
5889
|
-
* 7.
|
|
5890
|
-
* # 4.
|
|
5893
|
+
* **7. High-definition upscaling**: Enhances details and reduces noise while upscaling the image. It supports 2x to 4x upscaling. It is applicable to improving the clarity of low-resolution product images and optimizing visual presentation. It supports output in formats such as PNG, JPG, and BMP.
|
|
5894
|
+
* # 4. Effect comparison
|
|
5891
5895
|
* | **Original image** | **Capabilities used** | **Output image** |
|
|
5892
5896
|
* | --- | --- | --- |
|
|
5893
|
-
* |  | * Intelligent
|
|
5897
|
+
* |  | * Intelligent recognition
|
|
5894
5898
|
*
|
|
5895
|
-
* * Image
|
|
5899
|
+
* * Image translation Pro
|
|
5896
5900
|
*
|
|
5897
5901
|
* * Intelligent cropping |  |
|
|
5898
|
-
* |  | * Intelligent
|
|
5902
|
+
* |  | * Intelligent cutout
|
|
5899
5903
|
*
|
|
5900
|
-
* * Intelligent
|
|
5904
|
+
* * Intelligent erasure
|
|
5901
5905
|
*
|
|
5902
5906
|
* * Intelligent cropping |  |
|
|
5903
|
-
* |  | * Intelligent
|
|
5907
|
+
* |  | * Intelligent recognition
|
|
5904
5908
|
*
|
|
5905
|
-
* * Intelligent
|
|
5909
|
+
* * Intelligent erasure
|
|
5906
5910
|
*
|
|
5907
|
-
* *
|
|
5911
|
+
* * High-definition upscaling |  |
|
|
5908
5912
|
*
|
|
5909
5913
|
* @param request - VisionFlowRequest
|
|
5910
5914
|
* @returns VisionFlowResponse
|