I have a problem running opt_flow.py in / opencv / samples / python 2. Everything is fine in / samples / python. But in python2, something seems to be missing.
Python version: 2.7.3 IDE: pyDev in Eclipse
running opt_flow.py from https://github.com/jonmarimba/OpenCVMirror/blob/ff81e19a7a12764c657e2765d69ef166065f5e61/opencv/samples/python2/opt_flow.py
The following are snippets of code:
import cv2, cv2.cv as cv import video from common import anorm2, draw_str from time import clock ...
and errors appear.
Description Resource Path Location Type Unresolved import: video optical_flow.py /practice/test line 9 PyDev Problem Unresolved import: draw_str optical_flow.py /practice/test line 10 PyDev Problem Unresolved import: anorm2 optical_flow.py /practice/test line 10 PyDev Problem
that I did not find any appropriate solution to this error, can anyone help?
source share