CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 09:27:41 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"23f4947701482a59f34b053286f556cb"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=edIZDrwBADf9wGY6mbe%2FDeS6HZ580Yb34GfKrKQxF%2FYA4%2BgEr84CuX6NzuReX5asmRmXU5Mi8mEQa%2Fbogc5JZx6q9fLOnDD9119c5OLTBzSsvaYbdXiekgNpxbgihO6le4gqj7aMhIkb69SRP00MJlua%2F6knh%2BZN3%2Bj8JxHy%2FzC6Dkgn33eyl%2F4JB0%2FITvMXz%2BRIs4LoW%2B6w7RDrKTerkFK5BcvM3hyJT1dQMF7fLNob70%2FS34txVrFVUoP1CnKlmH%2BTwgMBTDX%2F%2B97geku3cQ%3D%3D--oh6ti0jU%2BHrwcac9--WaHD6C7yIs%2FQSU1k2sD8eg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1901678100.1753608460; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:27:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:27:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E3BE:21EF6:3594A2:4918DF:6885F10C
Merge pull request #25991 from MaximSmolskiy:improve-corners-matching… · opencv/opencv@6ed603e · GitHub
Copy file name to clipboardExpand all lines: modules/calib3d/src/calibinit.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 6ed603e
authored
Merge pull request #25991 from MaximSmolskiy:improve-corners-matching-in-ChessBoardDetector-NeighborsFinder-findCornerNeighbor
Improve corners matching in ChessBoardDetector::NeighborsFinder::findCornerNeighbor #25991
### Pull Request Readiness Checklist
Idea was mentioned in `Section III-B. New Heuristic for Quadrangle Linking` of `Rufli, Martin & Scaramuzza, Davide & Siegwart, Roland. (2008). Automatic Detection of Checkerboards on Blurred and Distorted Images. 2008 IEEE/RSJ International Conference on Intelligent Robots and Systems, IROS. 3121-3126. 10.1109/IROS.2008.4650703` (https://rpg.ifi.uzh.ch/docs/IROS08_scaramuzza_b.pdf):

```
* For each candidate pair, focus on the quadrangles they belong to and draw two straight lines passing through the midsections of the respective quadrangle edges (see Fig. 6).
* If the candidate corner and the source corner are on the same side of every of the four straight lines drawn this way (this corresponds to the yellow shaded area in Fig. 6), then the corners are successfully matched.
```
By improving corners matching, we can increase the search radius (`thresh_scale`).
I tested this PR with benchmark
```
python3 objdetect_benchmark.py --configuration=generate_run --board_x=7 --path=res_chessboard --synthetic_object=chessboard
```
PR increases detected chessboards number by `3/7%`:
```
cell_img_size = 100 (default)
before
category detected chessboard total detected chessboard total chessboard average detected error chessboard
all 0.910417 13110 14400 0.599746
Total detected time: 147.50906700000002 sec
after
category detected chessboard total detected chessboard total chessboard average detected error chessboard
all 0.941667 13560 14400 0.596726
Total detected time: 136.68963200000007 sec
----------------------------------------------------------------------------------------------------------------------------------------------
cell_img_size = 10
before
category detected chessboard total detected chessboard total chessboard average detected error chessboard
all 0.539792 7773 14400 4.208237
Total detected time: 2.668964 sec
after
category detected chessboard total detected chessboard total chessboard average detected error chessboard
all 0.579167 8340 14400 4.198448
Total detected time: 2.535998999999999 sec
```
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake1 parent ab99f87 commit 6ed603eCopy full SHA for 6ed603e
File tree
Expand file treeCollapse file tree
1 file changed
+46
-10
lines changedFilter options
- modules/calib3d/src
Expand file treeCollapse file tree
1 file changed
+46
-10
lines changedmodules/calib3d/src/calibinit.cpp
Copy file name to clipboardExpand all lines: modules/calib3d/src/calibinit.cpp+46-10Lines changed: 46 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
| 225 | + | |
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 |
| - | |
236 |
| - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
| |||
514 | 515 |
| |
515 | 516 |
| |
516 | 517 |
| |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
517 | 531 |
| |
518 |
| - | |
519 |
| - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
520 | 535 |
| |
521 | 536 |
| |
522 | 537 |
| |
| |||
525 | 540 |
| |
526 | 541 |
| |
527 | 542 |
| |
528 |
| - | |
| 543 | + | |
529 | 544 |
| |
530 | 545 |
| |
531 | 546 |
| |
532 | 547 |
| |
533 |
| - | |
| 548 | + | |
534 | 549 |
| |
535 | 550 |
| |
536 | 551 |
| |
537 | 552 |
| |
538 | 553 |
| |
539 | 554 |
| |
540 | 555 |
| |
541 |
| - | |
| 556 | + | |
542 | 557 |
| |
543 | 558 |
| |
544 | 559 |
| |
545 | 560 |
| |
546 | 561 |
| |
547 | 562 |
| |
548 | 563 |
| |
549 |
| - | |
| 564 | + | |
| 565 | + | |
550 | 566 |
| |
551 | 567 |
| |
552 | 568 |
| |
| |||
560 | 576 |
| |
561 | 577 |
| |
562 | 578 |
| |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
563 | 597 |
| |
564 | 598 |
| |
565 | 599 |
| |
| |||
589 | 623 |
| |
590 | 624 |
| |
591 | 625 |
| |
592 |
| - | |
| 626 | + | |
593 | 627 |
| |
594 | 628 |
| |
595 | 629 |
| |
| |||
1793 | 1827 |
| |
1794 | 1828 |
| |
1795 | 1829 |
| |
| 1830 | + | |
1796 | 1831 |
| |
1797 | 1832 |
| |
1798 | 1833 |
| |
| |||
1813 | 1848 |
| |
1814 | 1849 |
| |
1815 | 1850 |
| |
| 1851 | + | |
1816 | 1852 |
| |
1817 | 1853 |
| |
1818 | 1854 |
| |
|
You can’t perform that action at this time.
0 commit comments