CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 04:31:12 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/"234e946877027ea97e1ae5d7799d2e08"
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=YoUh%2FHuT4kPljZUpQo%2FFHH1akliiWv495b2OqQsdQgx0yHpQ5NKIIipbwmgH8q0c2XPeE20CApRYYECTwrBFWJSvrS9966Eu%2FFS4Dyttn6N5QbAlNGiQW2nMH2%2B72WKXsfy4HKCuEdhOzwiT9ZdpNm6U1bnU6oRNly8gH0zobUV%2F846rRpeTXewIV7P8Cjee90XH2l1eHtTiUAzbaW73jzSVQJ4RapT0qLnwXeHkdNA9LSQMvQs%2Fthc3reGLnSqGT24Umzm9gPPqZeMclaBaBg%3D%3D--AUBjPMiIhy%2Fql%2F7p--anMYqWRMRlOGs3YKTAQTIQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1749875854.1753590671; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:31:11 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:31:11 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CDB8:29054:1052B7:187082:6885AB8F
Merge pull request #26014 from MaximSmolskiy:increase-search-radius-f… · opencv/opencv@697512b · 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 697512b
authored
Merge pull request #26014 from MaximSmolskiy:increase-search-radius-for-corners-neighbors-in-ChessBoardDetector-findQuadNeighbors
Increase neighbors search radius for corners in ChessBoardDetector:findQuadNeighbors #26014
I didn't do everything right the way I wanted at #25991. I forgot that `edge_len` is edge **squared** length as well as `thresh_scale` is threshold for **squared** scale. So, I wanted to increase scale by `sqrt(2)` times (idea is to use quad diagonal instead of quad side) and therefore `thresh_scale` should be equal to `sqrt(2)^2 = 2`.
And refactor variables names to explicitly indicate that they are squared, so that no one else falls into this trap
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 `1/2%`:
```
cell_img_size = 100 (default)
before
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
after
category detected chessboard total detected chessboard total chessboard average detected error chessboard
all 0.952083 13710 14400 0.595984
Total detected time: 136.55770600000014 sec
----------------------------------------------------------------------------------------------------------------------------------------------
cell_img_size = 10
before
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
after
category detected chessboard total detected chessboard total chessboard average detected error
all 0.591389 8516 14400 4.155250
Total detected time: 2.700832999999997 sec
```
### Pull Request Readiness Checklist
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 347d673 commit 697512bCopy full SHA for 697512b
File tree
Expand file treeCollapse file tree
1 file changed
+31
-31
lines changedFilter options
- modules/calib3d/src
Expand file treeCollapse file tree
1 file changed
+31
-31
lines changedmodules/calib3d/src/calibinit.cpp
Copy file name to clipboardExpand all lines: modules/calib3d/src/calibinit.cpp+31-31Lines changed: 31 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
| 156 | + | |
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
| 225 | + | |
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 |
| - | |
239 |
| - | |
| 238 | + | |
| 239 | + | |
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| |||
532 | 532 |
| |
533 | 533 |
| |
534 | 534 |
| |
535 |
| - | |
536 |
| - | |
| 535 | + | |
| 536 | + | |
537 | 537 |
| |
538 | 538 |
| |
539 | 539 |
| |
| |||
547 | 547 |
| |
548 | 548 |
| |
549 | 549 |
| |
550 |
| - | |
| 550 | + | |
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| |||
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
565 |
| - | |
566 |
| - | |
567 |
| - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 |
| - | |
| 571 | + | |
572 | 572 |
| |
573 |
| - | |
574 |
| - | |
| 573 | + | |
| 574 | + | |
575 | 575 |
| |
576 | 576 |
| |
577 | 577 |
| |
| |||
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
594 |
| - | |
| 594 | + | |
595 | 595 |
| |
596 | 596 |
| |
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 | 600 |
| |
601 |
| - | |
| 601 | + | |
602 | 602 |
| |
603 | 603 |
| |
604 | 604 |
| |
605 | 605 |
| |
606 | 606 |
| |
607 |
| - | |
| 607 | + | |
608 | 608 |
| |
609 | 609 |
| |
610 | 610 |
| |
| |||
623 | 623 |
| |
624 | 624 |
| |
625 | 625 |
| |
626 |
| - | |
| 626 | + | |
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
| |||
1170 | 1170 |
| |
1171 | 1171 |
| |
1172 | 1172 |
| |
1173 |
| - | |
| 1173 | + | |
1174 | 1174 |
| |
1175 | 1175 |
| |
1176 | 1176 |
| |
| |||
1816 | 1816 |
| |
1817 | 1817 |
| |
1818 | 1818 |
| |
1819 |
| - | |
| 1819 | + | |
1820 | 1820 |
| |
1821 | 1821 |
| |
1822 | 1822 |
| |
1823 | 1823 |
| |
1824 |
| - | |
| 1824 | + | |
1825 | 1825 |
| |
1826 | 1826 |
| |
1827 | 1827 |
| |
1828 | 1828 |
| |
1829 | 1829 |
| |
1830 | 1830 |
| |
1831 | 1831 |
| |
1832 |
| - | |
1833 |
| - | |
| 1832 | + | |
| 1833 | + | |
1834 | 1834 |
| |
1835 | 1835 |
| |
1836 | 1836 |
| |
1837 | 1837 |
| |
1838 | 1838 |
| |
1839 | 1839 |
| |
1840 | 1840 |
| |
1841 |
| - | |
1842 |
| - | |
| 1841 | + | |
| 1842 | + | |
1843 | 1843 |
| |
1844 | 1844 |
| |
1845 | 1845 |
| |
| |||
1850 | 1850 |
| |
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 |
| - | |
1854 |
| - | |
| 1853 | + | |
| 1854 | + | |
1855 | 1855 |
| |
1856 | 1856 |
| |
1857 | 1857 |
| |
| |||
1992 | 1992 |
| |
1993 | 1993 |
| |
1994 | 1994 |
| |
1995 |
| - | |
| 1995 | + | |
1996 | 1996 |
| |
1997 | 1997 |
| |
1998 |
| - | |
1999 |
| - | |
| 1998 | + | |
| 1999 | + | |
2000 | 2000 |
| |
2001 | 2001 |
| |
2002 | 2002 |
| |
2003 |
| - | |
| 2003 | + | |
2004 | 2004 |
| |
2005 | 2005 |
| |
2006 | 2006 |
| |
|
You can’t perform that action at this time.
0 commit comments