In this folder, you should have:
CMakeLists.txt
faces (folder)
main_code_ex.cpp
mask.jpg
shape_predictor_68_face_landmarks.dat
skull-illusion.jpg


1. Download and install CMake (https://cmake.org/download/)


2. Download and install OpenCV.
   Possible install structions:
   (1) Download OpenCV from https://sourceforge.net/projects/opencvlibrary/ and unpack it.
   (2) Create a temporary directory, which we denote as <cmake_binary_dir>, where you want 
       to put the generated Makefiles, project files as well the object files and output 
       binaries.
   (3) Enter the <cmake_binary_dir> and type
       cmake [<some optional parameters>] <path to the OpenCV source directory>

       For example,

       cd ~/opencv
       mkdir release
       cd release
       cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
   (4) Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
       make
       sudo make install


3. Download dlib and unpack it (http://dlib.net/files/dlib-19.4.tar.bz2)


4. Throw my project folder (yang_ee367_win17_code) into dlib-19.4 folder.


5. Enter the “/yang_ee367_win17_code” folder via terminal and type
   cmake .
   make


6. After the “main_cold_ex” document is generated, type
   ./main_code_ex shape_predictor_68_face_landmarks.dat faces/*.jpg
   
   (Throw any single person jpg image into the “/yang_ee367_win17_code/faces” folder and
   change the “*” symbol into image name, for example,

   ./main_code_ex shape_predictor_68_face_landmarks.dat faces/gordon.jpg
   
   and the gordon puppet will show up in the “/yang_ee367_win17_code” folder)
   

7. You can find the “result.jpg” in the “/yang_ee367_win17_code” folder