Documentation
AI_Vision AI Effects
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • AI Effects
  • Guides
  • Stickers

Stickers

Last updated:2024-12-09 11:49

Starting from version 2.0.0, the AI Effects SDK no longer supports stickers.

The ZegoEffects SDK provides various fun and interesting face stickers. With accurate facial keypoint detection and tracking, the stickers can be applied seamlessly to the face and special effects can be triggered by facial movements.

Prerequisites

Before you begin to use the SDK's stickers in your project, make sure you complete the following steps:

  1. Integrate the ZegoEffects SDK into your project. For details, see Integration.
  2. Implement the basic image processing functionality. For details, see Implementation.
  3. Import the resource file PendantResources.bundle. For details, see Import resources

Use a sticker

The SDK provides different types of stickers, including Animal, Clown, Deer, Dive, Facefilm, Girl, Rabbit, Watermelon, and more. You can choose to use any stickers as needed by specifying the corresponding sticker resource.

To use the sticker feature, import the resource file PendantResources first; otherwise, this feature can't take effect. For details, see Import resources and models.

  1. To apply a sticker, call the setPendant method with the path of the sticker resource passed to the path parameter.
  2. To remove a sticker, call the setPendant method with the path parameter set to null.
  • You can't superimpose the effects of different stickers. Once you apply a new sticker, the previous one (if any) will be overridden.
  • You can't superimpose the stickers and makeup looks. Once you apply a sticker, the makeup look will be overridden.
// Apply a sticker.
mEffects.setPendant("/xxx/xxx/pendantBaby.bundle");

// Remove a sticker.
mEffects.setPendant(null);
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code