Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AleksandrPanov
Copy link
Contributor

@AleksandrPanov AleksandrPanov commented Oct 2, 2023

throw a warning message if the separators in the aruco/charuco boards are too small (less than 0.7 pin of ArUco marker):

import cv2 as cv

boardSize = (5, 5)
dict = cv.aruco.getPredefinedDictionary(cv.aruco.DICT_4X4_50)

charucoBoard = cv.aruco.CharucoBoard(boardSize, 100., 85., dict)
arucoBoard = cv.aruco.GridBoard(boardSize, 100., 10., dict)
[ WARN:[email protected]] global aruco_board.cpp:555 cv::aruco::CharucoBoard::CharucoBoard marker separation:7.5 is less than 0.7 pin of ArUco marker:9.91667, too small separators can degrade the quality of detection, increase squareLength or decrease markerLength

[ WARN:[email protected]] global aruco_board.cpp:258 cv::aruco::GridBoard::GridBoard marker separation:10 is less than 0.7 pin of ArUco marker:11.6667, too small separators can degrade the quality of detection, increase markerSeparation or decrease markerLength
python gen_pattern.py -o charuco_board.svg --rows 7 --columns 5 -T charuco_board --square_size 30 --marker_size 26 -f DICT_5X5_100.json.gz
marker separation:2.0 is less than 0.7 pin of ArUco marker:2.6, too small separators can degrade the quality of detection, increase square_size or decrease marker_size

image

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 force-pushed the aruco_check_board_separation branch from 6b1bffd to e5b114e Compare October 3, 2023 06:18
Copy link
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asmorkalov asmorkalov self-assigned this Oct 3, 2023
@asmorkalov asmorkalov added this to the 4.9.0 milestone Oct 3, 2023
@asmorkalov asmorkalov merged commit 4e60392 into opencv:4.x Oct 3, 2023
@asmorkalov asmorkalov mentioned this pull request Oct 17, 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