-
Notifications
You must be signed in to change notification settings - Fork 57
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
Chilitags3D.estimate(cv::Mat) Doesn't work against opencv 3.3/3.2 #95
Comments
@Mizerb I might be wrong, but it really looks like you're passing an empty image to chilitags. Can you double check your image is not empty? |
@severin-lemaignan Morning, thanks for taking a look at this. I'm pretty sure the image wasn't empty. I ran cv::imshow against the mat, and it showed the correct input. Also ran chilitags::Chilitags find() on the mat, which worked successfully with opencv 3.3/3.2. I'll check again later, and it might be something else on my end. It's that when I swapped out the opencv version it suddenly worked, I thought I finally found the issue. |
@Mizerb ok, then it's not due to an empty image... interesting... |
Hi, I had this same problem in the "estimate3d-gui" sample. It seems that OpenCV is complaining that one matrix has a type of CV_32FC1 while the other has a type of CV_64FC1. I was able to fix this by converting both matrices to CV_64FC1 prior to calling cv::Rogrigues.
|
When run, get an error on assertion in opencv /modules/core/src/matrix.cpp at line 2542 with:
CV_Assert( mtype == type0 || (CV_MAT_CN(mtype) == 1 && ((1 << type0) & fixedDepthMask) != 0) );
I understand these versions of opencv may not be supported, I just wanted to make sure it's written down somewhere.
The text was updated successfully, but these errors were encountered: