I am using Python 3.6. I tried to run the OpenCV optical flow code: https://github.com/opencv/opencv/blob/master/samples/python/opt_flow.py
and there was an error:
ModuleNotFoundError: No module named 'video'
I thought the 'video' module must be missing. So, I run
pip install video
in the command line, but it gave me this error:
Collecting video
Could not find a version that satisfies the requirement video (from versions: )
No matching distribution found for video
Could anyone advise on how to solve this problem? How to find where are the OpenCV modules installed in local drive?
Python's ImportError ( ModuleNotFoundError ) indicates that you tried to import a module that Python doesn't find. It can usually be eliminated by adding a file named __init__.py to the directory and then adding this directory to $PYTHONPATH .
You need to add video.py, to your project. It not a package that you need to install rather its a module which exist in the same repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With