-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
Fix bug in ChessBoardDetector::findQuadNeighbors #24779
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
Fix bug in ChessBoardDetector::findQuadNeighbors #24779
Conversation
|
@MaximSmolskiy Could you add some test to highlight the problem. I need time to understand the code and issue root. |
@asmorkalov I checked this pr on hundreds of images and there were no changes in quality/accuracy. |
|
@asmorkalov @AleksandrPanov gentle ping |
|
@asmorkalov @AleksandrPanov gentle ping |
|
@MaximSmolskiy, I will check this PR today, and test the benchmark |
|
@AleksandrPanov Any updates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with benchmark:
--configuration=generate_run --board_x=7 --path=res_chessboard --synthetic_object=chessboard
There are no regressions.
|
@asmorkalov, I propose to merge this PR. |
asmorkalov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍


Pull Request Readiness Checklist
cornersandneighborsindices means not filling order, but relative position. So, for example ifquad->count = 2, it doesn't mean thatquad->neighbors[0]andquad->neighbors[1]are filled. And we should should iterate over all fourneighbors.See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.