node-opencv
node-opencv copied to clipboard
ImageSimilarity error
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
Did my pull request #381 solved your problem?
Yes, I forked you PR, and hardcode it in package.json, instead of full crash I've received a NULL, it's better
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: