Skip to content

3D face reconstruction from a single image and face relighting.

License

Notifications You must be signed in to change notification settings

eeii/FaceRelighting

 
 

Repository files navigation

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

About

3D face reconstruction from a single image and face relighting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.4%
  • Cuda 0.8%
  • CMake 0.4%
  • C 0.4%
  • Java 0.0%
  • Makefile 0.0%