Code Monkey home page Code Monkey logo

agora-electron-faceunity-plugin's Introduction

FaceUnity Plugin for Agora Electron SDK

This repo provide a beauty plugin for Agora Electron SDK. Learn how it works.

How to build - Mac

  • There is a release.sh file under FaceUnityPlugin/mac
  • Run the script, it will automatically download FaceUnity Library and build the dll/dylib for you
  • FaceUnity 6.2.0 will be installed by default, for now you may need to change the script yourself to work with other FaceUnity versions

How to build - Win

  • There is a release.sh file under FaceUnityPlugin/win
  • Run the script, it will automatically download FaceUnity Library
  • Open the .sln file in the same folder and build
  • FaceUnity 6.2.0 will be installed by default, for now you may need to change the script yourself to work with other FaceUnity versions

Get Started

Please take a look at readme in /demo to learn how to integrate this plugin with agora-electron-sdk to realize beauty in your application.

APIs

plugin.fu.authdata

set face unity authdata, please ensure you set this before enable plugin

plugin.setParameter(JSON.stringify({
  "plugin.fu.authdata": []
}))

plugin.fu.bundles.load

load a set of face unity bundle and bundle options, for which options the bundle has, please look at face unity documentation instead

plugin.setParameter(JSON.stringify({"plugin.fu.bundles.load": [{
    bundleName: "face_beautification.bundle",
    bundleOptions: {
    }
}]}))

plugin.fu.bundles.update

update one face unity bundle option, the bundle has to be loaded first. using this api is more efficient if you need to frequently update plugin options. for which options the bundle has, please look at face unity documentation instead

plugin.setParameter(JSON.stringify({"plugin.fu.bundles.update": {
    bundleName: "face_beautification.bundle",
    bundleOptions: {
    }
}}))

agora-electron-faceunity-plugin's People

Contributors

menthays avatar plutoless avatar pplgin avatar zhangtao1104 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.