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
0
votes
1 answer

Reading cv2.aruco.Dictionary from a yaml file issue

I am able to write the cv2.aruco.Dictionary data to a YAML file on disk. But im unable to recreate this object using this yaml file. Currently im writing the aruco dictionary to disk like this. aruco_dict =…
colyton
  • 53
  • 6
0
votes
0 answers

ArUco marker coordinates relative to another in opencv python

Here is my problem : I have got a camera over a scene (the camera is not in a perpendicular way with the plan which is formed by the ArUco), composed of a fixed ArUco which is supposed to be the origin of our world system coordinates. I have a robot…
leC
  • 1
0
votes
0 answers

How to get world position of detected Aruco markers with openCv?

I am detecting Aruco code with: rvec, tvec = aruco.estimatePoseSingleMarkers(corners, markersize, cam_mat, dist_coef) what I get are rvec, tvec that are relative to the camera position. Also i can easily get Word position of detected camera…
chvister
  • 1
  • 2
0
votes
1 answer

OpenCV Apriltag detection only detects a few markers

I'm using OpenCV's Aruco module in Python to detect my AprilTag calibration board. The problem is that only very few markers get detected, despite a rather good input image. From everything I tried, it seems that the AprilTag implementation is very…
Enceladus
  • 3
  • 3
0
votes
1 answer

Solve PnP or Estimate Pose Single Markers: which is better?

I need a program to estimate the pose of an ArUco marker, and, as far as I know, I can code it with two different functions: cv2.solvePnp() or cv2.aruco.estimatePoseSingleMarker(). Which one is better? I read about them, and it seems easier to use…
Matheus
  • 3
  • 2
0
votes
0 answers

Relative Postion and Orientation of Aruco Marker with another Aruco Marker

I have 2 Aruco Markers (10mm x 10mm). I want to get the position and orientation of Marker B w.r.t to Marker A, so Marker A will be taken as origin. I have rotated Marker B 45° clockwise along z axis. Markers Left One is Marker A and Right is Marker…
AqibF
  • 13
  • 4
0
votes
0 answers

how to merge multiple images into one according to an offset in each image using python?

in my case i want to join this two images 1st input image 2nd input image to get one image after I detect aruco code (id and the 4 corners)of each image and I get the difference between the same aruco code i can merge image with this code when i…
0
votes
0 answers

Errors wirh OpenCVs import cv2.aruco as aruco and cv2.aruco.Dictionary_get

I have some troubles with the Aruco-Detection with opencv and python. General information: OpenCV Version 4.7 python version 3.8.10 Operating System: Ubuntu 20.04 I started with the basics and realized some errors with the usual functions from…
MrJ
  • 1
0
votes
0 answers

Distance between two aruco markers changes at different angles

I'm trying to write a program to find the distance between two aruco markers and the distance seems to be about right when the markers are located to the left and right of the camera frame, but when they are located at the top and bottom of the…
Ben
  • 23
  • 3
0
votes
0 answers

Aruco based localization with opencv

I want to determine the position of the aruсo marker relative to the camera in the real world. Aruco marker is located on a 2x3 meter field. It is raised relative to the field by some distance. There is a camera on the side of the field. It is…
Ret7020
  • 101
  • 1
  • 3
0
votes
0 answers

Hi, I have problem with distance estimation with 2 aruco markers

I'm trying to estimate distance between two aruco markers with standard euclidean norm. I calibrate camera, with 9x6 chessboard with each square of length 25mm. Markers have size of 10cm. Then program detects 2 markers, calculates tVecs and rVecs of…
Kos2
  • 1
0
votes
0 answers

Aruco Markers Failing to detect - is the image too blurry?

I am trying to use OpenCV to detect an Aruco marker in the image below, specifically the one on clearly visible on the headphones. It has been working earlier, but it seems to have a hard time detecting it for most locations. It is clearly in view.…
Mason Wang
  • 165
  • 1
  • 9
0
votes
1 answer

I am not understanding the reason for this error 'cameraMatrix' is an invalid keyword argument for detectMarkers()

Full error is: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'detectMarkers' > Overload resolution failed: > - 'cameraMatrix' is an invalid keyword argument for detectMarkers() My camera calibration code works fine (to my understanding)…
0
votes
0 answers

Aruco Marker Generating Visual studio 2019 vc16

I am trying to generate aruco marker using Visual Studio vc16 and opencv 4.70 lib with opencv_contrib.4. After building the libraries, i tried to run a short simple program for generating aruco marker and I got an error that I added after code. the…
0
votes
1 answer

OpenCV Aruco Marker

I am trying to generate Arcuo Marker and Detect the marker in Visual Studio 2019 vc16, I am using OpenCV version 4.7 and i am using a already written code of generating Arcuo marker, in the code they have aruco.hpp header file but in the new version…