Updated by Anna Kogan over 12 years ago
Description
I have tried the sample of Features2D + Homography to find a known object in the opencv_tutorial.pdf for android development.
I used FREAK extractor and BFMatcher(NORM_HAMMING), but it fails on this line:
<pre>matcher.match(descriptorsA, matcher.match(descriptorsA, descriptorsB, matches);</pre> matches);
And also I have tried other extractors and other matchers, the situation still not change at all:
<pre>
OpenCV reports:
OpenCV Error: Assertion failed (type src2.type() && src1.cols src2.cols &&
(type CV_32F || type CV_8U)) in unknown function, file OpenCV\modules\core\src\stat.cpp, line 1803</pre> 1803
I have tried the sample of Features2D + Homography to find a known object in the opencv_tutorial.pdf for android development.
I used FREAK extractor and BFMatcher(NORM_HAMMING), but it fails on this line:
<pre>matcher.match(descriptorsA, matcher.match(descriptorsA, descriptorsB, matches);</pre> matches);
And also I have tried other extractors and other matchers, the situation still not change at all:
<pre>
OpenCV reports:
OpenCV Error: Assertion failed (type src2.type() && src1.cols src2.cols &&
(type CV_32F || type CV_8U)) in unknown function, file OpenCV\modules\core\src\stat.cpp, line 1803</pre> 1803