ashishdubey10 / Face-Recognition-Based-Attendance-System

190 stars 166 forks source link

yml file is not getting created #24

Open rachiitgupta opened 4 years ago

rachiitgupta commented 4 years ago

Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\tkinter__init.py", line 1705, in call__ return self.func(*args) File "train.py", line 194, in TrackImages recognizer.read("Trainner.yml") cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'

I can understand that yml file is not getting created as there is not TrainingImageLabel folder

sayendutta commented 4 years ago

same error for me too

uday360 commented 4 years ago

change this (cam = cv2.VideoCapture(0) ) to cam = cv2.VideoCapture(0,cv2.CAP_DSHOW) in train.py

abdullah0307 commented 4 years ago

it didnot work

Sangamg145 commented 4 years ago

create TrainingImageLabel folder and make a trainner.yml text file on it

srimanth12 commented 1 year ago

am unable to load yml file