How to implement pendant function in AI?
It is not recommended to use the pendant capability of AI Effects. Starting from version 2.0.0, the AI Effects SDK no longer supports pendants. If you are still using an older version of the SDK and confirm that you need pendants and the current capabilities meet your requirements, please refer to the following documentation.
Feature Introduction
ZegoEffects SDK provides facial effect pendants. Based on facial keypoint detection and tracking algorithms, it provides facial effects. The SDK can directly fit 2D pendant materials to the face, trigger pendant effects through facial actions, and make live streaming more interesting.
Prerequisites
Before using the pendant function of ZegoEffects SDK, please ensure that you have completed the following operations:
The following links take iOS as an example. If you are integrating other platforms, please switch accordingly.
- Integrated ZegoEffects SDK in the project and implemented basic image processing functions. For details, please refer to iOS - Integrate SDK.
- Import the "PendantResources.bundle" resource path. For details, please refer to iOS Platform - Import Resources and Models.
Usage Steps
Pendant stickers include: three animals (Animal), clown (Clown), deer (Deer), diving goggles (Dive), cool face mask (Facefilm), sailor moon girl (Girl), cat head (Cat), watermelon (Watermelon) and other effects. When developers call the interface, they can select the corresponding filter resources as needed.
