Skip to content

definability/mfm

Repository files navigation

Morphable Face Model

Data used in this example should be downloaded from the official site of University of Basel.

Morphable face model described in the following article:

Paysan P.,Knothe R., Amberg B., Romdhani S., and Vetter T. "A 3D Face Model for Pose and Illumination Invariant Face Recognition". Proceedings of the 6th IEEE International Conference on Advanced Video and Signal based Surveillance (AVSS) for Security, Safety and Monitoring in Smart Environments Genova (Italy), pp 296 - 301, September, 2009

Development

Run the Docker container with Python

xhost +
docker run --rm -it -v $PWD:/src/ \
           -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
           --device=/dev/dri/card0:/dev/dri/card0 python:3 bash

Install needed packages

apt update
apt install -y python-opengl python-numpy python-scipy

pip install --upgrade pip
pip install scipy numpy pyopengl ipython pillow

apt install xserver-xorg-video-dummy
curl http://xpra.org/xorg.conf -o /usr/share/X11/xorg.conf.d/xorg.conf
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./10.log -config ./xorg.conf :10
export DISPLAY=:10

Fake display explained on askubuntu.com and xpra.org.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published