Ask Your Question
0

Cannot load OpenCV library

asked 2014-01-03 15:18:48 -0500

kao gravatar image

updated 2014-01-03 16:57:42 -0500

I installed the latest opencv manually using this script: https://github.com/A7Zulu/o...

The script also installs SimpleCv using the instructions from https://github.com/sightmac... with the modification of not installing python-opencv (this is because the version number here is incompatible with SimpleCV)

I am getting this error when I try to run simpleCV:

> Traceback (most recent call last):
> File "/usr/local/bin/simplecv", line > 9, in <module> > loadentrypoint('SimpleCV==1.3', 'consolescripts', 'simplecv')()
> File > "/usr/lib/python2.7/dist-packages/pkg
resources.py", > line 337, in loadentrypoint > return getdistribution(dist).loadentrypoint(group, > name) File > "/usr/lib/python2.7/dist-packages/pkgresources.py", > line 2311, in loadentrypoint > return ep.load() File "/usr/lib/python2.7/dist-packages/pkgresources.py", > line 2017, in load > entry = import(self.modulename, globals(),globals(), ['name'])
> File > "/usr/local/lib/python2.7/dist-packages/SimpleCV/init.py", > line 3, in <module> > from SimpleCV.base import * File "/usr/local/lib/python2.7/dist-packages/SimpleCV/base.py", > line 60, in <module> > raise ImportError("Cannot load OpenCV library which is required by > SimpleCV") ImportError: Cannot load > OpenCV library which is required by > SimpleCV

I am wondering what exactly am I doing wrong.

The reason I am installing the latest OpenCV is because if I just follow the instructions on the github page and try using the drawSIFTKeyPointMatch function I run into the error:

> i.drawSIFTKeyPointMatch(i1,distance=50).show() > /usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.py:13041: > UserWarning: OpenCV >= 2.4.3 required > warnings.warn("OpenCV >= 2.4.3 > required") > > TypeError
> Traceback (most recent call last) > /usr/local/lib/python2.7/dist-packages/SimpleCV/Shell/Shell.pyc > in <module>() > ----> 1 i.drawSIFTKeyPointMatch(i1,distance=50).show() > > /usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.pyc > in drawSIFTKeyPointMatch(self, > template, distance, num, width)
> 13127 resultImg = > template.sideBySide(self,scale=False) > 13128 hdif = > (self.height-template.height)/2 > > 13129 sfs, tfs = self.matchSIFTKeyPoints(template, > distance) 13130

Thanks for the help

</module></module></module></module>

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-08-22 09:08:07 -0500

xamox gravatar image

Currently simplecv doesn't work with anything higher than 2.4.2 as they removed the old cv interface. We are currently updating SimpleCV to handle this but is not complete yet.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-01-03 15:18:48 -0500

Seen: 4,912 times

Last updated: Aug 22 '14