Convert Figma logo to code with AI

aiyaapp logoAiyaEffectsAndroid

宝宝特效Demo通过短视频SDK、直播SDK轻松实现特效与视频剪辑,为用户提供特效相机,拍摄辅助,自动美颜相机,抖音滤镜、直播礼物、直播贴纸等,超低占用空间,十秒大型场景仅100KB+, 精准人脸识别、人脸跟踪,支持3D特效,3D动画特效,2D特效、动画渲染、特效渲染等, visual effects IOS demo, support 3D effect, 3D Animation, 2D effect

1,030
271
1,030
11

Top Related Projects

3,899

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

  1. Initializing the SDK:
AiyaEffects.getInstance().init(context, "YOUR_LICENSE_KEY");
  1. 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
    }
});
  1. Applying a beauty filter:
mEffectHandler.setBeautyLevel(5); // Set beauty level (0-10)
mEffectHandler.setEffect(AiyaEffects.EFFECT_TYPE_BEAUTY);

Getting Started

  1. Add the AiyaEffectsSDK dependency to your app's build.gradle:
dependencies {
    implementation 'com.aiyaapp.aiya:AiyaEffectSDK:4.3.0'
}
  1. 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");
    }
}
  1. Implement the AiyaController.FrameCallback in your camera activity/fragment and use the AiyaController 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

3,899

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 Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

宝宝特效 宝宝特效

宝宝特效 AiyaEffectsSDK Android 使用手册

1. 概述

宝宝特效 AiyaEffectsSDK 涵盖Android、iOS两个平台,基于自主研发的人脸识别模块,作为一款动态贴纸和动画特效高效渲染的解决方案。

1.1 版本信息

当前版本:AiyaEffectsSDK

4.3.0

1.2 集成示例

2. AiyaEffecSDK 功能说明

  • 支持动态贴纸
  • 支持动画特效
  • 支持自定义动态贴纸
  • 支持自定义动画特效
  • 支持美颜
  • 支持短视频特效 (参考抖音特效)

3. 运行环境

Android版SDK minSdkVersion为18,即Android4.3及以上可用。

4. 下载工程

本SDK提供如下两种获取方式:

5. 快速集成

集成文档中提供了集成 Android版AiyaEffectsSDK 的方法

6. 自定义动态贴纸和动画特效

制作动态贴纸和动画特效的教程还未正式开放,请直接联系客服获取制作教程和大量炫酷特效

7. License说明

  • 宝宝特效 AiyaEffectsSDK 可以用于商业应用
  • 申请appKey请访问宝宝特效

8. 反馈与建议

宝宝特效