Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yml file is not getting created #24

Open
rachiitgupta opened this issue Feb 26, 2020 · 5 comments
Open

yml file is not getting created #24

rachiitgupta opened this issue Feb 26, 2020 · 5 comments

Comments

@rachiitgupta
Copy link

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
Copy link

same error for me too

@uday360
Copy link

uday360 commented Mar 4, 2020

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

@abdullah0307
Copy link

it didnot work

@Sangamg145
Copy link

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

@srimanth12
Copy link

am unable to load yml file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants