General image segmentation

更新时间:
复制 MD 格式

Segments the main entity from an input image and returns the result as a transparent PNG image. This feature supports various types of entities, such as humans, animals, and objects.

Introduction

  • Function: Image matting and segmentation

  • Action: SegmentImage

Parameters

This operation takes an image URL as input and returns the URL of a transparent PNG image that contains the segmented main entity.

Request parameters:

Name

Type

Required

Description

url

string

Yes

The URL of the image.

Output fields:

Name

Type

Required

Description

url

string

Yes

The URL of the image after segmentation.

Example

Input

{
   "url": "http://ivpd-demo.oss-cn-shanghai.aliyuncs.com/pop-sample/images/SegmentImage/segmentimage-src-hu.jpeg"
}

Outputs

{
  code: "0",
  message: "success",
  trackId: "0b0b62c715591127811257189e",
  reqeustId: "0b0b62c715591127811257189e",
  result: {
    url: 'http://ivpd-demo.oss-cn-shanghai.aliyuncs.com/pop-sample/images/SegmentImage/segmentimage-src-hu-result.png'
  }
}