An example of keypoint detection using SimpleCV.
from SimpleCV import Image, Color, Display | |
# load an image from imgur | |
img = Image('http://i.imgur.com/lfAeZ4n.png') | |
# use a keypoint detector to find areas of interest | |
feats = img.findKeypoints() | |
# draw the list of keypoints | |
feats.draw(color=Color.RED) | |
# show the resulting image. | |
img.show() | |
# apply the stuff we found to the image. | |
output = img.applyLayers() | |
# save the results. | |
output.save('juniperfeats.png') |
This comment has been minimized.
This comment has been minimized.
TypeError Traceback (most recent call last)
C:\Python27\lib\site-packages\SimpleCV\Shell\Shell.pyc in <module>()
3 img = Image('http://i.imgur.com/lfAeZ4n.png')
4 # use a keypoint detector to find areas of interest
----> 5 feats = img.findKeypoints()
6 # draw the list of keypoints
7 feats.draw(color=Color.RED)
C:\Python27\lib\site-packages\SimpleCV\ImageClass.pyc in findKeypoints(self, min_quality, flavor, highQuality)
7748 kp,d = self._getRawKeypoints(thresh=min_quality,forceReset=True,flavor=flavor,highQuality=1)
7749 else:
-> 7750 kp,d = self._getRawKeypoints(thresh=min_quality,forceReset=True,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.detect(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) |
This comment has been minimized.
This comment has been minimized.
I receive too: TypeError: FeatureDetector.detect() takes at most 2 arguments (3 given) If someone has any ideas please post here , thanks. |
This comment has been minimized.
This comment has been minimized.
I receive:
|
This comment has been minimized.
This comment has been minimized.
On line5: Using ipdb, I've traced it down to which then yields: The numpy array looked fine prior to returning it, so not sure why it faulted. Has anyone else encountered this before? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
I receive:
Fatal Python error: (pygame parachute) Segmentation Fault [Finished in 1.2s with exit code -6]