Patelrahul4884 / Attendance-Management-system-using-face-recognition

Face based attendance system using python and OpenCV
456 stars 187 forks source link

Please help me I cat run this when I click train image it shows these error messages.please help me as soon as you see this #4

Open SKY-REAPER opened 2 years ago

SKY-REAPER commented 2 years ago

/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/venv/bin/python /Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/attendance.py Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 1702, in call return self.func(*args) File "/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/attendance.py", line 272, in train_image text_to_speech, File "/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/trainImage.py", line 15, in TrainImage faces, Id = getImagesAndLables(trainimage_path) File "/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/trainImage.py", line 28, in getImagesAndLables for i in range(len(newdir)) File "/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/trainImage.py", line 29, in for f in os.listdir(newdir[i]) NotADirectoryError: [Errno 20] Not a directory: '/Users/athulkrishnaambatt.s/Desktop/GitHub/Attendance-Management-system-using-face-recognition/TrainingImage/.DS_Store'