Pragya9ps / Face-Recognition-Attendance-System

Attendance Management System based on Face Recognition using Python and OpenCv
56 stars 21 forks source link

when i click train image there is error #2

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\Face-Recognition-Attendance-System-main\Face-Recognition-Attendance-System-main\AMS_Run.py", line 627, in trainimg recognizer = cv2.face.LBPHFaceRecognizer_create() ^^^^^^^^ AttributeError: module 'cv2' has no attribute 'face'

pls help me to solve this problem

innovatorved commented 1 year ago

Here is the corrected version of the text:

To solve the error, you can try the following steps in your command prompt or terminal:

pip install --upgrade pip
pip install --force-reinstall opencv-contrib-python
pip install --no-cache --force-reinstall opencv-contrib-python

If the error persists, you can try restarting your computer.

innovatorved commented 1 year ago

@Pragya9ps

Creating a repository is not enough. We must address any underlying issues.

appucharan21 commented 1 year ago

what will be the Front end tool and back end tool using in this?

appucharan21 commented 1 year ago

Traceback (most recent call last): File "D:\FRBAS\testing.py", line 4, in recognizer = cv2.createLBPHFaceRecognizer() AttributeError: module 'cv2' has no attribute 'createLBPHFaceRecognizer'

pls help me to slove this problem

ihu5 commented 8 months ago

Traceback (most recent call last): File "D:\FRBAS\testing.py", line 4, in recognizer = cv2.createLBPHFaceRecognizer() AttributeError: module 'cv2' has no attribute 'createLBPHFaceRecognizer'

pls help me to slove this problem

python -m pip install --user opencv-contrib-python

co-de-er123 commented 5 months ago

Hey there i am getting this error while training images Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\Hp\AppData\Local\Programs\Python\Python39\lib\tkinter__init.py", line 1892, in call__ return self.func(*args) File "C:\Users\Hp\Downloads\Face-Recognition-Attendance-System-main\Face-Recognition-Attendance-System-main\AMS_Run.py", line 627, in trainimg recognizer = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2' has no attribute 'face'

I tried the above given methods and none of them seem to work any other fixes available please let me know