opencv-face-recognition-python
opencv-face-recognition-python copied to clipboard
Face Recognition using OpenCV and Python.
I am getting this error while training my classifier - face_recog.train(faces,np.array(faceID)) The full code is as follow: [import cv2 import os import numpy as np %config IPCompleter.greedy=True def facedetection(test_img): gray_img...
Hi Rameez, I am having a problem in face recognition. I used **_LBPHFaceRecognizer()_** in training and pre trained **_HaarCascadeClassifier_** in face recognition. I used two samples faces and 30 images...
Hi, I have one question about the training. Shall I use one image or serveral images to train for one people ?
face_recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face' >>>
Why this happened?: SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set
Dear sir. When I practice face detection by using the code as follows and an error happened as mentioned in Title. gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) face_cascade = cv2.CascadeClassifier('opencv-files/lbpcascade_frontalface.xml') faces =...
OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-i1s8y2i1\opencv\modules\core\src\lda.cpp:1087: error: (-5:Bad argument) At least two classes are needed to perform a LDA. Reason: Only one class was given! in function 'cv::LDA::lda'
Preparing data... Data prepared Total faces: 23 Total labels: 23 Predicting images... Traceback (most recent call last): File "/Users/avadhesh/Downloads/opencv-face-recognition-python-master/OpenCV-Face-Recognition-Python.py", line 329, in predicted_img1 = predict(test_img1) File "/Users/avadhesh/Downloads/opencv-face-recognition-python-master/OpenCV-Face-Recognition-Python.py", line 309, in...
Hello! Ive changed all dir paths to local ones because I want to be able to run the script only by terminal. However when I run it I get the...
OpenCV (3.4.1) Error: Assertion Failed 0 && ssize.height > 0> in cv::resize, file resize.cpp, line 4044 OpenCV-Face-Recognition-Python.py, Line 223, in faces, labels = prepare_training_data("training-data") File "OpenCV-Face-Recognition-Python.py, Line 178, in prepare_training_data...