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

No modules named 'cv2' for imutils #271

Open
ss8319 opened this issue Apr 5, 2022 · 1 comment
Open

No modules named 'cv2' for imutils #271

ss8319 opened this issue Apr 5, 2022 · 1 comment

Comments

@ss8319
Copy link

ss8319 commented Apr 5, 2022

I am getting the following error.
I have installed imutils using pip install opencv-contrib-python as recommended by PyImageSearch

"C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\Scripts\python.exe" "C:/Users/USER/Desktop/Year 3/ObjectTracker/objecttracker.py"
Traceback (most recent call last):
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\objecttracker.py", line 2, in <module>
    from imutils.video import VideoStream
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\lib\site-packages\imutils\__init__.py", line 8, in <module>
    from .convenience import translate
  File "C:\Users\USER\Desktop\Year 3\ObjectTracker\venv\lib\site-packages\imutils\convenience.py", line 6, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'
@TuanBC
Copy link

TuanBC commented May 29, 2022

I think you can try installing opencv-python too.

opencv-contrib-python is an extra package for extra features from opencv ^^

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