-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix aruco tutorials #3396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix aruco tutorials #3396
Conversation
modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_detection/aruco_detection.markdown
Outdated
Show resolved
Hide resolved
Please replace original paper reference with doxygen site:
|
modules/aruco/tutorials/aruco_detection/aruco_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_detection/aruco_detection.markdown
Outdated
Show resolved
Hide resolved
if accurate corners are not necessary. Possible values are `CORNER_REFINE_NONE`, `CORNER_REFINE_SUBPIX`, `CORNER_REFINE_CONTOUR`, and `CORNER_REFINE_APRILTAG`. | ||
This parameter determines whether the corner subpixel process is performed or not and which method to use | ||
if it is being performed. It can be disabled if accurate corners are not necessary. Possible values are | ||
`CORNER_REFINE_NONE`, `CORNER_REFINE_SUBPIX`, `CORNER_REFINE_CONTOUR`, and `CORNER_REFINE_APRILTAG`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use #
before enum keys. Doxygen adds links to known ids.
modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_detection/aruco_detection.markdown
Outdated
Show resolved
Hide resolved
modules/aruco/tutorials/aruco_detection/aruco_detection.markdown
Outdated
Show resolved
Hide resolved
@@ -160,19 +167,10 @@ int main(int argc, char *argv[]) { | |||
// detect markers and estimate pose | |||
detector.detectMarkers(image, corners, ids, rejected); | |||
|
|||
int nMarkers = corners.size(); | |||
int nMarkers = (int)corners.size(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's more efficient to define size_t nMarkers
. And use size_t i
.
cv::Vec3d rvec, tvec; | ||
|
||
// If at least one marker detected | ||
if(markerIds.size() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(!markerIds.empty())
modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown
Outdated
Show resolved
Hide resolved
1b43214
to
22d0e71
Compare
Fix code snippets and some text in Aruco tutorial.
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.