AiyaEffectsAndroid
宝宝特效Demo通过短视频SDK、直播SDK轻松实现特效与视频剪辑,为用户提供特效相机,拍摄辅助,自动美颜相机,抖音滤镜、直播礼物、直播贴纸等,超低占用空间,十秒大型场景仅100KB+, 精准人脸识别、人脸跟踪,支持3D特效,3D动画特效,2D特效、动画渲染、特效渲染等, visual effects IOS demo, support 3D effect, 3D Animation, 2D effect
Top Related Projects
VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Quick Overview
AiyaEffectsAndroid is an open-source Android SDK for adding real-time face tracking and special effects to mobile applications. It provides a range of features including face detection, face tracking, and various beauty and AR effects that can be applied to live video streams or images.
Pros
- Easy integration with existing Android projects
- Wide range of pre-built effects and filters
- Real-time performance optimized for mobile devices
- Regular updates and active maintenance
Cons
- Limited documentation in English
- Requires camera permissions, which may concern privacy-conscious users
- Some advanced features may require a paid license
- Potential performance impact on lower-end devices
Code Examples
- Initializing the SDK:
AiyaEffects.getInstance().init(context, "YOUR_LICENSE_KEY");
- Adding a face tracking effect to a camera preview:
mEffectHandler = new AiyaHandler(this);
mEffectHandler.setEffect(AiyaEffects.EFFECT_TYPE_FACE_TRACK);
mEffectHandler.setOnProcessListener(new ProcessListener() {
@Override
public void onProcessFinished() {
// Handle processed frame
}
});
- Applying a beauty filter:
mEffectHandler.setBeautyLevel(5); // Set beauty level (0-10)
mEffectHandler.setEffect(AiyaEffects.EFFECT_TYPE_BEAUTY);
Getting Started
- Add the AiyaEffectsSDK dependency to your app's
build.gradle
:
dependencies {
implementation 'com.aiyaapp.aiya:AiyaEffectSDK:4.3.0'
}
- Initialize the SDK in your
Application
class:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
AiyaEffects.getInstance().init(this, "YOUR_LICENSE_KEY");
}
}
- Implement the
AiyaController.FrameCallback
in your camera activity/fragment and use theAiyaController
to process frames:
AiyaController mAiyaController = new AiyaController(this);
mAiyaController.setFrameCallback(this);
mAiyaController.setEffect(AiyaEffects.EFFECT_TYPE_FACE_TRACK);
@Override
public void onFrame(byte[] data, int width, int height) {
// Process frame and update UI
}
Competitor Comparisons
VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Pros of vap
- Optimized for high-performance video animation playback
- Supports alpha channel for transparent video effects
- Provides tools for generating and editing VAP files
Cons of vap
- Limited to VAP file format, less flexible than AiyaEffectsAndroid
- Requires more setup and configuration compared to AiyaEffectsAndroid
- Less extensive documentation and community support
Code Comparison
AiyaEffectsAndroid:
AiyaEffects.getInstance().init(context);
AiyaEffects.getInstance().setEffect(effectPath);
AiyaEffects.getInstance().process(inputTexture, outputTexture, width, height);
vap:
val animView = AnimView(context)
animView.setVideoPath(vapFilePath)
animView.start()
Summary
vap focuses on efficient video animation playback using a custom file format, while AiyaEffectsAndroid offers a broader range of real-time effects and filters. vap excels in performance and transparency support but is less flexible and requires more setup. AiyaEffectsAndroid provides an easier integration process and more diverse effects but may not match vap's specialized video animation performance.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
å®å®ç¹æ AiyaEffectsSDK Android 使ç¨æå
1. æ¦è¿°
å®å®ç¹æ AiyaEffectsSDK 涵çAndroidãiOS两个平å°ï¼åºäºèªä¸»ç åç人è¸è¯å«æ¨¡åï¼ä½ä¸ºä¸æ¬¾å¨æ贴纸åå¨ç»ç¹æé«æ渲æç解å³æ¹æ¡ã
1.1 çæ¬ä¿¡æ¯
å½åçæ¬ï¼AiyaEffectsSDK
4.3.0
1.2 éæ示ä¾
- éæå°è ¾è®¯äºç示ä¾
- éæå°é¿éäºç示ä¾
- éæå°å£°ç½äºç示ä¾
- éæå°ZEGOç示ä¾
2. AiyaEffecSDK åè½è¯´æ
- æ¯æå¨æ贴纸
- æ¯æå¨ç»ç¹æ
- æ¯æèªå®ä¹å¨æ贴纸
- æ¯æèªå®ä¹å¨ç»ç¹æ
- æ¯æç¾é¢
- æ¯æçè§é¢ç¹æ ï¼åèæé³ç¹æï¼
3. è¿è¡ç¯å¢
AndroidçSDK minSdkVersion为18ï¼å³Android4.3å以ä¸å¯ç¨ã
4. ä¸è½½å·¥ç¨
æ¬SDKæä¾å¦ä¸ä¸¤ç§è·åæ¹å¼:
5. å¿«ééæ
éæææ¡£ä¸æä¾äºéæ AndroidçAiyaEffectsSDK çæ¹æ³
6. èªå®ä¹å¨æ贴纸åå¨ç»ç¹æ
å¶ä½å¨æ贴纸åå¨ç»ç¹æçæç¨è¿æªæ£å¼å¼æ¾ï¼è¯·ç´æ¥è系客æè·åå¶ä½æç¨å大éç«é ·ç¹æ
7. License说æ
- å®å®ç¹æ AiyaEffectsSDK å¯ä»¥ç¨äºåä¸åºç¨
- ç³è¯·appKey请访é®å®å®ç¹æ
8. åé¦ä¸å»ºè®®
- 主页: å®å®ç¹æ
- é®ç®±: marketing@aiyaapp.com
- QQ讨论群: 650242833
Top Related Projects
VAP是企鹅电竞开发,用于播放特效动画的实现方案。具有高压缩率、硬件解码等优点。同时支持 iOS,Android,Web 平台。
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot