dlib

Write a text in dlib image

末鹿安然 提交于 2020-01-06 04:22:28
问题 i'm using dlib for face detection and i would like to write a text in the image. i've tried this win.add_overlay(dets, rgb_pixel(255,0,0),"test" ); but it's not working Can you please help me. 回答1: According to the dlib documentation, the add_overlay method takes an overlay as a parameter. Since you want to display rectangles you have to create an overlay_rect . You should try the following code : win.add_overlay(dlib::image_window::overlay_rect(dets, rgb_pixel(255,0,0),"test" )); dlib

Normalization of facial landmark points in image processing

梦想与她 提交于 2020-01-05 03:49:20
问题 I am working on a project related to recognising emotions(sad,happy,anger etc.) from a face. I am using facial landmark detector from dlib library which detect 68 interest points. For the same emotion, these interest points can vary depending on the orientation of the face, size of eyes, lips etc on different faces. I would like to normalise these interest points that makes them invariant to orientation of the face, size of eyes, lips etc. What are the techniques can I use to do so. I would

How do I detect where dlib's correlation_tracker lost the target image?

一个人想着一个人 提交于 2020-01-04 02:19:07
问题 I added a correlation_tracker to a multithreaded face tracking script, and oddly enough, it generally does well tracking a face on the screen, but when you put your hand over the camera it keeps saying the same coordinates and highlighting the same area. Is there a good way to detect when the tracked object actually leaves? Or does this require processing the slower detect-all-the-faces detector object once in awhile? from __future__ import division import sys from time import time, sleep

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

时光怂恿深爱的人放手 提交于 2020-01-03 08:53:13
问题 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 below: $ git clone https://github.com/davisking/dlib.git $ python setup.py install --clean As stated by dlib's creater @Davis King, on my jupyter notebook I executed : import dlib dlib.DLIB_USE_CUDA [Out 17] :True Which verifies that my 'dlib' is using

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

不羁的心 提交于 2020-01-03 08:52:50
问题 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 below: $ git clone https://github.com/davisking/dlib.git $ python setup.py install --clean As stated by dlib's creater @Davis King, on my jupyter notebook I executed : import dlib dlib.DLIB_USE_CUDA [Out 17] :True Which verifies that my 'dlib' is using

Is there a way to smooth out face landmarks from face_recognition? Maybe via PIL?

て烟熏妆下的殇ゞ 提交于 2020-01-02 10:18:19
问题 I am trying to make an eye-replacement program that can fill eyes with an image. For finding the eyes, I am using face_recognition by Ageitgey. However, the eye detection comes out very jagged. (I'm not talking about anti-aliasing, btw. I'll use super-sampling to solve that later) Here's my tiny bit of code: from PIL import Image, ImageDraw import face_recognition image = face_recognition.load_image_file("media/test_input_image.jpg") face_landmark_list = face_recognition.face_landmarks(image)

improper training result dlib

旧巷老猫 提交于 2020-01-01 19:18:45
问题 i'm trying to train train_shape_predictor_ex for detecting following image in indian bill. i'm using 34 different images both clicked and scanned. model is trained succesfully with taining error = 0 testing error = 0.35468-6 i have tried changing oversampling parameter from 300 to 12000 but still same results. what am i doing wrong? drawing code - from image loading to drawing step: image_window win; frontal_face_detector detector = get_frontal_face_detector(); shape_predictor pose_model;

Is there a dlib library port for java?

爷,独闯天下 提交于 2020-01-01 11:39:48
问题 I'm actually using OpenCV for face detection, but after watching this video : https://www.youtube.com/watch?v=LsK0hzcEyHI , I've noticed that dlib is much more accurate, and even in my tests, gives a lot of fale positives (but doesn't miss any face), does anyone know how to use dlib within a Java web application (not android) ? I've already found a port to Android, but I don't thinkk it's possible to use it with in a java web application. Thank you 回答1: I have used dlib myself, and yes it is

Is there a dlib library port for java?

大憨熊 提交于 2020-01-01 11:39:44
问题 I'm actually using OpenCV for face detection, but after watching this video : https://www.youtube.com/watch?v=LsK0hzcEyHI , I've noticed that dlib is much more accurate, and even in my tests, gives a lot of fale positives (but doesn't miss any face), does anyone know how to use dlib within a Java web application (not android) ? I've already found a port to Android, but I don't thinkk it's possible to use it with in a java web application. Thank you 回答1: I have used dlib myself, and yes it is

Dog face detection with dlib - need advice on improving recal

被刻印的时光 ゝ 提交于 2019-12-31 00:59:45
问题 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% on training set and 53% on testing set. After certain point increasing C value stopped helping (1000+) and would only slow down training. Precision is really high though, if it actually manages to find dog's face it's always correct, haven't seen