joevenner / facerecognition-gui-app Goto Github PK
View Code? Open in Web Editor NEWA very Simple GUI APP for Face Detection and Recognition
A very Simple GUI APP for Face Detection and Recognition
Whenever I run the GUI App i get these kind of errrors can anyone help me to solve that errors ASAP @joeVenner
C:\Users\rishi\Downloads\FaceRecognition-GUI-APP-master\FaceRecognition-GUI-APP-master>python app-gui.py
Traceback (most recent call last):
File "C:\Users\rishi\Downloads\FaceRecognition-GUI-APP-master\FaceRecognition-GUI-APP-master\app-gui.py", line 2, in
from create_classifier import train_classifer
File "C:\Users\rishi\Downloads\FaceRecognition-GUI-APP-master\FaceRecognition-GUI-APP-master\create_classifier.py", line 30, in
train_classifier('tho1')
File "C:\Users\rishi\Downloads\FaceRecognition-GUI-APP-master\FaceRecognition-GUI-APP-master\create_classifier.py", line 25, in train_classifier
clf = cv2.face.LBPHFaceRecognizer_create()
^^^^^^^^
AttributeError: module 'cv2' has no attribute 'face'
I did some changes with the code too, but not the functional part but the training of datasets output the error as:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\{name}\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__
return self.func(*args)
File "d:\{path}\system.py", line 198, in trainmodel
train_classifer(self.controller.active_name)
File "d:\{path}\create_classifier.py", line 11, in train_classifer
path = os.path.abspath.join(os.getcwd() + "/data/" + name + "/")
AttributeError: 'function' object has no attribute 'join'
if cv2.waitKey(1)==13:
break
video_cap.release()
cv2.destroyAllWindows
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.8/tkinter/__init__.py", line 1892, in __call__
return self.func(*args)
File "app-gui.py", line 209, in openwebcam
main_app(self.controller.active_name)
File "/home/raghav/Documents/FaceRecognition-GUI-APP/Detector.py", line 10, in main_app
recognizer.read(f"./data/classifiers/{name}_classifier.xml")
cv2.error: OpenCV(4.2.0) /io/opencv_contrib/modules/face/src/facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'read'
thank the author for the open source code. I'd like to ask about the code for detecting facial expressions
clf.train(faces, ids)
cv2.error: OpenCV(4.2.0) /io/opencv_contrib/modules/face/src/lbph_faces.cpp:362: error: (-210:Unsupported format or combination of formats) Empty training data was given. You'll need more than one sample to learn a model. in function 'train'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.