Dlib Cmake

Latest version

CMake looks for a file named dlibConfig.cmake within directory dlibDIR to find Dlib’s include and library directories. Press Windows Super key, search for “environment variables”. Click Environment Variables in System Properties window. Click New in “User Variables” (in upper half of window). In particular, dlib's python API is built by the CMake project in the tools/python folder. You build this project using the usual CMake commands and when compiled it outputs the dlib shared library that defines the python API for dlib. Compiling C Examples Without CMake. For example, the linux-x8664 tar file is all under the directory cmake–linux-x8664. This prefix can be removed as long as the share, bin, man and doc directories are moved relative to each other. To build the source distributions, unpack them with zip or tar and follow the instructions in README.rst at the top of the source tree. Then install dlib by pip. We need to install cmake because dlib is written in c. February 11, 2019 at 4:15 am.

Released:

A toolkit for making real world machine learning and data analysis applications

Project description

Dlib Cmake Windows

Project details


Release historyRelease notifications RSS feed

19.22.0

19.21.1

19.21.0

19.20.0

19.19.0

19.18.0

19.17.0

19.16.0

19.15.0

19.14.0

19.13.1

19.13.0

19.12.0

19.10.0

19.9.0

19.8.2

19.8.1

19.8.0

19.7.0

Python dlibDlib

19.6.1

19.6.0

19.5.1

Dlib Cmake In Linux

19.5.0

19.4.0

19.3.1

19.3.0

19.1.0

19.0.0

18.17.100

Download files

Dlib

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dlib, version 19.22.0
Filename, sizeFile typePython versionUpload dateHashes
Filename, size dlib-19.22.0.tar.gz (7.4 MB) File type Source Python version None Upload dateHashes
Close

Hashes for dlib-19.22.0.tar.gz

Hashes for dlib-19.22.0.tar.gz
AlgorithmHash digest
SHA256b5f5fe43ad19a821903aad786381e5b51a9d219527148fd604e719b398e84108
MD5768032d4bfdb099be0045750594af86a
BLAKE2-2561193ec41d6ef7e769977aa08e49441c52276da27859f12dcbf1c6deb96ce5e9f

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.

Compiling dlib C++ example programs

Go into the examples folder and type:

That will build all the examples.If you have a CPU that supports AVX instructions then turn them on like this:

Doing so will make some things run faster.

Finally, 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:

Compiling your own C++ programs that use dlib

Dlib

The examples folder has a CMake tutorial that tells you what to do. There are also additional instructions on the dlib web site.

Pip

Compiling dlib Python API

Before you can run the Python example programs you must compile dlib. Type:

Running the unit test suite

Type the following to compile and run the dlib unit test suite:

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.

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

This 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.