OpenFace face recognition API Installation prerequisites dlib Setup 3

Опубликовано: 14 Январь 2025
на канале: Areeb Zaidi
28,740
110

How to install dlib for OpenFace and all the related packages, to make sure OpenFace work properly

Freely available at http://github.com/cmusatyalab/openface

Original Google CVPR 2015 FaceNet paper: http://www.cv-foundation.org/openacce...

Commands For installing dlib

$ mkdir -p ~/src
$ cd ~/src
$ tar xf dlib-18.16.tar.bz2
$ cd dlib-18.16/python_examples
$ mkdir build

!--before proceeding further chk for the boost error--!
For Boost Installation
to fix error boost error
$ wget -O boost_1_62_0.tar.gz http://sourceforge.net/projects/boost...
$ tar xzvf boost_1_62_0.tar.gz
$ cd boost_1_62_0/
$ sudo apt-get update
$ sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev


$ ./bootstrap.sh --prefix=/usr/local

Then build it with:

$ ./b2
and eventually install it:

$ sudo ./b2 install

!--Now Continue Further--!

After boost, Accessing the directory

$ cd ~/src
$ cd dlib-18.16/python_examples
$ cd build

now the leftovers commands

$ cmake ../../tools/python
$ cmake --build . --config Release
$ sudo cp dlib.so /usr/local/lib/python2.7/dist-packages



More Info? Click below to Subscribe:

   / syedareebzaidi  

  / syedareebzaidi  

  / areeb_bj  

  / syed.areeb.zaidi  

Thanks for watching!