Add charuco pattern into calibration.cpp#23486
Add charuco pattern into calibration.cpp#23486asmorkalov merged 15 commits intoopencv:4.xfrom vovka643:4.x_calibration_with_aruco
Conversation
samples/cpp/calibration.cpp
Outdated
| dictionary.readDictionary(fn); | ||
| } | ||
|
|
||
| cv::aruco::CharucoBoard ch_board ({ boardSize.width + 1, boardSize.height + 1 }, |
There was a problem hiding this comment.
Discussed the issue offline. Decided to remove +1, but add note about the board size units. Chessboard and radon board size are defined in inner corners, all other boards - in elements (circles or squares).
|
|
samples/cpp/calibration.cpp
Outdated
| " [-ad=<arucoDict>] # Aruco dictionary name for charuco board" | ||
| " [-adf=<dictFilename>] # Custom aruco dictionary file for charuco board" |
There was a problem hiding this comment.
\n is missing at the end of the line.
|
You should write inner corners of desk. For your desk you should use parameters: h=4, w =6 |
|
To summarize test results:
|
|
Please ignore my previous statement about wrong visualization and calibration. I screwed up with board size. |
…cv into 4.x_calibration_with_aruco
asmorkalov
left a comment
There was a problem hiding this comment.
👍 Tested manually with command ./example_cpp_calibration -w=5 -h=7 -pt=charuco -ad=DICT_5X5_100 ./calib.xml -o=charuco_calib.yml and template from #23363
Add charuco pattern into calibration.cpp opencv#23486 Added charuco pattern into calibration.cpp. Added charuco pattern with predefined aruco dictionary and with dictionary from file. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [х] I agree to contribute to the project under Apache 2 License. - [х] 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 - [х] The PR is proposed to the proper branch - [х] 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 CMake
Add charuco pattern into calibration.cpp opencv#23486 Added charuco pattern into calibration.cpp. Added charuco pattern with predefined aruco dictionary and with dictionary from file. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [х] I agree to contribute to the project under Apache 2 License. - [х] 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 - [х] The PR is proposed to the proper branch - [х] 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 CMake


added charuco pattern into calibration.cpp. Added charuco pattern with predefined aruco dictionary and with dictionary from file.
Pull Request Readiness Checklist
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.