Skip to content

ImageSimilarity error #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rizr opened this issue Mar 3, 2016 · 3 comments
Open

ImageSimilarity error #383

rizr opened this issue Mar 3, 2016 · 3 comments

Comments

@rizr
Copy link

rizr commented Mar 3, 2016

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

@tanasebutcaru
Copy link

Did my pull request #381 solved your problem?

@rizr
Copy link
Author

rizr commented Mar 4, 2016

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

@tanasebutcaru
Copy link

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants