[FIX] ImageSimilarity / OpenCV Error: Assertion failed...#381
[FIX] ImageSimilarity / OpenCV Error: Assertion failed...#381tanasebutcaru wants to merge 11 commits intopeterbraden:masterfrom
Conversation
sync to upstream/master 20160409
[20160421] sync to upstream/master
[20160423] sync to upstream/master
|
I am new to OpenCV, when comparing two images using node-opencv, Iam getting the below error OpenCV Error: Assertion failed (type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U)) in batchDistance, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/stat.cpp, line 2473 Please help me out to get rid of this issue. |
|
You can try to apply the fix yourself or you can try to install my repo here. |
|
Could you return an error when the types are different, rather than just a null? |
sync to upstream/master
|
@tanasebutcaru Thank you for fixing this! 🍰 Greetings from Bihor. 😂 |
|
@IonicaBizau you're welcome! |
|
@tanasebutcaru I'm not able to run this dissimilarity example as I'm getting this "TODO: Please port Features2d.cc to OpenCV 3", could you please help me do this? PS: I'm new to this opencv |
|
@NodeXperts16 I haven't used this feature with OpenCV 3 and currently I'm not working with OpenCV. |
I'm using opencv to find image similarities and I was getting the following error:
This PR solves the error.
Got the fix hints from here.
I don't know if the way I'm handling the case when descriptors do not match is ok or not, but it works. I'm not a C++ dev.