Giter Club home page Giter Club logo

avatarian's Introduction

日本語版

Avatarian

Avatarian is an app that transforms the faces of people in web conferences into avatars in real-time.

Demo image

Demo Image This is a demo image of Avatarian on "Around" web meeting App.

How to Use

This application offers a variety of options to customize your experience:

  1. Application Selection: You can specify the application you want to use with this app.

  2. Camera Selection: The app allows you to choose the camera you want to use.

  3. Streaming Output: There's an option to stream your output, providing a live feed of your usage.

Here's a step-by-step guide on how to use these options:

1. Application Selection

To specify the application, run the command

python main.py WINDOW_NAME

or

python main.py -window WINDOW_NAME

Please replace WINDOW_NAME with the name of the window you want to capture.
Note that the application can only capture the window that is in the foreground.”

2. Camera Selection

To choose the camera, run the command

python main.py -camera CAMERA_NUMBER

Here, CAMERA_NUMBER is the number assigned to the camera you want to use.
For example, if you want to use the first camera, you would enter python main.py -camera 0.

3. Streaming Output

To stream your output for RTMP, run the command

python main.py (-window WINDOW_NAME / -camera CAMERA_NUMBER) -rtmp YOUR_RTMP_STREAMING_URL

Replace WINDOW_NAME with the name of the window you want to capture or
CAMERA_NUMBER with the number of the camera you want to use,
and replace YOUR_RTMP_STREAMING_URL with your actual RTMP streaming URL.

Avatars

Currently, this app supports avatar creation using image files only, not 3D models.
Please save your preferred avatar image in the 'avatars' folder.
The image should be in jpg(jpeg), png(apng) or gif format and it's extension.
Avatars are assigned in the order that faces are recognized,
corresponding to the alphabetical order of their names.
If there aren't enough avatars, the last image will be assigned to the remaining faces.

How to Install

You can install this app on Windows OS in 5 steps from scratch:

  1. Install a C++ compiler.
    I recommend the "Microsoft C++ Build Tool".
  2. Install Cmake.
    This step is optional if you're using the "Microsoft C++ Build Tool".
    If you do install it, please ensure it's added to your PATH in the environmental variables.
  3. Install Python (version 3.10 or higher).
    Make sure to add it to your PATH in the environmental variables.
  4. Download "Avatarian" from this repository as a zip file and extract it.
  5. Install libraries of Python by the script below in cmd.exe.
pip install opencv-python face_recognition pyautogui pygetwindow setuptools imageio

About C++ Compiler

Many of you may use this app for work, especially for online meetings.
However, please be mindful of the C++ compiler license when doing so.
While Microsoft Visual Studio Community is suitable for personal use,
I recommend the Microsoft C++ Build Tool for commercial use.
For more information on the license, please refer to the following article: Updates to Visual Studio Build Tools license for C and C++ Open-Source projects(Published on August 18th, 2022)

Please note that by default, installing the Microsoft C++ Build Tool will also install the C++ compiler and Cmake.

About dlib

Normally, dlib is installed without CUDA enabled. You can compile dlib by your self and make CUDA enabled. Then the speed of fps dramatically improved around 30 fps (when GTX3070 is used)

avatarian's People

Contributors

mtsnrtkhr 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.