Learning and using dlib library

dlib face library is a very commonly used libraries for data preprocessing stage.

dlib library's official website is:http://dlib.net/

The official website, we mainly see two parts, one is the python api, is another version of the Python examples.

To give you an example I used small, such as do people face critical point or attributes, you need to face partially extracted, it can be:

import cv2
import dlib

detector = dlib.get_frontal_face_detector()

img = cv2.imread('/home/dddzz/worksapce/datasets/lfw/Aaron_Guiel/Aaron_Guiel_0001.jpg')

dets = detector(img, 1)

for i, d in enumerate(dets):
        print("Detection {}: Left: {} Top: {} Right: {} Bottom: {}".format(
            i, d.left(), d.top(), d.right(), d.bottom()))

So you can get the coordinates of the face frame.

Intelligent Recommendation

dlib library learning--------target detection (hog+svm)

1. Training hyperparameter settings The hyperparameters of the object detector training in the dlib library are set by the dlib.simple_object_detector_training_options class. Let's take a look at this...

Learning and implementation of 3d_point_cloud_ex.cpp (3D point cloud) in DLIB library example

! Disclaimer! The following are all personal understanding, newcomers are inevitably wrong, I hope to correct. First, function learning 1、perspective_window::overlay_dot (one of the class perspective_...

C++ compilation and use of machine learning library dlib (windows and linux)

Dlib is a toolkit written in C++. Compared to deep learning libraries, dlib internally encapsulates many more traditions.Machine learningComputational functions, such as regression analysis, support v...

Python package compilation and use of machine learning library dlib (windows and linux)

The dlib library has a corresponding python extension interface package. After installation, you can use python to call the ldib library writer. Obtain From the official websiteDlib official websiteOr...

[Deep learning tool]·Minimal installation of Dlib face recognition library

[Deep learning tool]·Minimal installation of Dlib face recognition library Introduction to Dlib Dlib is a modern C++ toolbox that contains machine learning algorithms and tools for creating com...

More Recommendation

Installation and configuration of vs2013+DLib machine learning library under win10

Installation and configuration of vs2013+DLib machine learning library under win10 This blog mainly uses two methods to compile and generate dlib.lib: Generate dlib.lib file with Cmake compilation too...

Install dlib machine learning open source library in python under windows

Recently, I was studying the direction of face recognition, and I downloaded some code for face recognition on the Internet, and found that basically one sentence impot dlib is used. Let me first talk...

C ++ machine learning library DLIB compilation and application test

1 DLIB introduction DLIB is a modern C ++ toolbox containing machine learning algorithms and tools, which can create complex software with C ++ to solve practical problems. It is widely used in indust...

Dlib dynamic library compilation

In the official documentation, the result of dlib compilation is only the static library dlib.a, and my program needs to use the dynamic library link, so it needs to be recompiled into a dynamic libra...

Python: install the dlib library

table of Contents: Foreword Problem Description Foreword Originally, I have written several methods for installing various libraries, and even installed the anaconda artifact, but I still encountered ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top