Skip to content

added aruco pattern support into stereo_calibration.cpp#23515

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
vovka643:4.x_aruco_stereo_calibration
May 16, 2023
Merged

added aruco pattern support into stereo_calibration.cpp#23515
asmorkalov merged 1 commit intoopencv:4.xfrom
vovka643:4.x_aruco_stereo_calibration

Conversation

@vovka643
Copy link
Copy Markdown
Contributor

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

@asmorkalov asmorkalov self-assigned this Apr 19, 2023
@asmorkalov asmorkalov changed the title added aruco pattern into stereo_calibration.cpp. first commit added aruco pattern support into stereo_calibration.cpp Apr 20, 2023
@vovka643
Copy link
Copy Markdown
Contributor Author

Test.
command:
./example_cpp_stereo_calib.exe -w=6 -h=4 -t=charucoboard -s=30 -ms=15 -ad=DICT_4X4_50 stereo_calib.xml
result:
done with RMS error=0.613817
average epipolar err = 0.315794
result

@asmorkalov
Copy link
Copy Markdown
Contributor

General note: please do not touch formatting and code that is not relevant to charuco.

@asmorkalov
Copy link
Copy Markdown
Contributor

samples/cpp/stereo_calib.cpp:118: trailing whitespace.
+    
samples/cpp/stereo_calib.cpp:421: trailing whitespace.
+    

@asmorkalov
Copy link
Copy Markdown
Contributor

@vovka643 I fixed text formatting a bit and BuildBot issues, but the sample still does not work with charuco.
Command:

./bin/example_cpp_stereo_calib -w=7 -h=5 -t=charucoboard -s=30 -ms=15 -ad=DICT_4X4_50 calib_stereo.xml
./bin/example_cpp_stereo_calib -w=7 -h=5 -t=charucoboard -s=30 -ms=15 -ad=DICT_4X4_50 calib_stereo.xml 
..........................0 pairs have been successfully detected.
Error: too little pairs to run the calibration

In the same time chessboard branch works correctly:

./bin/example_cpp_stereo_calib -w=6 -h=4 -t=chessboard calib_stereo.xml 
.................................................23 pairs have been successfully detected.
Running stereo calibration ...
done with RMS error=0.685277
average epipolar err = 0.298454

@asmorkalov
Copy link
Copy Markdown
Contributor

Found issue in command line. Proper command: ./bin/example_cpp_stereo_calib -w=5 -h=7 -t=charucoboard -s=30 -ms=15 -ad=DICT_5X5_100 calib_stereo.xml

........................................12 pairs have been successfully detected.
Running stereo calibration ...
done with RMS error=0.673323
average epipolar err = 0.268994`

charuco_stereo_calibration

@asmorkalov asmorkalov merged commit bcb49d7 into opencv:4.x May 16, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants