Questions tagged [lbph-algorithm]

Local Binary Patterns Histogram Algorithm. A face detection and recognition algorithm.

In LBPH images are analyzed independently and each image is characterized in the dataset locally. When a new unknown image is provided, the same analysis is performed on it and the results are compared to each of the images in the dataset.

88 questions
100
votes
4 answers

ConvergenceWarning: Liblinear failed to converge, increase the number of iterations

Running the code of linear binary pattern for Adrian. This program runs but gives the following warning: C:\Python27\lib\site-packages\sklearn\svm\base.py:922: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations. …
Fahad Mairaj
  • 1,021
  • 2
  • 7
  • 7
12
votes
1 answer

How to calculate Local Binary Pattern Histograms with OpenCV?

I have already seen that OpenCV provides a classifier based on LBP histograms: But I want to have access to the LBP histogram itself. For instance: histogram = calculate_LBP_Histogram( image ) Is there any function that performs this in OpenCV?
EijiAdachi
  • 441
  • 1
  • 3
  • 15
8
votes
2 answers

Why does OpenCV recognize the object only in training images?

In order to make my iOS app recognize 1€, 2€ and 0.50€ coins I have been trying to use opencv_createsamples and opencv_traincascade to create my own classifier.xml. So, I cropped 60 images of 2€ coins from a short video like the following: Then, I…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
7
votes
1 answer

Understanding OpenCV LBP implementation

I need some help on LBP based face detection and that is why I am writing this. I have the following questions related to face detection implemented on OpenCV: In lbpCascade_frontal_face.xml (this is from opencv): what is internalNodes,…
Luniam
  • 463
  • 7
  • 21
5
votes
1 answer

Compare the LBP in python

I generated a texture image like this I have to compare two textures. I have used histogram comparison method. image_file = 'output_ori.png' img_bgr = cv2.imread(image_file) height, width, channel = img_bgr.shape hist_lbp = cv2.calcHist([img_bgr],…
5
votes
4 answers

AttributeError: 'module' object has no attribute 'face' error even after installing opencv-contrib

I was trying to implement a face recognition using Python, OpenCv2 and LBPH (Which is downloaded from HERE) My python version is 2.7.14 PIP version is 9.0.3 and OpenCV version is 3.4.0 and my code is import cv2 import numpy as np import NameFind #…
rakcode
  • 2,256
  • 4
  • 19
  • 44
5
votes
2 answers

Why does the local_binary_pattern function in scikit-image provide same value for different patterns?

I am using the local_binary_pattern function in the scikit-image package. I would like to compute the rotation invariant uniform LBP of 8 neighbors within radius 1. Here is my Python code: import numpy as np from skimage.feature import…
Peter
  • 243
  • 1
  • 2
  • 8
5
votes
2 answers

Matlab code for Local binary pattern

I am struggling to understand Matlab implementation of LBP algorithm found here. I am trying to find how it calculates the binaries for every pixel? It just calculates where the neighbor pixel are greater than the actual center pixel size. I want to…
4
votes
1 answer

Calculate and show LBP histogram in openCV

I want to create a real-time emotion recognition program using LBP and SVM. After face-detection process, I converted my captured image into 32x32 pixels grayscale image. I am struggled in creating and showing histogram for my LBP (I use simple,…
4
votes
1 answer

How to scale a kinect depth image for applying LBP on it in matlab?

I have CurtinFaces Dataset that captured by Kinect. I want to apply LBP and 3DLBP on a depth image(same as this work). LBP and 3DLBP work on 8 bits depth images (see Fig. 2 in the paper) but Kinect depth images are stored in double format (16 bits).…
Nasi
  • 81
  • 1
  • 9
4
votes
1 answer

Loading model state into FaceRecognizer from memory or string in python opencv

Is it possible to load the model for a FaceRecognizer from memory or a string rather than from a saved file. The API docs do not show a 'FromString or Buffer' version. The current code loads from file: model =…
IUnknown
  • 2,596
  • 4
  • 35
  • 52
3
votes
1 answer

Is there a faster way to get the Local Binary Pattern of the MNIST dataset?

I need to know if there's a faster way to get the LBP and the resulting histograms of the MNIST dataset. This will be used for handwritten text recognition, through a model that I haven't decided yet.. I've loaded the MNIST dataset and split it to…
3
votes
0 answers

Choosing LBP sampling points and radius for good facial features

I am trying to do some feature engineering on facial images using Python and OpenCV. The idea is to use those features for unsupervised learning to group images of the same person together. The pipeline is as follows: Choose one of several OpenCV…
3
votes
1 answer

matrix.cpp:310: error: (-215) s >= 0 in function cv::setSize

I very new to python. Im using face_recognizer = cv2.face.LBPHFaceRecognizer_create() and defined my predict function as #this function recognizes the person in image passed #and draws a rectangle around detected face with name of the #subject def…
SRK
  • 53
  • 5
3
votes
1 answer

What is the radius parameter for in OpenCV's createLBPHFaceRecognizer?

The documentation cuts off mid-sentence on both the 2.4 and 3.0 version sites... (link: http://docs.opencv.org/3.0-last-rst/modules/face/doc/facerec_api.html#createlbphfacerecognizer) radius – The radius used for building the Circular Local Binary …
Ethan
  • 1,206
  • 3
  • 21
  • 39
1
2 3 4 5 6