Reputation: 108
I import opencv And mediapipe then add code to display image.
import cv2
import mediapipe as mp
import time
cap = cv2.VideoCapture(1)
while True:
success, img = cap.read()
cv2.imshow("image",img)
cv2.waitKey(1)
It show me this error............... plz help me if any developer know this error
D:\pythonProject\handTracksecnond\venv\Scripts\python.exe D:/pythonProject/handTracksecnond/handTrackingMin.py
Traceback (most recent call last):
File "D:/pythonProject/handTracksecnond/handTrackingMin.py", line 2, in <module>
import mediapipe as mp
File "D:\pythonProject\handTracksecnond\venv\lib\site-packages\mediapipe\__init__.py", line 16, in <module>
import mediapipe.python
File "D:\pythonProject\handTracksecnond\venv\lib\site-packages\mediapipe\python\__init__.py", line 17, in <module>
from ._framework_bindings import resource_util
ImportError: DLL load failed while importing _framework_bindings: The specified module could not be found.
Process finished with exit code 1
Upvotes: 3
Views: 2081
Reputation: 853
It looks like there was an error when you installed the module mediapipe
.
I would suggest trying to reinstall the module using
pip uninstall mediapipe
pip install mediapipe
Some people solved the issue by doing
pip install msvc-runtime
I hope this was helpful
Upvotes: 2