This is an old revision of the document!
ArUco marker detection
Aruco markers are squares with bit patterns which can easily be detected and their orientation can always be determined due to their non-symmetric pattern. These markers can be generated here.
Detection with OpenCV
The repository in the following link implements detection of aruco markers in opencv with a realsense camera, the authors are Pontus Rosqvist, Josefin Gustafsson, Markus Nagy and Martin Lyrå. This script can take the following command line arguments:
Argument Name | Description |
---|---|
-d | Specify if the depth image should be used. True or False. |
-p | Specify where the camera parameters are saved, if left empty the camera parameters are loaded from the camera. |
-pause | Specify where the aruco markers and their size is saved. |
The aruco marker ids and their size should be specified in a text file of the following form:
id: size, length 10: 7, 10 23: 7, 20 34: 7, 12.2
The first line is ignored so it should only contain the header “id: size, length” which tells you how the data is parsed. All lines after that are parsed where the number to the left of the colon is an aruco marker id which is associated with the length in millimeters which is the second number to the right of the colon. The first number to the right of the colon specifies the width of the aruco marker in pixels.