Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Python creating HandTrackingProject error

Tags:

python

opencv

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
like image 551
M.Shahzad Avatar asked Dec 20 '25 20:12

M.Shahzad


1 Answers


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

like image 119
LiteApplication Avatar answered Dec 23 '25 09:12

LiteApplication



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!