Image Elements Removal

Introduction

Image Elements Removal is tailored for e-commerce images, capable of automatically identifying and removing Semi-Transparent Elements, Specific Name, Character, Color-Blocks with Characters from e-commerce images. It allows for the specification of objects to be removed within the images, achieving efficient and precise processing of large volumes of images, thus simplifying the image editing process.

Use Cases

1.Efficient E-commerce Image Processing:

Eliminate irrelevant visual elements to provide a clearer and more focused product display, enhancing the shopping experience for customers.

2.Multi-platform Product Information Synchronization:

When merchants synchronize product listings across different shops or websites where the products will be shown and purchased, they can quickly remove specific watermarks or text to the image standards that meet the customization requirements of the merchants.

3.Marketing Material Preparation:

Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.

Note: Merchants or platforms can batch remove impurities in images to optimize image quality. It is recommended to use it in conjunction with the "Image Elements Detection API" to first filter out images containing text, logos, watermarks, and text-containing color blocks, and then use the "Image Elements removal API" for batch removal. The Image Elements Detection API focuses on "detection," while the Image Elements removal API focuses on "removal." By calling them in sequence, the removal effect can be maximized, reducing "mistaken removals" and "misidentifications."

Key Features

  1. Firstly, define the image subject and background, and when specifying objects for removal, you can choose whether the removal scope is the image subject or the background area. It supports both API and editor access methods to meet different types of needs.

    • Image Subject: The core product area within the image.

    • Image Background: The remaining part of the image other than the product subject.

  2. Secondly, define the text, logos, watermarks, and text-containing color blocks to be removed. You can confirm the objects to be removed through the following examples for targeted operations.

Samples

Access Methods

The product supports two access methods: API and Iframe Editor.

  • Recommended Access Method: Editor access for a better experience and generation effect. The Iframe Editor access capabilities are about to be launched. If you have any needs before the launch, please contact us.

Pricing

To use the API, you are required to choose and purchase an API resource pack from us on a subscription basis.

  • Each resource pack is valid for one calendar year upon successful purchase, and enables you to access the API up to the number of requests specified in the pack. No refunds can be provided.

  • If you need to purchase more QPS due to business requirements, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).

  • Resource packs cannot be used across different products. For example, if you need to use both product text translation and image translation, you must purchase separate resource packs for each.

The prices are as follows:

Quick Start

1. Sample Request

In the API parameters, you can choose to remove specified elements (watermarks, logos, text, and text-containing color blocks) in the image subject and non-subject areas.

IopClient client = new IopClient(url, appkey, appSecret);
IopRequest request = new IopRequest();
request.setApiName("/ai/image/removal");
request.addApiParameter("image_base64", "Base64");
request.addApiParameter("image_url", "https://ae01.alicdn.com/kf/Sa78257f1d9a34dad8ee494178db12ec8l.jpg");
request.addApiParameter("non_object_remove_elements", "[1,2,3,4]");
request.addApiParameter("object_remove_elements", "[1,2,3,4]");
request.addApiParameter("mask", "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156  160");
IopResponse response = client.execute(request);
System.out.println(response.getBody());
Thread.sleep(10);

2. Sample Response

{
  "data": {
    "imageUrl": "https://nhci-aigc.oss-cn-zhangjiakou.aliyuncs.com/ppc-records%2Fimage-remove%2F805fe1d4-8335-4eaa-b4c1-f9952fea21ef.png?OSSAccessKeyId=LTAI5tCv9DpB7gYic1oGsAyv&Expires=4935905309&Signature=eIJOXyUEBoxqb3VtUJF08xFlcgM%3D",
    "usage": 1,
    "width": 800,
    "class": "com.aidc.service.api.client.image.dto.ImageGenResponse",
    "height": 1259
  },
  "requestId": "2140e7df17192333083756998ebc3f",
  "success": true,
  "resCode": 200,
  "resMessage": "success",
  "code": "0",
  "request_id": "2101725817192333083795305",
  "_trace_id_": "2140e7df17192333083756998ebc3f"
}

FAQ

  1. When an object is obscured by text, does the removal of the text support the generation of a completely new part of the obscured area?

Currently, it only supports the removal of the area and performs simple color repair. It does not support the removal of complex object areas. The product is continuously being updated and iterated, and the redrawing capability is expected to be launched soon. If you have any needs, Please contact us via navigation bar or Email aidge_support@service.alibaba.com.

  1. If the automatic removal effect of the Image Elements Removal API is not ideal, is there a way for users to manually adjust?

Through the Iframe Editor access method, users can manually smudge/frame/circle the area to be removed within the editor for manual adjustment.

  1. Can the Image Elements Removal API recognize and preserve copyright information or important logos in the image during the processing?

It depends on the removal elements and scope specified by the user in the request.

Last updated