• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

dlib/H03-May-2022-577,812371,544

docs/H03-May-2022-1,4961,225

examples/H03-May-2022-24,60812,792

python_examples/H03-May-2022-1,993622

tools/H28-Mar-2021-19,85215,107

ISSUE_TEMPLATE.mdH A D28-Mar-20212.5 KiB3219

MANIFEST.inH A D28-Mar-2021298 1813

README.mdH A D28-Mar-20213 KiB7145

setup.pyH A D28-Mar-202110.1 KiB264214

README.md

1# dlib C++ library [![Travis Status](https://travis-ci.org/davisking/dlib.svg?branch=master)](https://travis-ci.org/davisking/dlib)
2
3Dlib 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](http://dlib.net) for the main project documentation and API reference.
4
5
6
7## Compiling dlib C++ example programs
8
9Go into the examples folder and type:
10
11```bash
12mkdir build; cd build; cmake .. ; cmake --build .
13```
14
15That will build all the examples.
16If you have a CPU that supports AVX instructions then turn them on like this:
17
18```bash
19mkdir build; cd build; cmake .. -DUSE_AVX_INSTRUCTIONS=1; cmake --build .
20```
21
22Doing so will make some things run faster.
23
24Finally, Visual Studio users should usually do everything in 64bit mode.  By default Visual Studio is 32bit, both in its outputs and its own execution, so you have to explicitly tell it to use 64bits.  Since it's not the 1990s anymore you probably want to use 64bits.  Do that with a cmake invocation like this:
25```bash
26cmake .. -G "Visual Studio 14 2015 Win64" -T host=x64
27```
28
29## Compiling your own C++ programs that use dlib
30
31The examples folder has a [CMake tutorial](https://github.com/davisking/dlib/blob/master/examples/CMakeLists.txt) that tells you what to do.  There are also additional instructions on the [dlib web site](http://dlib.net/compile.html).
32
33Alternatively, if you are using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager you can download and install dlib with CMake integration in a single command:
34```bash
35vcpkg install dlib
36```
37
38## Compiling dlib Python API
39
40Before you can run the Python example programs you must compile dlib. Type:
41
42```bash
43python setup.py install
44```
45
46
47## Running the unit test suite
48
49Type the following to compile and run the dlib unit test suite:
50
51```bash
52cd dlib/test
53mkdir build
54cd build
55cmake ..
56cmake --build . --config Release
57./dtest --runall
58```
59
60Note 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.
61
62This library is licensed under the Boost Software License, which can be found in [dlib/LICENSE.txt](https://github.com/davisking/dlib/blob/master/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.
63
64## dlib sponsors
65
66This research is based in part 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.
67
68Version: 19.22
69Date:    Sun Mar 28 09:22:07 EDT 2021
70Mercurial Revision ID: f152a78a56bce7a6603a247bea96f353e0662e63
71