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

Using board_create for aruco markers leads to error due to objPoints not in the correct type

I am trying to reverse engineer an aruco board from detecting it in an image. I made a snippet to reproduce the same problem when creating the GridBoard and then trying to use create_Board on the detected corners and ids on the created image. #…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
1
vote
0 answers

Why does Charuco Board detection sometimes fail spectacularly?

I am trying to find the positions of multiple monitors in 3d space. For that purpose I display charuco boards and take a short video of the whole setup. Sample frame here (cropped down from 4k to preserve privacy): Code is taken verbatim from the…
fho
  • 6,787
  • 26
  • 71
1
vote
0 answers

Need help defining 5x5 custom aruco dictionary with border width of 2

I'm attempting to do ar marker detection in Python. I got my algorithm to work based on the predefined dictionaries in aruco. However, the markers I really need to detect have a border width of 2 instead of 1. I was wondering what the easiest method…
B. Daigh
  • 11
  • 2
1
vote
1 answer

Draw image around Aruco marker

I'm trying to build a simple Augmented Reality application using OpenCV 4.1.1 and Aruco. The goal is to overlay an image on top of a marker but have the image go beyond the edges of the marker. I have calibrated my camera and gotten the camera…
momentuuum
  • 23
  • 5
1
vote
0 answers

How to transform camera pose between ArUco markers?

I'm creating a university project with OpenCV Python and ArUco markers, where I would like to get a (relatively) robust pose estimation for the movement of the camera. I plan on using this for indoor drone flight graphing. For this, I have to…
Szepy
  • 11
  • 2
1
vote
0 answers

How to improve precision of object pose estimation solvePnP with two cameras?

Currently, I am using two cameras to estimate the pose of an object (CharucoBoard). I have tried solvePnP to get the pose of the CharucoBoard using one camera. However, there is still a linear trend of the back-front translation axis. Therefore, I…
1
vote
1 answer

Assertion failed CV_Assert( CV_IS_MAT(objectPoints) && CV_IS_MAT(imagePoints) && CV_IS_MAT(A) && CV_IS_MAT(rvec) && CV_IS_MAT(tvec) )

I've calibrated a camera and obtained 0.17 reprojection error, the file is saved as camera.yml. Then, I imported this file to my aruco detection algorithm and when I run this algorithm, everything starts out fine until an aruco marker is detected,…
csg
  • 8,096
  • 3
  • 14
  • 38
1
vote
0 answers

How to calibrate captured images(stills) from a camera using Open CV?

Recently I have captured some images of my Charuco board. Different angles and reflection of the shots were also captured. However i have been only using the calibrate Charuco cpp to do some test calibrations for my intrinsics and extrinsics…
1
vote
0 answers

How to eliminate blinded from detection of Aruco marker

I have an app that detect an aruco marker (original dictionary) in ios using open cv wrapper. i have a problem when i am trying to detect markers in outside conditions, like shadow on the aruco or blinded from the sun. -(void) detect:(UIImage…
B.k
  • 117
  • 1
  • 10
1
vote
2 answers

Detecting real objects in a room from an AR app (WebXR)

Let's imagine a real painting gallery, where visitors can use their phone browser near the paintings in order to see (via AR) some information about that painting. How can I do that with WebXR? Probably hardcoding the GPS location of each painting…
user411103
1
vote
1 answer

EXEC_BAD_ACCESS w/ OpenCV `cv::aruco::detectMarkers()` on IOS

opencv: 4.1.0 (w/ 'contrib' extensions) swift: 5 IOS: 12.2 I am trying to run opencv's method cv::aruco::detectMarkers on every frame from an iphone camera. This works but after a minute or so it crashes with the error: Thread 8: EXC_BAD_ACCESS…
Chandler
  • 1,019
  • 14
  • 23
1
vote
1 answer

Aruco Marker detect a single marker

I have a program for aruco markers to detect, I would like to use 1 marker his pose for a calculation from a camera image with multiple aruco IDs. I have a board with aruco id 256, 257, 258 The problem is that when aruco id 256 is seen it will…
1
vote
0 answers

Make Cylinder in VR using Aruco Markers in OpenCV

I am trying to make a cylinder in Virtual Reality using Aruco Markers. I have made cube easily as there were just 8 points to be ploted and converted to proper frame. But in the case of a cylinder, its base is a circle which has no corners. Am I…
Piyush Chauhan
  • 797
  • 1
  • 7
  • 20
1
vote
1 answer

How to make 3d cylinder/cube on ArUco marker?

I'm working on a small project in which I have to detect aruco marker from the image then make 3d cylinder or cube covering all white boxes. In below code their is a detect_marker() function in which I have to return Aruco_list which I don't know…
deadend
  • 105
  • 1
  • 1
  • 8
1
vote
2 answers

error: (-215:Assertion failed) id < bytesList.rows in function 'drawMarker'

this is the code to generate 4 aruco marker with the given id and save it into the same folder .this is the error when i run the same function for generating multiple aruco marker import numpy import cv2 import cv2.aruco as aruco i=1 def…
mighty
  • 13
  • 6