gnebehay/CMT

Any plans to support OpenCV > 3

Opened this issue · 2 comments

As opencv is now available at 3.1, are there any plans to upgrade CMT to work with 3.1
If not is there a particular sweet spot of OpenCV 3 that you found works ?

Check out this repository , it has cv2 v3 support
https://github.com/toinsson/CMT

All what you have to do is this

if cv2.__version__ < 3.0:
	self.detector = cv2.FeatureDetector_create(self.DETECTOR)
	self.descriptor = cv2.DescriptorExtractor_create(self.DESCRIPTOR)
	self.matcher = cv2.DescriptorMatcher_create(self.MATCHER)
	#else:
	self.detector = cv2.BRISK_create()
	self.descriptor = self.detector
	self.matcher = cv2.BFMatcher(cv2.NORM_HAMMING)

How to use SIFT and SURF detectors in opencv3? I know that they have been moved to opencv contrib directory. However, I am not sure where all to change the code. (I change the detector creation part alone but on running I get multiple errors)