不知何許人也?
願把『完整精確』文件和『高品質驗證』可攜碼,當作主要特色者實不多見呦!
Major Features
- Documentation
- Unlike a lot of open source projects, this one provides complete and precise documentation for every class and function. There are also debugging modes that check the documented preconditions for functions. When this is enabled it will catch the vast majority of bugs caused by calling functions incorrectly or using objects in an incorrect manner.
- Lots of example programs are provided
- I consider the documentation to be the most important part of the library. So if you find anything that isn’t documented, isn’t clear, or has out of date documentation, tell me and I will fix it.
- High Quality Portable Code
- Good unit test coverage. The ratio of unit test lines of code to library lines of code is about 1 to 4.
- The library is tested regularly on MS Windows, Linux, and Mac OS X systems. However, it should work on any POSIX system and has been used on Solaris, HPUX, and the BSDs.
- No other packages are required to use the library. Only APIs that are provided by an out of the box OS are needed.
- There is no installation or configure step needed before you can use the library. See the How to compile page for details.
- All operating system specific code is isolated inside the OS abstraction layers which are kept as small as possible. The rest of the library is either layered on top of the OS abstraction layers or is pure ISO standard C++.
如今一十六年已過︰
Overview
Dlib is a general purpose cross-platform open source software library written in the C++ programming language. Its design is heavily influenced by ideas from design by contract and component-based software engineering. This means it is, first and foremost, a collection of independent software components, each accompanied by extensive documentation and thorough debugging modes.
Davis King has been the primary author of dlib since development began in 2002. In that time dlib has grown to include a wide variety of tools. In particular, it now contains software components for dealing with networking, threads, graphical interfaces, complex data structures, linear algebra, statistical machine learning, image processing, data mining, XML and text parsing, numerical optimization, Bayesian networks, and numerous other tasks. In recent years, much of the development has been focused on creating a broad set of statistical machine learning tools. However, dlib remains a general purpose library andwelcomes contributions of high quality software components useful in any domain.
Core to the development philosophy of dlib is a dedication to portability and ease of use. Therefore, all code in dlib is designed to be as portable as possible and similarly to not require a user to configure or install anything. To help achieve this, all platform specific code is confined inside the API wrappers. Everything else is either layered on top of those wrappers or is written in pure ISO standard C++. Currently the library is known to work on OS X, MS Windows, Linux, Solaris, the BSDs, and HP-UX. It should work on any POSIX platform but I haven’t had the opportunity to test it on any others (if you have access to other platforms and would like to help increase this list then let me know).
The rest of this page explains everything you need to know to get started using the library. It explains where to find the documentation for each object/function and how to interpret what you find there. For help compiling with dlib check out the how to compile page. Or if you are having trouble finding where a particular object’s documentation is located you may be able to find it by consulting the index.
The library is also covered by the very liberal Boost Software License so feel free to use it any way you like. However, if you use dlib in your research then please cite its Journal of Machine Learning Research paper when publishing.
Finally, I must give some credit to the Reusable Software Research Group at Ohio State since they taught me much of the software engineering techniques used in the creation of this library.
想必寶劍鋒利矣☆
/dlib
A toolkit for making real world machine learning and data analysis applications in C++ http://dlib.net
dlib C++ library
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.
因此樂得捨近求遠
rock64@rock64:~ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import dlib >>> dlib.__version__ '19.16.0' >>>
享受自己編譯樂趣哩☺
sudo pip3 install scikit-build git clone https://github.com/davisking/dlib cd dlib/ mkdir build cd build cmake .. cmake --build . cd .. sudo python3 setup.py install sudo pip3 install imutils
rock64@rock64:~ python3 face_detector.py 260px-鄧麗君.jpg Processing file: 260px-鄧麗君(Teresa_Teng).jpg Number of faces detected: 1 Detection 0: Left: 125 Top: 22 Right: 161 Bottom: 58 Hit enter to continue