Updated compile/install instructions for python bindings.

This commit is contained in:
Davis King 2015-10-27 08:25:43 -04:00
parent 5d377ceb6d
commit 844f252a75
11 changed files with 164 additions and 68 deletions

View File

@ -1,5 +0,0 @@
mkdir build
cd build
cmake ../../tools/python
cmake --build . --config Release --target install
cd ..

View File

@ -14,13 +14,22 @@
# and someone is waving the camera around. The task is to track the position of # and someone is waving the camera around. The task is to track the position of
# the juice box as the camera moves around. # the juice box as the camera moves around.
# #
# COMPILING THE DLIB PYTHON INTERFACE #
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# you are using another python version or operating system then you need to # You can install dlib using the command:
# compile the dlib python interface before you can use this file. To do this, # pip install dlib
# run compile_dlib_python_module.bat. This should work on any operating #
# system so long as you have CMake and boost-python installed. # Alternatively, if you want to compile dlib yourself then go into the dlib
# On Ubuntu, this can be done easily by running the command: # root folder and run:
# python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
# #
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed

View File

@ -20,13 +20,21 @@
# program. # program.
# #
# #
# COMPILING THE DLIB PYTHON INTERFACE # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # You can install dlib using the command:
# you are using another python version or operating system then you need to # pip install dlib
# compile the dlib python interface before you can use this file. To do this, #
# run compile_dlib_python_module.bat. This should work on any operating # Alternatively, if you want to compile dlib yourself then go into the dlib
# system so long as you have CMake and boost-python installed. # root folder and run:
# On Ubuntu, this can be done easily by running the command: # python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
# #
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed

View File

@ -20,13 +20,21 @@
# You can get the shape_predictor_68_face_landmarks.dat file from: # You can get the shape_predictor_68_face_landmarks.dat file from:
# http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2 # http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2
# #
# COMPILING THE DLIB PYTHON INTERFACE # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # You can install dlib using the command:
# you are using another python version or operating system then you need to # pip install dlib
# compile the dlib python interface before you can use this file. To do this, #
# run compile_dlib_python_module.bat. This should work on any operating # Alternatively, if you want to compile dlib yourself then go into the dlib
# system so long as you have CMake and boost-python installed. # root folder and run:
# On Ubuntu, this can be done easily by running the command: # python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
# #
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed

View File

@ -13,6 +13,24 @@
# a few thousand rectangles it is much faster than scanning all possible # a few thousand rectangles it is much faster than scanning all possible
# rectangles inside an image. # rectangles inside an image.
# #
#
# COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# You can install dlib using the command:
# pip install dlib
#
# Alternatively, if you want to compile dlib yourself then go into the dlib
# root folder and run:
# python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake
#
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed
# via the command: # via the command:
# pip install -U scikit-image # pip install -U scikit-image

View File

@ -5,14 +5,24 @@
# problem solver. It is an implementation of the famous Hungarian algorithm # problem solver. It is an implementation of the famous Hungarian algorithm
# and is quite fast, operating in O(N^3) time. # and is quite fast, operating in O(N^3) time.
# #
# COMPILING THE DLIB PYTHON INTERFACE # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # You can install dlib using the command:
# you are using another python version or operating system then you need to # pip install dlib
# compile the dlib python interface before you can use this file. To do this, #
# run compile_dlib_python_module.bat. This should work on any operating # Alternatively, if you want to compile dlib yourself then go into the dlib
# system so long as you have CMake and boost-python installed. # root folder and run:
# On Ubuntu, this can be done easily by running the command: # python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
#
import dlib import dlib
# Let's imagine you need to assign N people to N jobs. Additionally, each # Let's imagine you need to assign N people to N jobs. Additionally, each

View File

@ -10,14 +10,23 @@
# will be to learn to identify person names. Once we have our segmentation # will be to learn to identify person names. Once we have our segmentation
# model we can use it to find names in new sentences, as we will show. # model we can use it to find names in new sentences, as we will show.
# #
# COMPILING THE DLIB PYTHON INTERFACE # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # You can install dlib using the command:
# you are using another python version or operating system then you need to # pip install dlib
# compile the dlib python interface before you can use this file. To do this, #
# run compile_dlib_python_module.bat. This should work on any operating # Alternatively, if you want to compile dlib yourself then go into the dlib
# system so long as you have CMake and boost-python installed. # root folder and run:
# On Ubuntu, this can be done easily by running the command: # python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
#
import sys import sys
import dlib import dlib

View File

@ -13,14 +13,25 @@
# that you use this score to order the objects so that the most relevant objects # that you use this score to order the objects so that the most relevant objects
# come to the top of the ranked list. # come to the top of the ranked list.
# #
# COMPILING THE DLIB PYTHON INTERFACE #
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# you are using another python version or operating system then you need to # You can install dlib using the command:
# compile the dlib python interface before you can use this file. To do this, # pip install dlib
# run compile_dlib_python_module.bat. This should work on any operating #
# system so long as you have CMake and boost-python installed. # Alternatively, if you want to compile dlib yourself then go into the dlib
# On Ubuntu, this can be done easily by running the command: # root folder and run:
# python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
#
import dlib import dlib

View File

@ -13,14 +13,25 @@
# interface. So consider using the C++ interface instead if you find that # interface. So consider using the C++ interface instead if you find that
# running it in python is slow. # running it in python is slow.
# #
# COMPILING THE DLIB PYTHON INTERFACE #
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# you are using another python version or operating system then you need to # You can install dlib using the command:
# compile the dlib python interface before you can use this file. To do this, # pip install dlib
# run compile_dlib_python_module.bat. This should work on any operating #
# system so long as you have CMake and boost-python installed. # Alternatively, if you want to compile dlib yourself then go into the dlib
# On Ubuntu, this can be done easily by running the command: # root folder and run:
# python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
#
import dlib import dlib

View File

@ -7,13 +7,22 @@
# window object detector first published by Dalal and Triggs in 2005 in the # window object detector first published by Dalal and Triggs in 2005 in the
# paper Histograms of Oriented Gradients for Human Detection. # paper Histograms of Oriented Gradients for Human Detection.
# #
# COMPILING THE DLIB PYTHON INTERFACE #
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# you are using another python version or operating system then you need to # You can install dlib using the command:
# compile the dlib python interface before you can use this file. To do this, # pip install dlib
# run compile_dlib_python_module.bat. This should work on any operating #
# system so long as you have CMake and boost-python installed. # Alternatively, if you want to compile dlib yourself then go into the dlib
# On Ubuntu, this can be done easily by running the command: # root folder and run:
# python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
# #
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed

View File

@ -16,13 +16,21 @@
# prediction tasks. But here we demonstrate it only on a simple face # prediction tasks. But here we demonstrate it only on a simple face
# landmarking task. # landmarking task.
# #
# COMPILING THE DLIB PYTHON INTERFACE # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE
# Dlib comes with a compiled python interface for python 2.7 on MS Windows. If # You can install dlib using the command:
# you are using another python version or operating system then you need to # pip install dlib
# compile the dlib python interface before you can use this file. To do this, #
# run compile_dlib_python_module.bat. This should work on any operating # Alternatively, if you want to compile dlib yourself then go into the dlib
# system so long as you have CMake and boost-python installed. # root folder and run:
# On Ubuntu, this can be done easily by running the command: # python setup.py install
# or
# python setup.py install --yes USE_AVX_INSTRUCTIONS
# if you have a CPU that supports AVX instructions, since this makes some
# things run faster.
#
# Compiling dlib should work on any operating system so long as you have
# CMake and boost-python installed. On Ubuntu, this can be done easily by
# running the command:
# sudo apt-get install libboost-python-dev cmake # sudo apt-get install libboost-python-dev cmake
# #
# Also note that this example requires scikit-image which can be installed # Also note that this example requires scikit-image which can be installed