Questions tagged [aruco]

ArUco is a C++ library (based on OpenCV) for detection of squared planar markers. Use this tag for questions about using the library.

ArUco is a library that can detect a variety of markers in images and video. Intended for use with , it is based on and is available for a variety of platforms.

The author maintains a page that includes links to documentation and the download site on SourceForge.

329 questions
39
votes
7 answers

Python opencv Aruco "No module named 'cv2.aruco'"

I am running an Ubuntu virtual machine with, Python 3.6.1, Anaconda 4.4.0 (64-bit). I am trying to run the code on this website. When I try to use import cv2.aruco I get: >>> import cv2.aruco Traceback (most recent call last): File "",…
Maxwell Mullin
  • 509
  • 1
  • 4
  • 10
13
votes
2 answers

What are the advantages / disadvantages between the different predefined ArUco dictionaries?

I want to use ArUco markers to detect objects and use a predefined dictionary. I only need a small amount of different markers. About 10. I am now wondering what the advantages and disadvantages are between the different predefined dictionaries.…
Incanus
  • 389
  • 1
  • 4
  • 16
12
votes
2 answers

Fundamental understanding of tvecs rvecs in OpenCV-ArUco

I want to use ArUco to find the "space coordinates" of a marker. I have problems understanding the tvecs and rvecs. I came so far as to the tvecs are the translation and the rvecs are for rotation. But how are they oriented, in which order are they…
Friedi
  • 145
  • 1
  • 2
  • 6
10
votes
6 answers

how to generate a ChAruco board calibration?

how do I generate a ChAruco board calibration? I tried to find an existing board in Google Search but I couldn't find it. Thanks, Carlos
Carlos Chacon
  • 241
  • 1
  • 4
  • 17
9
votes
3 answers

Aruco markers with openCv, get the 3d corner coordinates?

I am detecting a printed Aruco marker using opencv 3.2: aruco::estimatePoseSingleMarkers(corners, markerLength, camMatrix, distCoeffs, rvecs,tvecs); this returns a translation and rotation vector for the marker. What I need, is the 3d coordinates…
anti
  • 3,011
  • 7
  • 36
  • 86
8
votes
1 answer

cv2.aruco.detectMarkers doesn't detect markers in python

My camera calibration and distortion matrixes, obtained from aruco_calibration_fromimages.exe: [[3.19439125e+03 0.00000000e+00 1.98509417e+03] [0.00000000e+00 3.20213561e+03 1.55099552e+03] [0.00000000e+00 0.00000000e+00 …
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
6
votes
2 answers

AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get'

AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get' even after installing opencv-python opencv-contrib-python import numpy as np import cv2, PIL from cv2 import aruco import matplotlib.pyplot as plt import matplotlib as mpl import…
Harikrishnan M
  • 95
  • 1
  • 1
  • 10
6
votes
3 answers

Aruco OpenCV example, all markers rejected

I am following this example. OpenCV Aruco example with image And following is the code snippet I am using to detect the markers. I am unable to understand why the example is not working for me. import numpy as np import cv2 import cv2.aruco as…
vin
  • 960
  • 2
  • 14
  • 28
6
votes
2 answers

Can I create a transformation matrix from rotation/translation vectors?

I'm trying to deskew an image that has an element of known size. Given this image: I can use aruco:: estimatePoseBoard which returns rotation and translation vectors. Is there a way to use that information to deskew everything that's in the same…
SSteve
  • 10,550
  • 5
  • 46
  • 72
5
votes
3 answers

Display an image over another image at a particular co-ordinates in openCV

I am trying to display an image over another image at a particular co-ordinates. I have detected the aruco markers using the webcam and I want to display another image over the aruco marker. The aruco marker can be moved and the overlaying image…
its-akhr
  • 122
  • 1
  • 1
  • 10
5
votes
1 answer

opencv charuco camera calibration won't undistort properly

I'm in some trouble getting the charuco camera calibration to work. To the best of my knowledge, I do everything right, but the final undistorted images are very much more warped than expected. It does work with a 4x4 board, but then the area that…
Jochemspek
  • 321
  • 2
  • 9
5
votes
1 answer

Calculating the distance and yaw between ArUco marker and camera?

I am trying to calculate the exact( 3 cm error rate is acceptable ) distance between aruco marker and camera. I use python, opencv and aruco. I can detect them ( marker side is 0.023 meters which is 2.3 cm ) but I can't interpret the distance…
aliyasineser
  • 186
  • 3
  • 15
5
votes
2 answers

What is the correct way to average several rotation matrices?

I get many rotation vectors from pose estimation of many frames (while camera is stationary) and I want the most accurate measure. Theoretically Can I average through rotation vector\matrices\other kind of data? or is that wrong? in addition, how…
Alophind
  • 842
  • 2
  • 12
  • 27
5
votes
0 answers

What is the size of the minimum image that ArUco can detect?

I already tried two different size of markers one is 100 pixel equal 3.2cm*3.2cm, and the other is more bigger than that. I mean I can't print much more size of marker to detect. So , I'm wondering what is the size of the minimum image that ArUco…
V.Lee
  • 51
  • 1
  • 6
5
votes
1 answer

aruco::detectMarkers is not finding true edges of markers

I'm using ArUco markers to correct perspective and calculate sizes in an image. In this image I know the exact distance between the outer edges of the markers and am using that to calculate the sizes of the black rectangles. My problem is that…
SSteve
  • 10,550
  • 5
  • 46
  • 72
1
2 3
21 22