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
3
votes
2 answers

How can I install Dlib in a Heroku python web app using requirements.txt?

I built a Python Flask web API that involves machine learning and I've had a lot of frustration deploying it on Heroku. The problem is, my app has a dependency on Dlib ( a library) and I can't seem to find a way to install in my Heroku server. I'm…
Nuelsian
  • 501
  • 7
  • 18
3
votes
0 answers

IOS - Speedup converting CMSampleBufferRef to dlib image

I used the below code to convert iOS CMSampleBufferRef to dlib::array2d: - (void)inputImageFromSampleBuffer:(CMSampleBufferRef)sampleBuffer { CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer); …
hoangdado
  • 436
  • 4
  • 13
3
votes
1 answer

TypeError: 'rectangle' object is not iterable after face alignment usinf Dlib FaceUtils

I am trying to align faces before face recognition using Dlibs imutils.face_utils by converting the OpenCV rect to Dlib's rect. But I keep gettng error rectangle is not iterable. Here is the code detector =…
Manu BN
  • 53
  • 2
  • 6
3
votes
0 answers

dlib shape_predictor training after neural network

I am trying to reproduce the examples dnn_mmod_train_find_cars_ex.cpp and dnn_mmod_find_cars_ex.cpp described originally in the author's blog, but got stuck with training a shape predictor to predict object boxes. This step is skipped in the…
Stanpol
  • 966
  • 1
  • 10
  • 20
3
votes
1 answer

import dlib ImportError Symbol not found: _PyClass_Type

When I run import dlib in Python 3.6 I get the following error: Traceback (most recent call last): File "demo.py", line 3, in import dlib File "/usr/local/lib/python3.6/site-packages/dlib/__init__.py", line 1, in from .dlib import…
Ivona Tau
  • 1,032
  • 1
  • 10
  • 20
3
votes
0 answers

how to compile Dlib on mac?

I am trying to build dlib19.4 I run the following commands on terminal cd examples mkdir build cd build cmake .. cmake --build . --config Release but I get these errors on below after a…
Leonvdream
  • 31
  • 3
3
votes
1 answer

Getting probability of detected face in dlib

I am using the dlib library(with python2) for face detection in static images, if the probability/quality of the detected face is less, I would like to discard those faces. Thus I would like a function which would give the probability of the…
3
votes
1 answer

Cannot install dlib on mac os X

I am following the instructions here: http://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/ line by line, except for the line where python3 is installed. I made a virtual environment and inside the virtualenv, did these four lines: $ pip…
xiaolingxiao
  • 4,793
  • 5
  • 41
  • 88
3
votes
1 answer

DLIB shape_predictor_68_face_landmarks.dat documentation?

I'm wondering if there is any documentation about the shape_predictor_68_face_landmarks.datNOT in terms about "how to compile" or "how to use" more like how it is set up?, what are the training data (what kind of images, how many, ...)?, who did it?…
flor1an
  • 960
  • 3
  • 15
  • 33
3
votes
1 answer

dlib matrix set element

What is the equivalent of std::vector::push_back() , in matrix I tried M(i) = xx,xx , but the program crash and i get "Segmentation fault (core dumped)"
TahaOUARRAK
  • 150
  • 3
  • 9
3
votes
1 answer

Why would Dlib compile 8000+ functions?

I am using Dlib and OpenCV with C++ Without CMakeon Visual Studio 2015 and I have tried the face_landmark_detection_ex example to detect faces by using the laptop camera and it works fine. but I wonder why Dlib is saying: 164 of 8616 functions (…
Abdelrahman Wahdan
  • 2,056
  • 4
  • 36
  • 43
3
votes
1 answer

Error while installing dlib

I followed this tutorial to install dlib but when I run pip install dlib I get Collecting dlib Using cached dlib-19.4.0.tar.gz Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from…
Brucie Alpha
  • 1,135
  • 2
  • 12
  • 31
3
votes
4 answers

Failing to install Boost in Python - pyconfig.h not found

I'm following along this tutorial on how to make simple face recognition using Python. The tutorial is dependent on the dlib library which I'm trying to install. However, the dlib library has a dependency on the Boost library and yields this…
user3642173
  • 1,225
  • 5
  • 19
  • 42
3
votes
0 answers

How do I resolve AttributeError: module 'dlib' has no attribute 'image_window'

I have installed dlib and X11 library as suggested in previous posts and I'm using Anaconda with Python 3.5. I also can't find the image_window inside dlib. import sys import dlib from skimage import io # Take the image file name from the command…
3
votes
1 answer

Installing dlib with python bindings

I'm trying to install and compile dlib with the python bindings. I tried cloning from github and running the commands: mkdir build; cd build; cmake .. ; cmake --build . python setup.py install The first command works just fine but the second one…