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

Run time error #1

Open
SAMIR672160 opened this issue Feb 25, 2022 · 0 comments
Open

Run time error #1

SAMIR672160 opened this issue Feb 25, 2022 · 0 comments

Comments

@SAMIR672160
Copy link

C:\Users\samir\PycharmProjects\mouse\venv\Scripts\python.exe C:/Users/samir/PycharmProjects/mouse/AiVirtualMouse.py
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[ WARN:0@16.873] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1752) CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -2147483638
Traceback (most recent call last):
File "C:/Users/samir/PycharmProjects/mouse/AiVirtualMouse.py", line 23, in
img = detector.findHands(img)
File "C:\Users\samir\PycharmProjects\mouse\HandTrackingModule.py", line 22, in findHands
imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) # converting to RGB bcoz hand recognition works only on RGB image
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

[ WARN:0@17.203] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

Process finished with exit code 1

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

1 participant