README.txt 2.16 KB
Newer Older
1

Davis King's avatar
Davis King committed
2
                              dlib C++ library
3

Davis King's avatar
Davis King committed
4
5
6
Dlib is a modern C++ toolkit containing machine learning algorithms and tools
for creating complex software in C++ to solve real world problems.  See
http://dlib.net for the main project documentation and API reference.
Davis King's avatar
Davis King committed
7

8
9


Davis King's avatar
Davis King committed
10
COMPILING DLIB C++ EXAMPLE PROGRAMS
Davis King's avatar
Davis King committed
11
   Go into the examples folder and type:
Davis King's avatar
Davis King committed
12
13
14
       mkdir build; cd build; cmake .. ; cmake --build .
   That will build all the examples.  If you have a CPU that supports AVX
   instructions then turn them on like this:
Davis King's avatar
Davis King committed
15
       mkdir build; cd build; cmake .. -DUSE_AVX_INSTRUCTIONS=1; cmake --build .
Davis King's avatar
Davis King committed
16
17
18
19
20
21
22
23
24
   Doing so will make some things run faster.

COMPILING DLIB Python API
   Before you can run the Python example programs you must compile dlib. Type:
       python setup.py install
   or type
       python setup.py install --yes USE_AVX_INSTRUCTIONS
   if you have a CPU that supports AVX instructions, since this makes some
   things run faster.  
25
26

RUNNING THE UNIT TEST SUITE
Davis King's avatar
Davis King committed
27
28
29
30
31
32
   Type the following to compile and run the dlib unit test suite:
       cd dlib/test
       mkdir build
       cd build
       cmake ..
       cmake --build . --config Release
Davis King's avatar
Davis King committed
33
       ./dtest --runall
Davis King's avatar
Davis King committed
34
35
36
37

   Note that on windows your compiler might put the test executable in a
   subfolder called Release.  If that's the case then you have to go to that
   folder before running the test.
38

Davis King's avatar
Davis King committed
39
40
41
42
43
This library is licensed under the Boost Software License, which can be found
in dlib/LICENSE.txt.  The long and short of the license is that you can use
dlib however you like, even in closed source commercial software.

Dlib Sponsors:
Jeffrey Byrne's avatar
Jeffrey Byrne committed
44
45
46
47
48
49
50
  This research is based upon work supported by the Office of the Director of
  National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA)
  under contract number 2014-14071600010. The views and conclusions contained
  herein are those of the authors and should not be interpreted as necessarily representing
  the official policies or endorsements, either expressed or implied, of ODNI, IARPA, or the
  U.S. Government.  The U.S. Government is authorized to reproduce and distribute reprints
  for Governmental purpose notwithstanding any copyright annotation thereon.
Davis King's avatar
Davis King committed
51