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

Visual studio and dlib: "cannot open include file: 'zlib.h': No such file or directory"

For my thesis I want to use Dlib's face_landmark_detection, but I keep running into these errors (for both Visual studio 2013 as well as 2015): "cannot open include file: 'zlib.h': No such file or directory" and "'F77_INT': undeclared identifier".…
Sharonneke95
  • 51
  • 2
  • 9
4
votes
2 answers

Error compiling DLIB - Could not find Boost

I have a problem, when I try to compile DLIB, I have the following error: Could not find boost Imported targets are not available for Boost version Image from CMD, when I try to compile DLIB I have this programs versions: Cmake 3.5.1 Boost…
Julio Cabrera
  • 93
  • 1
  • 9
4
votes
2 answers

Trouble installing Dlib for python on Mac OSX 10.10

I'm trying to install dlib-18.16 for python on my computer (running Mac OSX 10.10). I have boost python installed as well as X11, but I've been running into trouble when running ./compile_dlib_python_module.bat as instructed to after downloading the…
user3543300
  • 499
  • 2
  • 9
  • 27
4
votes
1 answer

Object Detection with Dlib Library

I am trying to object detection with using dlib machine learning library. As I've followed instructions written everything seems to be ok however I can't detect my object even on the original image. also even if I test it out on a only black image…
Anar Bayramov
  • 11,158
  • 5
  • 44
  • 64
3
votes
1 answer

why my dlib.get_frontal_face_detector()'s output(rectangles[]) is empty?

I try to use Dlib shape_predictor_68_landmark to mark my photos. I use OpenCV to read and resize photos(all of photos are portrait photographs capture from a video). Then I use those processed photos to run the function…
Sharon
  • 33
  • 3
3
votes
1 answer

"No CMAKE_CXX_COMPILER could be found" errror while deploying flask app on gcloud

I have a flask application that I'm deploying on google cloud run. The app using a library 'face_recognition' that requires Cmake. I'm installing the CMake by running a command in DockerFile but getting an error. I don't know what it mean. Here is…
3
votes
2 answers

Unable to detect facial landmarks using OpenCV2

I have developed a script using dlib and cv2 to draw facial landmarks on images having one face in that image. Here is the scripts; import cv2 import dlib img_path = 'landmarks.png' detector = dlib.get_frontal_face_detector() shape_predictor =…
Muhammad Usman Bashir
  • 1,441
  • 2
  • 14
  • 43
3
votes
0 answers

How to forward declare dlib::frontal_face_detector?

I'm trying to forward declare couple of dlib classes, but it seems what I'm doing is wrong. Currently I have tried this: "myheader.h": namespace dlib { class frontal_face_detector; class shape_predictor; class…
Hossein
  • 24,202
  • 35
  • 119
  • 224
3
votes
1 answer

Dlib not using GPU on Google Colab

How do I force training on GPU? Currently it's only using CPU even when I run dlib.DLIB_USE_CUDA and it says true. It also says 1 when I run print(dlib.cuda.get_num_devices()) Here's the attached image that shows that there's nothing running on GPU…
xsephtion
  • 193
  • 1
  • 13
3
votes
2 answers

Python cropped face image using dlib

I want to adjust the margin of cropped face image. My current code can detect and crop face. However, the cropped image is too tight as shown in the below output image. Input image: Below is my code: import face_recognition import cv2 img =…
Vannaro
  • 83
  • 5
3
votes
5 answers

Dlib ImportError in Windows 10 on line _dlib_pybind11 import *, DLL Load Failed

I am able to successfully install Dlib with CUDA support in Windows 10 but getting an error during "import dlib" in my python code of computer vision project. Environment: Windows 10, Python 3.7.6 (Anaconda), CUDA 11, CuDNN 10.2 Error Message: >>>…
Harsh
  • 81
  • 1
  • 6
3
votes
0 answers

face_recognition and dlib trying to use cuda while no nvidia card is installed

im trying to load the face_recognition on my intel w/ igpu, after isntalling and reinstalig dlib i havent be able to make it run, here is my code import…
mimus
  • 367
  • 4
  • 21
3
votes
4 answers

unable to install dlib on python 3

Im trying to installing dlib on python 3.7 but it always failed I've installed the cmake and add it to my environment, i've upgraded my pip into the latest version, but everytime i run pip install dlib It returns error as Collecting dlib Using…
yuliansen
  • 470
  • 2
  • 14
  • 29
3
votes
1 answer

How to load a .bin model file?

Recently, I have been working on a age and gender recognition problem. Upon searching for already existing solution I came across an Open Vino Toolkit. https://docs.openvinotoolkit.org/ They uses many models for deep learning tasks and one of them…
Osama Ehsan
  • 33
  • 2
  • 4
3
votes
2 answers

Usage of dlib library in Visual Studio 2010

I would like to ask for help in using dlib for my little thesis project. Specifically, I need to use the BOBYQA optimisation routine. I am writing the project in MS Visual Studio 2010 Express in C language. I have zero experience in using libraries…
behcio
  • 31
  • 2