I'm training a BFMatcher with 4 descriptors:
bf = cv2.BFMatcher()
bf.clear()
bf.add(des1)
bf.add(des2)
bf.add(des3)
bf.add(des4)
bf.train()
bf.match(des1)
The code bf.match(des1)
throws this error:
error: ..\..\..\..\opencv\modules\core\src\stat.cpp:2473: error: (-215) type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in function cv::batchDistance
What could be the cause of this ? The descriptors are ORB descriptors.