opencv/modules/objdetect/src
Alexander Panov 472eba324a
Merge pull request #25673 from AleksandrPanov:fix_charuco_board_markers
fixed marker generation in charuco board #25673

When generating  Charuco board markers in `generateImage()`, a problem occurs as in https://github.com/opencv/opencv/issues/24806, https://github.com/opencv/opencv/pull/24873:

In low resolution:
![charucoImg_before_fix2](https://github.com/opencv/opencv/assets/22337800/aab7b443-2d2a-4287-b869-708ac5976ea5)
In medium resolution:
![charucoImg_before_fix](https://github.com/opencv/opencv/assets/22337800/8c21ae42-d9c8-4cb5-9fcc-7814dfc07b80)

This PR fixed this problems:
![charucoImg_after_fix2](https://github.com/opencv/opencv/assets/22337800/93256dbb-8544-46eb-be78-844234e42ca9)
![charucoImg_after_fix](https://github.com/opencv/opencv/assets/22337800/f4d6794e-bee9-4ce4-8f9b-67a40800cbe5)

The test checks the inner and outer borders of the Aruco markers. In the outer border of Aruco marker, all pixels should be white. In the inner border of Aruco marker, all pixels should be black.
![image](https://github.com/opencv/opencv/assets/22337800/010a9c64-e03c-4239-9ac9-2cda9170793b)


### 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
- [x] 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
2024-05-31 17:03:24 +03:00
..
aruco Merge pull request #25673 from AleksandrPanov:fix_charuco_board_markers 2024-05-31 17:03:24 +03:00
barcode_decoder Fixed barcode to be built without DNN 2023-06-16 15:12:49 +03:00
barcode_detector Merge pull request #24903 from cristidbr-adapta:feature-barcode-detector-parameters 2024-05-20 09:53:22 +03:00
opencl fix test failure on ODROID-N2 2020-04-28 21:46:31 +09:00
barcode.cpp Merge pull request #24903 from cristidbr-adapta:feature-barcode-detector-parameters 2024-05-20 09:53:22 +03:00
cascadedetect_convert.cpp backport: checks and fixes from static code analyzers results 2020-09-02 19:05:47 +00:00
cascadedetect.cpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-12-03 12:32:49 +00:00
cascadedetect.hpp Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2019-07-25 19:21:47 +00:00
detection_based_tracker.cpp Merge pull request #21107 from take1014:remove_assert_21038 2021-11-27 18:34:52 +00:00
face_detect.cpp Merge pull request #25091 from Dhanwanth1803:scoreThresh 2024-02-27 12:10:52 +03:00
face_recognize.cpp Merge pull request #23109 from seanm:misc-warnings 2023-10-06 13:33:21 +03:00
graphical_code_detector_impl.hpp Merge pull request #24548 from dkurt:qrcode_struct_append_decode 2024-02-01 16:15:14 +03:00
graphical_code_detector.cpp added graphicalCodeDetector, remove QRCodeDetectorBase 2023-06-08 14:50:58 +03:00
hog.cpp Clean up the Universal Intrinsic API. 2023-10-13 19:23:30 +08:00
main.cpp IPPInitSingelton was added to contain IPP related global variables; 2015-10-01 09:58:48 +03:00
precomp.hpp Merge pull request #23736 from seanm:c++11-simplifications 2024-01-19 16:53:08 +03:00
qrcode_encoder_table.inl.hpp Merge pull request #24299 from dkurt:qrcode_decode 2023-11-24 11:35:36 +03:00
qrcode_encoder.cpp Merge pull request #24548 from dkurt:qrcode_struct_append_decode 2024-02-01 16:15:14 +03:00
qrcode.cpp Resolve valgrind issue at QRCode detector 2024-04-03 16:58:46 +03:00