No attribute findKeypointMatch

199 views
Skip to first unread message

Alex.Izydorczyk

unread,
Apr 19, 2012, 1:39:35 AM4/19/12
to Simplecv
Hi,

I get an error "Image instance has no attribute findKeypointMatch"
when running example code.. Do I have an outdated version of simplecv
or is there another problem? I notice this method is not defined in
the documentation either...


Thanks
Alex

Jay Rambhia

unread,
Apr 19, 2012, 3:01:53 AM4/19/12
to simp...@googlegroups.com
I think you are right. You have an old version of SimpleCV. You can download the latest version from SimpleCV - GitHub Download
--
Jay Rambhia,
Undergraduate Student,
Mechanical Engineering,
BITS,Pilani Goa Campus
Contact : 09967119686
@jayrambhia
Blog - Paranoid Android
GitHub
gists

Anthony Oliver

unread,
Apr 19, 2012, 9:07:57 AM4/19/12
to simp...@googlegroups.com
Do you have OpenCV 2.3 installed?  How did you install simplecv?



---------------------------------
Anthony Oliver
Chief Technology Officer
---------------------------------

Alex.Izydorczyk

unread,
Apr 19, 2012, 11:21:28 AM4/19/12
to Simplecv
Hi all,

Thank you for the suggestions. I do indeed have OpenCV installed. I
installed simplecv using the ubuntu/debian package on the simplecv
website and by using "easy_install simplecv". Perhaps I should be
building this myself from github. Do you think its necessary to
uninstall in any way?

Alex

On Apr 19, 9:07 am, Anthony Oliver <anth...@ingenuitas.com> wrote:
> Do you have OpenCV 2.3 installed?  How did you install simplecv?
>
> ---------------------------------
> Anthony Oliver
> Chief Technology Officerhttp://www.ingenuitas.com
> (906) 289-8169
> anth...@ingenuitas.com
> ---------------------------------
>
> On Thu, Apr 19, 2012 at 3:01 AM, Jay Rambhia <jayrambhia...@gmail.com>wrote:
>
>
>
>
>
>
>
> > I think you are right. You have an old version of SimpleCV. You can
> > download the latest version from SimpleCV - GitHub Download<https://github.com/ingenuitas/SimpleCV/downloads>
>
> > On Thu, Apr 19, 2012 at 11:09 AM, Alex.Izydorczyk <iz...@wharton.upenn.edu
> > > wrote:
>
> >> Hi,
>
> >> I get an error "Image instance has no attribute findKeypointMatch"
> >> when running example code.. Do I have an outdated version of simplecv
> >> or is there another problem? I notice this method is not defined in
> >> the documentation either...
>
> >> Thanks
> >> Alex
>
> > --
> > Jay Rambhia,
> > Undergraduate Student,
> > Mechanical Engineering,
> > BITS,Pilani Goa Campus
> > Contact : 09967119686
> > @jayrambhia <http://twitter.com/jayrambhia>
> > Blog - Paranoid Android <http://jayrambhia.wordpress.com/>
> > GitHub <https://github.com/jayrambhia/>
> > gists <https://gist.github.com/jayrambhia>

Alex.Izydorczyk

unread,
Apr 19, 2012, 10:07:14 PM4/19/12
to Simplecv
Hi all,

I've had some success reinstalling OpenCV (I had an old version..).
Now the findKeypointMatch appears to be recognized but python
complains of another attribution error... this time 'module' object
has no attribute 'SURF'. It's as if OpenCV did not come with the SURF
class/function/method?

On Apr 19, 11:21 am, "Alex.Izydorczyk" <iz...@wharton.upenn.edu>
wrote:

Rishi Mukherjee

unread,
Apr 19, 2012, 11:08:56 PM4/19/12
to simp...@googlegroups.com
What do you get when you type

import cv2
cv2.__version__ 

?
I get '$Rev: 4557 $'

Anthony Oliver

unread,
Apr 20, 2012, 10:44:05 AM4/20/12
to simp...@googlegroups.com
What version of Ubuntu are you using?  When the 1.2 package was built we only required opencv 2.1 which is the default in the ubuntu repos.  In Ubuntu 12.04 OpenCV 2.3 is the default which has the new keypoint detection features we need.  If you are on any version lower than 12.04 you will have to either build opencv from source or install via the ppa like so:
sudo add-apt-repository ppa:gijzelaar/cuda
sudo add-apt-repository ppa:gijzelaar/opencv2.3
sudo apt-get update
sudo apt-get install libcv-dev
sudo apt-get install python-opencv


*NOTE: Before you install this version make sure you remove any previous versions of opencv

---------------------------------
Anthony Oliver
---------------------------------

Izydorczyk, Alexander

unread,
Apr 20, 2012, 6:34:02 PM4/20/12
to simp...@googlegroups.com
I think this indeed is the problem, how do I remove any existing versions of OpenCV? Apologies for all the questions...

From: simp...@googlegroups.com [simp...@googlegroups.com] on behalf of Anthony Oliver [ant...@ingenuitas.com]
Sent: Friday, April 20, 2012 10:44 AM
To: simp...@googlegroups.com
Subject: Re: [simplecv] Re: No attribute findKeypointMatch

Jay Rambhia

unread,
Apr 21, 2012, 1:23:20 AM4/21/12
to simp...@googlegroups.com
I don't think you need to remove Opencv 2.1. I have OpenCV 2.1 and 2.3.1 both. http://www.marcolancini.it/other/opencv_install_231.php . Follow this link to install OpenCV 2.3.1.
--
Jay Rambhia,
Undergraduate Student,
Mechanical Engineering,
BITS,Pilani Goa Campus
Contact : 09967119686
@jayrambhia
Reply all
Reply to author
Forward
0 new messages