cv.detectMarkers - MATLAB File Help
cv.detectMarkers

Basic ArUco marker detection

[corners, ids] = cv.detectMarkers(img, dictionary)
[corners, ids, rejectedImgPoints] = cv.detectMarkers(img, dictionary)
[...] = cv.detectMarkers(..., 'OptionName',optionValue, ...)

Input

Output

Options

Inputs for Predefined Dictionary

Inputs for Custom Dictionary

Inputs for Manual Dictionary

The cv.detectMarkers function performs marker detection in the input image. Only markers included in the specific dictionary are searched. For each detected marker, it returns the 2D position of its corner in the image and its corresponding identifier. Note that this function does not perform pose estimation.

ArUco Marker Detection

This module is dedicated to square fiducial markers (also known as Augmented Reality Markers). These markers are useful for easy, fast and robust camera pose estimation.

The main functionalities are:

The implementation is based on the ArUco Library [2] by [1].

This module has been originally developed by Sergio Garrido-Jurado as a project for Google Summer of Code 2015 (GSoC 15).

ArUco

ArUco markers are easy to detect pattern grids that yield up to 1024 different patterns. They were built for augmented reality and later used for camera calibration. Since the grid uniquely orients the square, the detection algorithm can determing the pose of the grid.

ChArUco

ArUco markers were improved by interspersing them inside a checkerboard called ChArUco. Checkerboard corner intersectionsa provide more stable corners because the edge location bias on one square is countered by the opposite edge orientation in the connecting square. By interspersing ArUco markers inside the checkerboard, each checkerboard corner gets a label which enables it to be used in complex calibration or pose scenarios where you cannot see all the corners of the checkerboard.

The smallest ChArUco board is 5 checkers and 4 markers called a "Diamond Marker".

References

[1]:

S. Garrido-Jurado, R. Munoz-Salinas, F. J. Madrid-Cuevas, and M. J. Marin-Jimenez. 2014. "Automatic generation and detection of highly reliable fiducial markers under occlusion". Pattern Recogn. 47, 6 (June 2014), 2280-2292. DOI=10.1016/j.patcog.2014.01.005

[2]:

ArUco: a minimal library for Augmented Reality applications based on OpenCV, ArUco

See also