We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some found corners lead to inf being computed which screws up the code.
inf
To be precise: both v1 and v2 end up containing -inf which leads to a SIGILL at
v1
v2
-inf
opencv_contrib/modules/mcc/src/checker_detector.cpp
Line 1109 in 9d0a451
inf/inf
A solution could be to add if (Vcart.z == 0) Vcart.z += 0.0001; after
if (Vcart.z == 0) Vcart.z += 0.0001;
opencv_contrib/modules/mcc/src/bound_min.cpp
Line 168 in 9d0a451
I am not familiar with the code to know whether it makes sense though.
Run the following code
#include "opencv2/imgcodecs.hpp" #include "opencv2/mcc.hpp" int main(int, char**argv){ cv::Mat mat = cv::imread("./crop.jpeg"); cv::Ptr<cv::mcc::CCheckerDetector> detector = cv::mcc::CCheckerDetector::create(); detector->process(mat, cv::mcc::TYPECHART::MCC24); }
with the image:
It might not SIGILL for you but you can display the mentioned cv::Point2f and you will see inf.
cv::Point2f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System information (version)
Detailed description
Some found corners lead to
inf
being computed which screws up the code.To be precise: both
v1
andv2
end up containing-inf
which leads to a SIGILL atopencv_contrib/modules/mcc/src/checker_detector.cpp
Line 1109 in 9d0a451
inf/inf
(if you have throwing NaNs).A solution could be to add
if (Vcart.z == 0) Vcart.z += 0.0001;
afteropencv_contrib/modules/mcc/src/bound_min.cpp
Line 168 in 9d0a451
I am not familiar with the code to know whether it makes sense though.
Steps to reproduce
Run the following code
with the image:
![crop](https://user-images.githubusercontent.com/700766/181758533-e63ccf40-2433-4ed3-a283-90e028540fda.jpeg)
It might not SIGILL for you but you can display the mentioned
cv::Point2f
and you will seeinf
.Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: