Offline image segmentation SDK

更新时间:
复制 MD 格式

The offline image segmentation SDK uses advanced detection technology to precisely separate a subject from the background in an image. This enables flawless background removal and replacement, even in complex scenes.

Note

As of May 12, 2026, the Alibaba Cloud Vision Intelligence Platform will no longer issue new license authorizations for its offline SDK products. Existing users can continue to use their licenses without interruption.

Benefits

  • Achieve fine-grained, flawless segmentation of portraits in common image formats, with precise, artifact-free edges.

  • Accurately segment a portrait from a complex background, producing a complete and clear result with clean, tight edges.

Use cases

  • Segment a user's photo to replace the original background with a solid blue or white color, instantly generating an ID photo.

  • Create engaging content by extracting a portrait or avatar from an image and placing it in a new background, such as a painting or a humorous scene. This offers a low-cost way for entertainment and social media applications to attract users.

Prerequisites

Before using the SDK, you must complete the activation and authorization process. For more information, see Activate and authorize the offline SDK.

Billing

For pricing details, see Offline SDK Billing Overview.

Supported devices

Android, iOS

Limitations

  • Android: Requires Android 5.0 or later. The device must have a camera and a gyroscope.

  • iOS: Requires iOS 10 or later and an iPhone 5s or a later model. The device must have a camera.

  • Recommended camera resolution: For optimal performance, use a native camera resolution between 640×480 and 1280×720 pixels. Higher resolutions may reduce SDK processing speed.

  • To use the SDK on an iPhone 5s or earlier models, or on low-end Android devices, please contact us.

Integration

Important

This SDK does not transmit any data to the SDK provider. Therefore, if you use this SDK to collect personal information, you are considered the data processor. The SDK provider is not a data processor or a sub-processor. You must fully inform users and obtain their authorization in accordance with relevant laws and regulations. When informing users, ensure that the SDK provider is not identified as a data processor or a sub-processor.