> For the complete documentation index, see [llms.txt](https://dkstjswjd83.gitbook.io/sunjungan/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dkstjswjd83.gitbook.io/sunjungan/facial-landmarks-with-dlib-opencv-and-python/what-is-dlib.md).

# what is dlib, imutils? (+ how to install)

## **dlib**

**reference** : (<http://dlib.net/>)

Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems.

### The Library

* Algorithms
* API Wrappers
* Bayesian Nets
* Compression
* Containers
* Graph Tools
* Image Processing
* Linear Algebra
* Machine Learning
* Metaprogramming
* Miscellaneous
* Networking
* Optimization
* Parsing

### Using methods

**dlib.get\_frontal\_face\_detector()** - Returns the default face detector

**shape\_predictor() -** This object is a tool that takes in an image region containing some object and outputs a set of point locations that define the pose of the object. The classic example of this is human face pose prediction, where you take an image of a human face as input and are expected to identify the locations of important facial landmarks such as the corners of the mouth and eyes, tip of the nose, and so forth.&#x20;

*requires*

* image is a numpy ndarray containing either an 8bit grayscale or RGB image.
* box is the bounding box to begin the shape prediction inside.

*ensures*

* This function runs the shape predictor on the input image and returns a single full\_object\_detection.

### Download dlib(for window)

* CMake download , pip install CMake
*

## Imutils

&#x20;A series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and ***both*** Python 2.7 and Python 3.

reference : <https://github.com/jrosebr1/imutils>

> we use imutils to use webcam video, face\_utils ...etc

### Download imutils(for window)

* go to <https://github.com/jrosebr1/imutils>
* git clone code in same repository with your activities source code repos
* pip install imutils
