You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 101, in
mainMenu()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 41, in mainMenu
CaptureFaces()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 79, in CaptureFaces
mainMenu()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 44, in mainMenu
Trainimages()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 86, in Trainimages
Train_Image.TrainImages()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 40, in TrainImages
faces, Id = getImagesAndLabels("TrainingImage")
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 14, in getImagesAndLabels
imagePaths = [os.path.join(path, f) for f in os.listdir(path)]
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'TrainingImage'
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last): File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 101, in mainMenu() File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 41, in mainMenu CaptureFaces() File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 79, in CaptureFaces mainMenu() File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 44, in mainMenu Trainimages() File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 86, in Trainimages Train_Image.TrainImages() File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 40, in TrainImages faces, Id = getImagesAndLabels("TrainingImage") File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 14, in getImagesAndLabels imagePaths = [os.path.join(path, f) for f in os.listdir(path)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'TrainingImage'
@PhantomCoder2 As a solution you can do following things in a row :
Install opencv contrib package and if yes and upgrade it to the latest version
Use this and edit your code
recognizer = cv2.face.LBPHFaceRecognizer_create()
Also make sure you will rename the folder name as TrainingImageLabel to TrainingImage completely
Also make sure when you start to train the images you will need to delete the previous yml file from the folder TrainingImage
rest you can create conda/virtual env. in your local directory and the code will run.
Traceback (most recent call last):
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 101, in
mainMenu()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 41, in mainMenu
CaptureFaces()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 79, in CaptureFaces
mainMenu()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 44, in mainMenu
Trainimages()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\main.py", line 86, in Trainimages
Train_Image.TrainImages()
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 40, in TrainImages
faces, Id = getImagesAndLabels("TrainingImage")
File "C:\Users\Guddu\Face-Recognition-Attendance-System\FRAS\Train_Image.py", line 14, in getImagesAndLabels
imagePaths = [os.path.join(path, f) for f in os.listdir(path)]
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'TrainingImage'
The text was updated successfully, but these errors were encountered: