Ask Your Question
0

findKeypoints() error in book example

asked 2013-02-04 09:23:40 -0500

betovass gravatar image

updated 2013-02-23 14:23:19 -0500

jayrambhia gravatar image

I´m trying to reproduce the example of the ebook and I´m getting this error: Anyone has any clue what is causing?

SimpleCV:4> card = Image('keycard.png')

SimpleCV:5> keys = card.findKeypoints()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
C:\Python27\lib\site-packages\SimpleCV\Shell\Shell.pyc in <module>()
----> 1 keys = card.findKeypoints()

C:\Python27\lib\site-packages\SimpleCV\ImageClass.pyc in findKeypoints(self, min
_quality, flavor, highQuality)
   7748             kp,d = self._getRawKeypoints(thresh=min_quality,forceReset=T
rue,flavor=flavor,highQuality=1)
   7749         else:
-> 7750             kp,d = self._getRawKeypoints(thresh=min_quality,forceReset=T
rue,flavor=flavor,highQuality=0)
   7751
   7752         if( flavor in ["ORB", "SIFT", "SURF"]  and kp!=None and d !=None
 ):

C:\Python27\lib\site-packages\SimpleCV\ImageClass.pyc in _getRawKeypoints(self,
thresh, flavor, highQuality, forceReset)
   7344                     #mask = self.getGrayNumpy()
   7345                     #mask.fill(255)
-> 7346                     self._mKeyPoints,self._mKPDescriptors = surfer.detec
t(self.getGrayNumpy(),None,useProvidedKeypoints = False)
   7347                     if( len(self._mKPDescriptors) == 0 ):
   7348                         return None, None

TypeError: FeatureDetector.detect() takes at most 2 arguments (3 given)

SimpleCV:6>
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2013-02-05 07:50:07 -0500

betovass gravatar image

The problem was that SimpleCV (latest version 1.3.0) does not support featureDetect() on the latest OpenCV (2.4.3). Had to downgrade to OpenCV 2.4.1 to get full compatibility.

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: 2013-02-04 09:23:40 -0500

Seen: 1,429 times

Last updated: Feb 23 '13