A repository for studying virtual characters technique.
Can not yet be made use of for smoothly real-time application now.
But it will!🐱🚀
This project aims to apply different face/body alignment algorithm on virtual character synchronizing.
And promote my coding level.
The following steps will install required packages and run the demo program,
and the tutorial is based on anaconda environment.
I use these packages to develop the project.
conda install -c 1adrianb face_alignment
- numpy
conda install -c anaconda numpy
- OpenCV
conda install -c conda-forge opencv
- Dlib
You can build cuda-supported dlib by yourself, and it may be faster.
conda install -c conda-forge dlib
You can just clone the repository.
git clone https://birdmandayum0131/virtual-bird.git
Change directory to your project path and run demo.py
cd path/to/your/project/
python demo.py
If the camera window show sucessfully,
you can use l
h
a
commands to test landmarks、head pose and head axis features,
and q
to exist the program.
You can change default config to fit your environments in config/config.py
If everything works normally, follow these steps to demo on unity.
- create a unity project and add one of following supported 3D model prefab in your scene.
- copy the scripts in unity-scripts folder to your unity project in Unity Editor.
- add these scripts as components to your 3D model prefab.
- Tcp/Udp Receiver (choose one)
- Face Synchronizer
- All scripts in the folder which correspond to your prefab
If all done, play the sample scene. (Sorry I didn't export it to .exe file now.🐱🚀)
You can also download the unity sample project here to test the demo.
- support Dlib Face/Landmarks Detector
2022/01/03
- change development environment to newer version(
Of course, not hardware😢)2021/12/27
- support OpenCV Head Pose Estimation
2021/12/26
- support OpenCV Gaze Tracking
2021/12/08
- support FAN facial landmarks detector
2021/12/08
- support Ghost character
2021/12/08
- Algorithm
- Unity Model
- 3D
- 2D
Under Planning
- Android Support
Under Planning
- iOS Support
Under Planning
This project is developed on a old hardware, but these information may still be helpful for you :
CPU | GPU | RAM | VRAM | Python | CUDA | cuDNN | PyTorch | Unity Editor |
---|---|---|---|---|---|---|---|---|
FX-8320E | GTX 960 | 8 Gb | 2 Gb | 3.8.12 | 10.2 | 8.3.0 | 1.10.1 | 2019.4.33f1 |
These repositories helps me in this project, You can check their repo for more related knowledge.
Thanks for their open resources!
antoinelame/GazeTracking
kwea123/VTuber_Unity
yinguobing/head-pose-estimation
dbolya/yolact