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?
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.