Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 2.38 KB

readme.md

File metadata and controls

52 lines (30 loc) · 2.38 KB

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