91 questions
3
votes
2
answers
161
views
How does Local Binary Pattern return an image?
I'm trying to understand how scikit-image's local_binary_pattern() function works. Let's take the simplest setup: input is a grayscale image, radius = 1, n_points = 4, method = "uniform". ...
-1
votes
1
answer
113
views
cv2.face.LBPHFaceRcognizer.create()___AttributeError: module 'cv2' has no attribute 'face'
I am trying to use
cv2.face.LBPHFaceRecognizer.create()
but this error appears after I press enter =
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\gagan\...
-2
votes
1
answer
93
views
what is the solution of AttributeError: module 'cv2.face' has no attribute 'LBPHFaceRecognizer_create'?
import cv2
from tkinter import *
from PIL import Image, ImageTk
import mysql.connector
class Face_Recognition:
def __init__(self, root):
self.root = root
self.root.geometry("...
0
votes
0
answers
83
views
error: (-215:Assertion failed) samples.cols == var_count && samples.type() == CV_32F in function 'cv::ml::SVMImpl::predict'
I'm trying to test my trained model from svm & lbph for face recognition and here's the error
An error occurred while processing image Test/image1.png: OpenCV(4.8.0) D:\a\opencv-python\opencv-...
1
vote
1
answer
277
views
Unexpected output from skimage local_binary_pattern
I calculate the LBP via this exemplary code:
from skimage import feature
radius_lbp = 1
n_points_lbp = 8
temp = feature.local_binary_pattern(regions_arr_lbp[i,j,:], n_points_lbp, radius_lbp, method='...
0
votes
1
answer
2k
views
what is the role of <cv2.face.LBPHFaceRecognizer_create() >
i know that cv2.face.LBPHFaceRecognizer_create() use it for recognize face in real time
but i want to know what its fonction?,what exist inside this instruction ? how it is work?
i want to know what ...
0
votes
1
answer
354
views
Understanding implementation of Local binary pattern
I am trying to understand the scikit-image implementation of Local Binary Pattern in detail. I understand how LBP works, but I fail to get some points in the implementation.
My main question is: Is ...
1
vote
0
answers
181
views
Is there a way to calculate FAR, FRR, ERR for a face recognition model that uses LBP in python?
I created a simple program that performs face recognition using the Local Binary Pattern (LBP) cv2.face.LBPHFaceRecognizer_create(radius=2, neighbors=10, grid_x=6, grid_y=6).
I wanted to know if there ...
1
vote
0
answers
2k
views
Empty training data was given. You'll need more than one sample to learn a model. in function 'cv::face::LBP
I'm currently working on a face recognition project using Pycharm.
I used the following code for training:
import os
import cv2
from PIL import Image
import numpy as np
import pickle
BASE_DIR = os....
-1
votes
1
answer
206
views
LBPH recognizer in JavaScript
Is there any npm module present to implement Face Recognition in JavaScript? I am trying to mimic the LBPH classification that is mentioned in OpenCV using Python. Any work around to do the same in ...
0
votes
1
answer
2k
views
cv2.face.LBPHFaceRecognizer_create() is not working even though i have installed the library of it in pycharm window. what to do?
I am trying to use '''cv2.face.LBPHFaceRecognizer_create()''' in my program but this error came AttributeError: module 'cv2.cv2' has no attribute 'face' on pycharm. I had install all the following ...
1
vote
1
answer
145
views
I am using LBPH algorithm but I got this error "raise KeyError(key) from err KeyError: 'Id' " for my face recognize and attendance function
Here is the code for my face recognize and attendance:
import datetime
import os
import time
import cv2
import pandas as pd
#-------------------------
def recognize_attendence():
recognizer = cv2....
0
votes
0
answers
462
views
python opencv LBPHFaceRecognizer stuck forever while reading models of huge size
I have created a face recognition model in python using opencv and LBPHFaceRecognizer. The model training and prediction works absolutely fine upto 100 different faces(For each person I capture 50 ...
0
votes
1
answer
316
views
Can't reshape my numpy array for training a KNN model
I try to train a KNN model using a Local Binary Pattern (LBP) descriptor.
My data is a numpy.array of shape (67, 26) elements, but myaray.shape returns (67, ).
I tried to reshape the array like:
...
0
votes
1
answer
550
views
local binary pattern transform
Here is my local binary pattern function:
def lbp(x):
imgUMat = np.float32(x)
gray = cv2.cvtColor(imgUMat, cv2.COLOR_RGB2GRAY)
radius = 2
n_points = 8 * radius
METHOD = 'uniform'
lbp = ...