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

OpenCV Code which I try cannot detect some ArUco's

As I learned from tutorial videos, I tried this code: import numpy as np import cv2 ARUCO_DICT = { "DICT_4X4_50": cv2.aruco.DICT_4X4_50, "DICT_4X4_100": cv2.aruco.DICT_4X4_100, } #In fact there are more dictionary keys than written…
0
votes
0 answers

Python CV2 "AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get'. Did you mean: 'Dictionary'?"

I tried to run this code but it gives error. import cv2 arucoDict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_6X6_50) arucoParams = cv2.aruco.DetectorParameters_create() (corners, ids, rejected) = cv2.aruco.detectMarkers("arucoimg.png", arucoDict,…
user20890091
0
votes
0 answers

Is there a way to use opencv's estimatePoseSingleMarkers on NVIDIA GPU?

I am trying to estimate pose of a Aruco Marker using opencv library. But the performance of the above Library is a bit slow since it runs on CPU.Is there a way so that I can run the above Library on GPU? . I tried researching in OpenCV's…
Luffy
  • 1
0
votes
0 answers

Why can't ArUco3Detection find these tags?

I created a custom 4x4 dictionary, and put four of them on a circuit board into the silkscreen. myDict = cv2.aruco.custom_dictionary(4, 4, 1337) I am using cv2.aruco in python, and just calling cv2.aruco.detectMarkers with arguments for image and…
Helpful
  • 702
  • 4
  • 16
0
votes
0 answers

USB webcamera is not working even though ret and frame are returning values

I was working on a project where I need to measure the distance between two markers. cap = cv2.VideoCapture(0) ret, frame = cap.read() **the "ret" = true the frame =. is also giving values. ** But the thing is I am not getting any output. TMI(if…
0
votes
1 answer

Why do we need to convert Rotational vector to Rotational matrix to calculate angle

I am not getting any proper source to understand why we need to change rotational vector to rotational matrix [in the context of calculating angle between two ARUco markers]. We are using rmat = cv2.Rodrigues(rvec) rmat1…
0
votes
1 answer

How can I include aruco library in ros without getting an error in catkin_make

Hello I am trying to use a package that requires the aruco library I downloaded the lib extracted and executed $ cmake $ make $ sudo make install No error so far but when I try to do catkin_make on my ros workspace the following error…
0
votes
0 answers

Detect multiple Aruco boards, python

Is it possible to use multiple aruco boards for pose estimation? I have tried to print out multiple boards with different IDs, but the pose estimation is confused about what target to focus on. I want to use aruco boards because the targets are…
0
votes
0 answers

Yaw angle from aruco are very noised for right angle

Recently, I was working with navigation system based on aruco, I need the most accurate possible value of Z axis from aruco marker. I was built simple measuring system with few aruco marker (type cv2.aruco.DICT_5X5_50) and usb web camera 640x480. I…
0
votes
0 answers

I am new to OpenCV and trying to detect aruco marker from https://chev.me/arucogen/ using android Java

Hi i am new to OpenCV and trying to to detect aruco marker from https://chev.me/arucogen/ but corner.size() always returns 4 if there is only 3 markers in picture. Log.d("testCorner: "," hitted image capture "+image); final…
varsha jeevan
  • 49
  • 1
  • 11
0
votes
1 answer

Aruco , Charuco detection with java and opencv

here is my minimal code : package charucotest; import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.CvType; import org.opencv.core.Scalar; import org.opencv.core.*; import org.opencv.highgui.HighGui; import…
Bussiere
  • 500
  • 13
  • 60
  • 119
0
votes
1 answer

Camera Pose Estimation Accuracy with ArUco Board

I am using ArUco Board to get camera position and attitude. In this case, the marker (ArUco Board) is my reference (origin). But when I rotate camera(drone) around its own axis (around yaw angle), after -10 degree yaw angle, position estimation…
Gkhan
  • 103
  • 1
  • 9
0
votes
1 answer

OpenCV: InterpolateCornersCharuco giving bad estimation when board is partially occluded

I'm experiencing a strange behavior in function cv2.interpolateCornersCharuco especially when the board is partially occluded, see the following picture: Charuco board is an 8x11 board using 5x5 Aruco as dictionary. Somehow, if I run this code: …
0
votes
0 answers

Preferred aruco marker Python

Is it possible to recognize aruco markers in a certain order (or) only recognize single ones? enter image description here enter image description here What I would like to achieve: Recognize the marker via webcam Draw something with polylines…
Shkolo
  • 1
  • 2
0
votes
0 answers

OpenCV ChArUco detection/calibration fails, results in severe warping

I'm trying to make a barrel normalization using a Charuco board as reference for camera calibration. The code worked perfectly, but then it started not to work. The resulting image after applying undistort is not flattened. I tried changing versions…