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

Face based attendance system using python and OpenCV
401 stars 163 forks source link

Error in train images #17

Open appucharan21 opened 1 year ago

appucharan21 commented 1 year ago

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 commented 1 year ago

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

Arockiamari commented 1 year ago

It's working thank you so much😊

Santosh56kumar commented 7 months ago

Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64qbz5n2kfra8p0\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