Git Product home page Git Product logo

facemorphing's Introduction

FaceMorphing

Start

  1. Install dlib library:
    1. Download the latest library archive-release
    2. Extract it
    3. cd /dlib
    4. mkdir build
    5. cd build
    6. cmake . .
    7. make -j4
    8. sudo make install
  2. Install OpenCV library:
    1. Install dependencies (maybe you'll need more. Shell'll recommend it if it's necessary): sudo apt-get install python-dev python3-dev libgphoto2-dev python3-numpy python-numpy libv4l-dev libv4l2rds0 libgtk-3-dev libgstreamer-plugins-base1.0-dev libgst-dev cmake-qt-gui build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libgstreamer-vaapi1.0-dev libavformat-dev libavformat-ffmpeg-dev -y
    2. Download the latest library archive-release
    3. Download the latest contrib library archive-release
    4. Extract archives in one directory
    5. cd opencv && mkdir build && cd build && cmake-gui
    6. Select opencv directory for source code directory
    7. Select opencv/build directory for build the binaries
    8. Press "Configure" and "Finish"
    9. Type in "extra" in the Search field. The OPENCV_EXTRA_MODULES_.. must be shown. Change it's value to opencv-contrib/modules
    10. Press "Configure"
    11. Close the window
    12. make -j4
    13. sudo make install
  3. Run Face Morphing:
    1. git clone https://github.com/atommaks/FaceMorphing.git to your directory
    2. cd to <project_directory>
    3. cmake .
    4. replace default CMakeLists.txt with my CMakeListst.txt
    5. make
    6. ./main args..

Usage

./main <img1_path> <img2_path> <shape_predictor_file>

Extra

Shape predictor file can be downloaded here

facemorphing's People

Contributors

atommaks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.