Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Dlib 19.9

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to install Dlib 19.9", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install Dlib 19.9" this article.

Release 19.9

Release date: Jan 22, 2018

Major Changes in this Release

New Features and Improvements:

Switched the Python API from Boost.Python to pybind11. This means Python users don't need to install Boost anymore, making building dlib's Python API much easier.

…… (other updates don't care! )

What do I see?!

Don't need to install Boost anymoredon't need to install Boost anymoredon't need to install Boost anymore

Say the important words three times!

Anyone who has used or tried to use the Python version of Dlib will be impressed by Boost.Python during its installation, and can understand why I am so excited to see the update log above.

For those who failed to use dlib and gave up during installation, I would like to say that I understand you very well. Maybe I don't use Python enough, but in my shallow experience, it's only dlib that needs so much trouble to install a Python library since I used Python.

I used to put a lot of effort into compiling Boost and configuring the environment, and then it was much more convenient every time I installed it. Dlib is really a very useful library, and I've done some very interesting things with it, such as:

Face recognition practice of 40 lines of code

Add a Christmas hat to the avatar with Python

There are some more interesting ones that will be written in the future.

Many readers usually get stuck in the installation when they try to do some interesting projects on their own, and people keep asking what to do if they can't find Boost when installing dlib. To do this, I wrote a configuration tutorial for Dlib:

Install dlib under python (compilation of boost.python)

Compilation and configuration of Dlib on VS2015 (face detection, face recognition is better than OpenCV)

A lot of people have tried, but I'm sure a lot of people have given up. I've released a simpler installation of dlib on the knowledge planet more than once, but I can't avoid Boost.

This time, Dlib finally got rid of the heavy burden of Boost and went on the road light. Davisking, author of Dlib, released a new version 19.9 more than a month after it was released. He must have been bothered by the people who came to ask questions for a long time.

This is a huge step forward! (this is a massive improvement!) this is what someone said on Github, expressing everyone's feelings.

Installation

Now installing Dlib will not be as tedious as the tutorials mentioned above.

If you have previously installed dlib, you need to uninstall the previous version.

Download dlib19.9.zip, extract it, and then find a file called setup.py in the dlib19.9 folder.

Then open the command line under the current folder (Shift+ right). Enter the following command:

Python setup.py install

If cpu supports the AVX instruction set, you can also make dlib a little faster

Python setup.py install-yes USE_AVX_INSTRUCTIONS

Dlib can also be faster if GPU is available and CUDA is installed.

Python setup.py install-yes USE_AVX_INSTRUCTIONS-yes DLIB_USE_CUDA

These are all the contents of the article "how to install Dlib 19.9". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report