Motion Triggered Face Distortion

Running Environment

  • Ubuntu 16.04
  • Python 2.7
  • Opencv 2.4.*
    (Under Ubuntu 16.04, some Opencv3 functions may not work.)
  • dlib
  • Pyqt5


  • Python Libraries

  • Opencv2
  • dlib
  • numpy
  • scipy
  • wheel
  • scikit-image


  • Download Code

    - $ git clone https://github.com/RandallDW/video_face_distortion


    Package Installation

    Before installaltion, please make sure you have python-pip installed.
    Install python-pip
  • sudo apt-get install python-pip

  • Dlib pre-required packages installation

  • setuptools
    - $ pip install setuptools
  • cmake
    - $ sudo apt-get install cmake
  • openblas
    - $ git clone https://github.com/xianyi/OpenBLAS.git
    - $ cd OPenBLAS
    - $ make; sudo make install
    - $ sudo apt-get install libopenblas-dev
  • boost
    - $ wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.gz
    (Or go to boost.org manually download)
    - $ tar -xzf boost_1_65_1.tar.gz
    - $ cd boost_1_65_1
    - $ ./booststrap.sh --with-libraries=python
    - $ ./b2
    - $ sudo ./b2 install
    - $ sudo apt-get install libboost-all-dev

  • Install dlib

  • $ git clone https://github.com/davisking/dlib
  • $ cd dlib
  • $ sudo python setup.py install

  • Install other packages

  • $ cd video_face_distortion
  • $ bash setup.sh


  • Executing Program

  • $ cd video_face_distortion
  • $ cd GUI
  • $ python GUI.py
  • Source Code

    If you are interested in our project, you can get source code with command instruction on the left side, or manually download from here .