-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa42dd
commit bf618ae
Showing
2 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bf618ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C:\Users\nnaya\AppData\Local\Programs\Python\Python311\python.exe C:\Users\nnaya\PycharmProjects\face-attendance-system1\main.py
Traceback (most recent call last):
File "C:\Users\nnaya\PycharmProjects\face-attendance-system1\main.py", line 99, in
app = App()
^^^^^
File "C:\Users\nnaya\PycharmProjects\face-attendance-system1\main.py", line 24, in init
self.add_webcam(self.webcam_label)
File "C:\Users\nnaya\PycharmProjects\face-attendance-system1\main.py", line 33, in add_webcam
self.process_webcam()
File "C:\Users\nnaya\PycharmProjects\face-attendance-system1\main.py", line 37, in process_webcam
img_ = cv2.cvtColor(self.most_recent_capture_arr, cv2.COLOR_BGR2RGB)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
showing this error. what should i do