To get the Id we split the image path and took the first from the last part (which is -1 in python) and that is the name of the imagefile.
Numbers Rock Number Recognition Trainer Code Appears ThisIve openCV 3.2 ( openCV contrib) installed on my PC with python 2.7 and when I compile the code appears this error: recognizer cv2.createEigenFaceRecognizer() AttributeError: module object has no attribute face.How can i create a dataset with this condition Thanks in advance.And you had changed the code in a video but you not mentioned in website.Did you face any problem in it.
AttributeError: module object has no attribute createLBPHFaceRecognizer. Numbers Rock Number Recognition Trainer How To Install ItI have a problem with the Face module of opencv I can not find how to install it, I saw some videos and they use cmake and visual studio, but right now Im using Liclipse. Also I tried to install opencv 2.3 and 2.4 but none of them had the module. I have one question I tried this out even when unknown faces are presented to webcam it says the same name for which Id is defined and trained. Can LPBH be used to distinguish between 10-20 different people. I have about 40 samples per id so Im not sure why its not working. Could you send me the files you used in your videos please email protected it will really help me alot thank you. Im totally new at this sector thats why I have to face a lot of problem. But when I try your Trainer I get this error message, Please help. Can you please check if you have the following line inside the for loop at the beginning. I give below your code I am trying, please correct me where I am wrong. Your Code: import os import cv2 import numpy as np from PIL import Image. Traceback (most recent call last): File C:UsersMainUserDesktopABCFacetrainer02A.py, line 27, in recognizer.train(faces,np.array(Ids)) error: C:build24winpack-bindings-win32-vc14-staticopencvmodulescontribsrcfacerec.cpp:917: error: (-210) Empty training data was given.
0 Comments
Leave a Reply. |