Skip to content
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

bug:exception handling #10

Open
xiongzhu666 opened this issue Jun 8, 2023 · 0 comments
Open

bug:exception handling #10

xiongzhu666 opened this issue Jun 8, 2023 · 0 comments

Comments

@xiongzhu666
Copy link

xiongzhu666 commented Jun 8, 2023

in boards_from_cornersr.cc
if(!params.overlay) {
// start from random index
std::default_random_engine e;
auto time = std::chrono::system_clock::now().time_since_epoch();
e.seed(static_cast(time.count()));
if (corners.p.size() == 0)
{
return;
}
start = e() % corners.p.size();
}

when the corners.p.size() is zero, generate division by zero.....so need to add a judgment

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

1 participant