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
58
votes
19 answers

dlib installation on Windows 10

I want to use dlib with python for image recognition. I have the python app running great with OpenCV on Windows 10, but when I want to install dlib from the cmd it gives me this following error : error: Cannot find cmake, ensure it is installed and…
Drill
  • 589
  • 1
  • 4
  • 5
26
votes
1 answer

dlib vs opencv which one to use when

I am currently learning OpenCV API with Python and its all good. I am making decent progress. Part of it comes from Python syntax's simplicity as against using it with C++ which I haven't attempted yet. I have come to realize that I have to get…
ultrasounder
  • 585
  • 1
  • 7
  • 16
24
votes
4 answers

RuntimeError: CMake must be installed to build the following extensions: dlib

I have already installed CMake by pip install cmake and tried to install face_recognition but it still gives me a RuntimeError. I'm using 'Python 3.7.3, x32' I also tried to install the dlib by pip install dlib since it is one of the reasons why I…
Jomar Gallano
  • 261
  • 1
  • 2
  • 4
20
votes
4 answers

how to build DLIB for iOS

I'm trying to build DLIB for an iOS project. Running the cmake results in a libdlib.a and a load of .o files. When I add the library to an Xcode project I get warning that the library hasn't been built for arm64. My question is two-part: How can I…
Rob Sanders
  • 5,197
  • 3
  • 31
  • 58
19
votes
3 answers

Relocation R_X86_64_32S against '_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC

I'm trying to install the dlib Python library. On some systems (macOS, stock Ubuntu 14.04) pip install dlib works fine, but in the Ubuntu 14.x that's part of our CircleCI environment it fails with the following error. Linking CXX shared library…
domkck
  • 1,146
  • 1
  • 9
  • 19
17
votes
3 answers

Dlib installation error?

Visual studio 2015 is not installed I have installed all the requirements before building dlib in python: Cmake python 3.6 and other bindings. while installing dlib using pip: pip install dlib Got an error: Collecting dlib Using cached…
Vikas TIwari
  • 171
  • 1
  • 1
  • 3
15
votes
6 answers

building wheel for dlib (setup.py) loop

trying to install dlib and face_recognition from Ubuntu taking reference from https://www.learnopencv.com/install-dlib-on-ubuntu/ but after following commands: i am stuck at: Building wheels for dlib, face-recognition-models Building wheel for…
rahul
  • 161
  • 1
  • 1
  • 6
11
votes
4 answers

Drawing fancy rectangle around face

I am using the following code to detect face and draw rectangle on top of the face. while True: # get video frame ret, img = cap.read() input_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img_h, img_w, _ = np.shape(input_img) …
user6038900
11
votes
1 answer

Face clustering using Chinese Whispers algorithm

I am trying to use Chinese whispers algorithm for face clustering. I have used dlib and python for extracting features for each face and mapped into 128 D vector as described by Davisking at…
Rajib Nath
  • 111
  • 1
  • 4
10
votes
4 answers

Convert OpenCV's Rect to dlib's rectangle?

I use OpenCV's face detector with C++ for dlib's face alignment instead of dlib's detector because of slow speed. To use dlib's face alignment, I have to pass the detection rectangle to the face alignment function. However, I cannot do that even…
univ_student
  • 101
  • 1
  • 1
  • 3
9
votes
6 answers

How to install dlib for python on mac?

I'm getting an error when trying to install dlib on Python 3.7 on macOS with pip3 install dlib I have installed CMake, so that is not the problem. I'm getting these error messages: Failed building wheel for dlib and Command…
owcs
  • 119
  • 1
  • 2
  • 11
9
votes
1 answer

Dlib (GPU supported) is not working properly, not sure?

My System Configuration: Windows 10, Nvidia 940mx 2GB GDDR5 GPU, 8GB RAM, i5 8th generation. Software installed: CUDA toolkit 9.0 cuDNN 7.1.4 I have successfully installed dlib with GPU support after installing above requirements using commands…
tusharK3411
  • 85
  • 1
  • 3
9
votes
2 answers

Create a shared library for dlib

Following the instructions to compile dlib using cmake (here) generates a static dlib library: cd examples mkdir build cd build cmake .. cmake --build . --config Release How can I instruct cmake to generate a shared (.so) library instead?
ManiAm
  • 1,759
  • 5
  • 24
  • 43
9
votes
10 answers

How to get Python import working with dlib (using cmake and osx)

Sorry if this is basic but I'm trying to install dlib to use with python as mentioned in (http://blog.dlib.net/2014/04/dlib-187-released-make-your-own-object.html) "Make your own object detector in Python!". I downloaded the install files, unzipped,…
Tim 333
  • 942
  • 1
  • 8
  • 9
8
votes
1 answer

Swift package dependency with unsafe build flags: target integrity error

TL;DR I am getting the following error for a local Swift package dependency when attempting to use it within an iOS project in Xcode: The package product 'DlibWrapper' cannot be used as a dependency of this target because it uses unsafe build…
Boris
  • 151
  • 1
  • 7
1
2 3
72 73