Fix bug in ChessBoardDetector::findQuadNeighbors#24779
Fix bug in ChessBoardDetector::findQuadNeighbors#24779asmorkalov merged 2 commits intoopencv:4.xfrom
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.
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. |


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.