Skip to content

Error in train images #17

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

Open
appucharan21 opened this issue Feb 12, 2023 · 3 comments
Open

Error in train images #17

appucharan21 opened this issue Feb 12, 2023 · 3 comments

Comments

@appucharan21
Copy link

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\tkinter_init_.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "F:\Project\Attendance-Management-system-using-face-recognition-master\attendance.py", line 268, in train_image
trainImage.TrainImage(
File "F:\Project\Attendance-Management-system-using-face-recognition-master\trainImage.py", line 12, in TrainImage
recognizer = cv2.face.LBPHFaceRecognizer_create()
^^^^^^^^
Attribute Error: module 'cv2' has no attribute 'face'

pls help me to solve this problem

@Patelrahul4884
Copy link
Owner

Hi @appucharan21
can you try following command
pip install opencv-contrib-python

@Arockiamari
Copy link

It's working thank you so much😊

@Santosh56kumar
Copy link

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\tkinter_init_.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "c:\Users\santosh2\Face_detaction\attendance.py", line 239, in take_image
takeImage.TakeImage(
File "c:\Users\santosh2\Face_detaction\takeImage.py", line 30, in TakeImage
os.mkdir(path)
PermissionError: [WinError 5] Access is denied: 'C:\Users\santosh2\Face_detaction\TrainingImage\456_santoh'

please help me to solve this problem

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

4 participants