🖍️
Opencv, Computer Vision (pyimagesearch)
  • Opencv, Computer Vision_practice
  • Real-time eye blink detection using facial landmarks
    • what is dlib, imutils? (+ how to install)
    • Real_time facial-landmarks-dlib-opencv-python
    • real-time eye blink detection using facial landmarks (paper)
    • Additional
  • Histogram of Oriented Gradients and Object Detection
    • Untitled
  • Ball Tracking with OpenCV
    • Code Analysis
    • Additional
  • Using mediapipe to detect pose
  • Pose detect with webcam
Powered by GitBook
On this page
  1. Real-time eye blink detection using facial landmarks

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

introduce methods that we use for detected facial-landmarks

PreviousReal-time eye blink detection using facial landmarksNextReal_time facial-landmarks-dlib-opencv-python

Last updated 4 years ago

Was this helpful?

CtrlK
  • dlib
  • The Library
  • Using methods
  • Download dlib(for window)
  • Imutils
  • Download imutils(for window)

Was this helpful?

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.

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

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