Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.17 KB

INSTALL.md

File metadata and controls

39 lines (32 loc) · 1.17 KB

Make sure you have Bash, Cmake, Git, FFmpeg and OpenCV installed.

If you're on Ubuntu, this should be enough:

    # this installs a prebuilt opencv with python bindings along with some other tools
    sudo apt-get install -y \
      git \
      pkg-config \
      build-essential \
      cmake \
      libopencv-dev \
      python-opencv \
      ffmpeg

Otherwise check:

After you have all the dependencies, the build is simple:

# assuming you installed from libopencv-dev in ubuntu/debian
# if not, look for the directory that contains OpenCVConfig.cmake
path_to_opencv=$(dpkg --listfiles libopencv-dev | grep --max-count=1 'OpenCVConfig.cmake$')

git clone https://github.com/MatrixAI/face-analysis-sdk
pushd face-analysis-sdk
    mkdir -p build
    pushd build
        cmake -DOpenCV_DIR="$path_to_opencv" -DFFMPEG=$(which ffmpeg) -DBASH=$(which bash) ..
        make
    popd
popd