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
1
vote
0 answers

OpenCV - How do I generate distortion coefficients and camera matrix for cv2.aruco.calibrateCameraCharucoExtended()

How do I generate distortion coefficients and camera matrix for cv2.aruco.calibrateCameraCharucoExtended()? I am calibrating camera using opencv-python 4.6 in built the cv2.aruco.calibrateCameraCharucoExtended(). I try to initialize the distortion…
I2I3
  • 31
  • 3
1
vote
1 answer

Unable to detect aruco using python

I am working with Aruco in python, and am able to generate a single aruco marker using aruco.drawMarker function but when I am trying to detect the same, I am unable to do so. The markerCorners list is empty and I am getting two rejected candidates.…
Rishi
  • 28
  • 1
  • 6
1
vote
0 answers

OpenCvSharp - Unexpected output from EstimatePoseSingleMarkers()

I am detecting a aruco marker with OpenCvSharp in this image: For the first part I followed this example which detects the marker succesfully. Mat src = new Mat("./aruco_test_4.png", ImreadModes.Color); Mat gray =…
Malinko
  • 124
  • 11
1
vote
2 answers

Non-overlapping multi-camera calibration using Hand Eye Calibration

Multi-camera calibration with overlapping views is straightforward. However, I want to calibrate a multi-camera rig without overlapping views, which is back-to-back. I looked at some resources and found that opencv's hand-eye calibration seems to…
1
vote
2 answers

Why are higher resolution Aruco tags less reliable?

I have observed that images of Aruco tags a very high resolution (compared to tag size) are actually less-reliably detected than average resolution. I would have expected too-low resolution to be a problem, with no degradation. Not a camera problem,…
1
vote
1 answer

detecting ArUco markers difference between openCV versions

I have gotten someone else's code from at least a year ago, I don't have any information about which version of OpenCv they used, I am guessing maybe OpenCV 3. I am using OpenCV 4 and I need to "translate" their code to OpenCV 4. Let's start…
1
vote
2 answers

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

I am working with VSCode 1.68.1, Ubuntu 20.04 I am following link (https://programming.vip/docs/3d-pose-estimation-using-aruco-tag-in-python.html) to achieve pose estimation for aruco marker But I am getting below error: aruco.drawFrameAxes(dst1,…
Manpreet
  • 43
  • 1
  • 6
1
vote
0 answers

How can I increase FPS when detecting aruco markers?

When I using aruco markers, I am getting very low fps(10~15). Firstly I showed the FPS info, marker position, marker attitude, camera position and camera attitude on the detection screen. With this way, I get ~10 FPS. Then I removed all texts except…
Gkhan
  • 103
  • 1
  • 9
1
vote
0 answers

Improve the consistency of aruco pose

What is the best way to improve the consistency of the pose estimation of an aruco marker. Even when the camera and marker are stationary I am getting a lot of variation in my reading for the rotation about the y axis. I have moved from a 6x6 marker…
1
vote
1 answer

Module 'cv2.cv2' has no attribute 'aruco'

My Python script uses aruco library in opencv-contrib-python to detect ArUco code in the image. It has worked well for nearly one year, but suddenly start to pop this error in last week. Traceback (most recent call last): File…
NeilZgx
  • 11
  • 2
1
vote
1 answer

ArUco markers, why does the pose change when I change image resolution?

I use this reference https://automaticaddison.com/how-to-perform-pose-estimation-using-an-aruco-marker/ to estimate pose of a marker. When I obtain cam matrix and distortion matrix I used the full camera resolution. However, when I change the…
1
vote
0 answers

Get position relative to tag ignoring X&Z axis rotation

For a drone application I'm trying to get the drone position in the tag frame reference, but ignoring the X & Z axis rotation. The tag is positionned vertically, and I want to ignore rotation of Z and X axis The goal is get the drone position that…
1
vote
1 answer

cv2.stereoCalibrate throws assertion failed

I'm using opencv-contrib-python (4.5.4.60) to calibrate stereovision emulated by 2 pictures taken with one camera (for now I only have one of them) like there are two cameras for stereo depth estimation in future. I find intrinsic parameters of…
1
vote
3 answers

Problem with type Point3f in function cv2.calibrateCamera PYTHON

Goodmorning everyone! I am struggling with the opencv function calibrateCamera where I retrieve the following error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\calibration.cpp:3350: error: (-210:Unsupported format or…
Matt
  • 31
  • 6
1
vote
1 answer

Python OpenCV Aruco: Import "cv2.aruco" could not be resolved

import cv2.aruco as aruco is not importing. I've searched online and it said to pip uninstall opencv-python and then pip uninstall opencv-contrib-python, pip install opencv-contrib-python the pip list results in: the pip list looks…
Henry Swan
  • 11
  • 4