Dlib frontal face detection for small faces

I use the frontal Dlib face detector to detect faces in images; however, it cannot detect faces smaller than 80 by 80 pixels.

The Dlib example in face_detection_ex.cpp allows you to enlarge the input image with to increase the size of the face. However, it makes the algorithm much slower because it will have to search in a larger image. pyramid_up()

I wonder if anyone knows a solution to this problem.

+4
source share
1 answer

The long Dlib detector is trained to process 80x80 faces. If you want to detect smaller faces, you have two ways:

  • , . pyramid_up cv:: resize. 2x, 1.5x -
  • , - dlib .

- . , , 20x20 13 MP - . , :

  • , , - .
  • FAQ. , MinGW/GCC 20% , MSVC, Android/ARM SIMD.
  • : ( ), .
+5

Source: https://habr.com/ru/post/1654175/


All Articles