Questions tagged [dlib]

Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. (Source http://dlib.net/)

Major Features

  • Documentation
  • High Quality Portable Code
  • Threading
  • Networking
  • Graphical User Interfaces
  • Numerical Algorithms
  • Machine Learning Algorithms
  • Graphical Model Inference Algorithms
  • Image Processing
  • Data Compression and Integrity Algorithms
  • Testing
  • General Utilities

Source http://dlib.net/

1094 questions
4
votes
1 answer

Why I get "dlib isn't going to use CUDA" when I compile dlib python interface

I have compiled dlib 19.10 using cmake 3.11.0 on Ubuntu 16.04 with CUDA 9.1 enabled. It went well and didn't get any problems! Here the output of running cmake .. -- The C compiler identification is GNU 5.4.1 -- The CXX compiler identification is…
Peshmerge
  • 1,024
  • 1
  • 14
  • 27
4
votes
2 answers

Cropping face using dlib facial landmarks

I am trying to crop a face using the facial landmarks identified by dlib. The right eyebrow is causing problems - the crop goes flat across rather than follow the eyebrow arc. What am I doing wrong here? from imutils import face_utils import…
Squiggles
  • 43
  • 1
  • 3
4
votes
3 answers

compute_face_descriptor() alternative in C++

In python API of dlib there is a function called compute_face_descriptor() but I couldn't find any alternative to it in C++ API. How can I create an alternative to it in C++?
mbnoimi
  • 490
  • 4
  • 21
4
votes
1 answer

reproducing dlib frontal_face_detector() training

I am trying to reproduce the training process of dlib's frontal_face_detector(). I am using the very same dataset (from http://dlib.net/files/data/dlib_face_detector_training_data.tar.gz) as dlib say they used, by union of frontal and profile faces…
Eldar Ron
  • 71
  • 4
4
votes
0 answers

Installing dlib fails with error "cmake configuration failed!"

When I try to install dlib using pip install dlib it fails with this error: CMake Warning at /usr/local/lib/python2.7/site-packages/\ cmake/data/share/cmake-3.8/Modules/FindBoost.cmake:765 (message): error: cmake configuration…
the fishman
  • 49
  • 1
  • 5
4
votes
2 answers

what color space will produce most features to train a more accurate CNN on?

Most of the times I see people using the RGB channel for the training set. While it is good for facial detection but I have not found it as effective as I thought it would be! So, should I try converting the image into a different (possibly a…
PanNik
  • 1,564
  • 1
  • 8
  • 11
4
votes
0 answers

How to speed up deserialize function in dlib

I'm using a c++ version of dlib to extract positions of the facial landmarks in an image. I would like to reduce the execution time. Now it takes around 2.5 seconds to run a complied file and detect landmark on a single image. After an analysis, I…
ivan.koval
  • 119
  • 2
  • 8
4
votes
4 answers

OpenCV / Python : multi-threading for live facial recognition

I'm using OpenCv and Dlib to execute facial recognition w/ landmarks, live from the webcam stream. The language is Python. It works fine on my macbook laptop, but I need it to run from a desktop computer 24/7. The computer is a PC Intel® Core™2 Quad…
Simon
  • 140
  • 1
  • 1
  • 12
4
votes
4 answers

Dlib installation python 2.7

Former marine grunt here! New to python and coding. Trying to install DLIB for python 2.7. I run the command pip install dlib and keep getting this error message: Collecting dlib Using cached dlib-19.1.0.tar.gz Building wheels for collected…
ASN
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

How to use dlib in Xcode C++ console application

I have installed dlib using Homebrew. brew install dlib How can I create a C++ project that uses dlib in Xcode ? I have tried some build settings. However, it does not work. Add /usr/local/Cellar/dlib/19.1_2/include to Header Search Paths Add…
fivetech
  • 361
  • 2
  • 13
4
votes
1 answer

Dlib frontal face detection for small faces

I am using Dlib's frontal face detector to detect faces in an images; however, it cannot detect faces smaller than 80 by 80 pixels. Dlib's example in face_detection_ex.cpp upsamples the input image using pyramid_up() to increase the face sizes.…
mohaghighat
  • 1,293
  • 17
  • 29
4
votes
1 answer

Dog face detection with dlib - need advice on improving recal

I'm trying to train a dog face detector with dlib's hog pyramid detector. I used Columbia dogs dataset: ftp://ftp.umiacs.umd.edu/pub/kanazawa/CU_Dogs.zip At first I would get a recall of 0%, but by increasing C value I managed to increase it to 62%…
grisevg
  • 250
  • 3
  • 18
4
votes
4 answers

What's wrong with this webcam face detection?

Dlib has a really handy, fast and efficient object detection routine, and I wanted to make a cool face tracking example similar to the example here. OpenCV, which is widely supported, has VideoCapture module that is fairly quick (a fifth of a second…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
4
votes
1 answer

Convert RGB Image to Grayscale Image in DLIB

How can I convert a dlib::array2d to gray Image? The gray Image should be array2d. I never see a good dlib documentation on that issue.
siffkroete
  • 51
  • 2
  • 6
4
votes
2 answers

Is it possible to load/read shape_predictor_68_face_landmarks.dat at compile time?

I am trying to build a C++ application in Visual Studio using DLIB's face_landmark_detection_ex.cpp. The build application run from command promt and trained model and image file is passed as arguments. face_landmark_detection_ex.exe…
user3751794