Skip to content
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

Error Option 4 #35

Open
staticshreyas opened this issue Aug 17, 2021 · 1 comment
Open

Error Option 4 #35

staticshreyas opened this issue Aug 17, 2021 · 1 comment

Comments

@staticshreyas
Copy link
Contributor

********** WELCOME MENU **********
[1] Check Camera
[2] Capture Faces
[3] Train Images
[4] Recognize & Attendance
[5] Auto Mail
[6] Quit
Enter Choice: 4
Traceback (most recent call last):
File "main.py", line 101, in
mainMenu()
File "main.py", line 47, in mainMenu
RecognizeFaces()
File "main.py", line 95, in RecognizeFaces
Recognize.recognize_attendence()
File "/Users/shreyasmore/Downloads/OpenSourceRepo/Face-Recognition-Attendance-System/FRAS/Recognize.py", line 30, in recognize_attendence
gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.1) /private/var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/pip-req-build-yvyj7qlp/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

@ayush9198gupta
Copy link

@staticshreyas

Do things in a list:
install/upgrade opencv/opencv-contrib package
create env and install the dependencies accordingly and rerun
check your camera and recheck the images generated in TrainingImageLabel folder

This will solve your issue.

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

2 participants