sightmachine/SimpleCV

import cv2.cv no longer works with OpenCV 3.4.1

Opened this issue · 1 comments

In base.py,
try: import cv2.cv as cv except ImportError: try: import cv except ImportError: raise ImportError("Cannot load OpenCV library which is required by SimpleCV")

Since the newest OpenCV only support import cv2, should this part be updated?

xzhws commented

I got this problem today. But now I solved it, as far as I think, it is possiblely that you did not install 'python-opencv'. Remember to install all the reliable packages.

sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools git

If you counld not install all of them, Just 'sudo apt-get update', and then try again to install the above packages. If this operation can not make either, use 'sudo pip install'. Hope you can solve it.