node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

ImageSimilarity error

Open rizr opened this issue 9 years ago • 3 comments

when I compare some image, I receive 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 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/stat.cpp:2473: error: (-215) type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in function batchDistance

rizr avatar Mar 03 '16 16:03 rizr

Did my pull request #381 solved your problem?

tanasebutcaru avatar Mar 04 '16 06:03 tanasebutcaru

Yes, I forked you PR, and hardcode it in package.json, instead of full crash I've received a NULL, it's better

rizr avatar Mar 04 '16 08:03 rizr

Great! I couldn't test the case with the error, but now i have the confirmation that it solves the bug & handles the error case as I desired :+1:

tanasebutcaru avatar Mar 04 '16 09:03 tanasebutcaru