Avatarian is an app that transforms the faces of people in web conferences into avatars in real-time.
This is a demo image of Avatarian on "Around" web meeting App.
This application offers a variety of options to customize your experience:
-
Application Selection: You can specify the application you want to use with this app.
-
Camera Selection: The app allows you to choose the camera you want to use.
-
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:
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.”
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.
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.
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.
You can install this app on Windows OS in 5 steps from scratch:
- Install a C++ compiler.
I recommend the "Microsoft C++ Build Tool". - 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. - Install Python (version 3.10 or higher).
Make sure to add it to your PATH in the environmental variables. - Download "Avatarian" from this repository as a zip file and extract it.
- Install libraries of Python by the script below in cmd.exe.
pip install opencv-python face_recognition pyautogui pygetwindow setuptools imageio
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.
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)