Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
844f252a
Commit
844f252a
authored
Oct 27, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated compile/install instructions for python bindings.
parent
5d377ceb
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
164 additions
and
68 deletions
+164
-68
compile_dlib_python_module.bat
python_examples/compile_dlib_python_module.bat
+0
-5
correlation_tracker.py
python_examples/correlation_tracker.py
+16
-7
face_detector.py
python_examples/face_detector.py
+15
-7
face_landmark_detection.py
python_examples/face_landmark_detection.py
+15
-7
find_candidate_object_locations.py
python_examples/find_candidate_object_locations.py
+18
-0
max_cost_assignment.py
python_examples/max_cost_assignment.py
+17
-7
sequence_segmenter.py
python_examples/sequence_segmenter.py
+16
-7
svm_rank.py
python_examples/svm_rank.py
+18
-7
svm_struct.py
python_examples/svm_struct.py
+18
-7
train_object_detector.py
python_examples/train_object_detector.py
+16
-7
train_shape_predictor.py
python_examples/train_shape_predictor.py
+15
-7
No files found.
python_examples/compile_dlib_python_module.bat
deleted
100755 → 0
View file @
5d377ceb
mkdir build
cd build
cmake ../../tools/python
cmake --build . --config Release --target install
cd ..
python_examples/correlation_tracker.py
View file @
844f252a
...
@@ -14,13 +14,22 @@
...
@@ -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
...
...
python_examples/face_detector.py
View file @
844f252a
...
@@ -20,13 +20,21 @@
...
@@ -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
...
...
python_examples/face_landmark_detection.py
View file @
844f252a
...
@@ -20,13 +20,21 @@
...
@@ -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
...
...
python_examples/find_candidate_object_locations.py
View file @
844f252a
...
@@ -13,6 +13,24 @@
...
@@ -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
...
...
python_examples/max_cost_assignment.py
View file @
844f252a
...
@@ -5,14 +5,24 @@
...
@@ -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
...
...
python_examples/sequence_segmenter.py
View file @
844f252a
...
@@ -10,14 +10,23 @@
...
@@ -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
...
...
python_examples/svm_rank.py
View file @
844f252a
...
@@ -13,14 +13,25 @@
...
@@ -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
...
...
python_examples/svm_struct.py
View file @
844f252a
...
@@ -13,14 +13,25 @@
...
@@ -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
...
...
python_examples/train_object_detector.py
View file @
844f252a
...
@@ -7,13 +7,22 @@
...
@@ -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
...
...
python_examples/train_shape_predictor.py
View file @
844f252a
...
@@ -16,13 +16,21 @@
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment