All Projects → gao-duan → FaceRelighting

gao-duan / FaceRelighting

Licence: MIT License
3D face reconstruction from a single image and face relighting.

Programming Languages

C++
36643 projects - #6 most used programming language
Cuda
1817 projects
CMake
9771 projects
c
50402 projects - #5 most used programming language
java
68154 projects - #9 most used programming language
Makefile
30231 projects

Face reconstruction and relighting

Duan Gao

img img img img img
img img img img img
input image reconstruct image high-frequency albedo relit video relit video(after propagation)

Project for reconstructing 3D face from a single image and recovering high-frequency albedo. This can be used in many face applications like face relighting and face editing. You can find more algorithm details in documentation.

Dependencies

  • OpenCV 3.4
  • Dlib
  • Only support Visual Studio now. (Maybe extend to CMake later.)

Compile

Command line parameters

  • run

    ./FaceRelighting.exe $SOLUTION_PATH $OUTPUT_FOLDER $INPUT_IMAGE_PATH [$IMAGE_RESOLUTION]

    Example:

    cd FaceRelighting

    PATH_TO_EXE/FaceRelighting.exe ./ ./res/ ./data/example/image.png 250

    $IMAGE_RESOLUTION is the image size of input image. (default value is 250, means 250 x 250)

    Please make sure the input image is square (width equals to height).

  • Convert to GIF (using ImageMagick)

    convert '%d.bmp[0-19]' out.gif

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].