aruco

OpenCV aruco, Z-axis doesn't draw properly

▼魔方 西西 提交于 2021-02-08 10:44:50
问题 I have a problem with function drawAxis in aruco module. Z axis flip and general aren't at 90 degrees (X and Y works fine). The problem is illustrated by the screen: flip axis I tried changed camera, detect another markers and do many recalibration (i tried different configuration of photos, between 15 and 100) When I printed vector of rotation (rvec) I noticed that angle 0 and 1 (x, y?) had small fluctuation, but angle 2 (z?) are in general constant: rvec print Where could be a problem? If X

How to get the camera rotation? (Aruco Library)

我是研究僧i 提交于 2021-02-05 10:41:10
问题 I've been trying to understand the output of the aruco_test.cpp program that is included when you download the Aruco Library. The output has this format: 22=(236.87,86.4296) (422.581,78.3856) (418.21,228.032) (261.347,228.529) Txyz=0.00813142 -0.0148134 0.140595 Rxyz=-2.14032 0.0777095 0.138929 22 is the unique identifier of the marker, the next four pairs of numbers are the four corners of the marker. My problem here is the two vectors Tvec and Rvec. I've been reading on the Internet that

Aruco tutorial code does not compile

你。 提交于 2021-01-28 21:07:55
问题 Hello I am getting an error when using aruco. I am just trying to get an example from the tutorial working. I did everything according to the tutorial but I get: /home/pi/Programs/markerDetection/markerDetection.cpp: In function ‘int main(int, char**)’: /home/pi/Programs/markerDetection/markerDetection.cpp:26:104: error: invalid initialization of reference of type ‘cv::Ptr<cv::aruco::Dictionary>&’ from expression of type ‘cv::aruco::Dictionary’ aruco::detectMarkers(inputImage, dictionary,

Understanding openCV aruco marker detection/pose estimation in detail: subpixel accuracy

浪子不回头ぞ 提交于 2021-01-05 06:51:30
问题 I am currently studying openCV's 'aruco' module, especially focusing on the poseEstimation of ArUco markers and AprilTags. Looking into the subpixel accuracy, I have encountered a strange behaviour, which is demonstrated by the code below: If I do provide a 'perfect' calibration (e. g. cx/cy equals image center and distortion is set to zero) and a 'perfect' marker with known edge length, cv.detectMarkers will only yield the correct value, if the rotation is at 0/90/180 or 270 degrees. The

Understanding openCV aruco marker detection/pose estimation in detail: subpixel accuracy

自作多情 提交于 2021-01-05 06:50:35
问题 I am currently studying openCV's 'aruco' module, especially focusing on the poseEstimation of ArUco markers and AprilTags. Looking into the subpixel accuracy, I have encountered a strange behaviour, which is demonstrated by the code below: If I do provide a 'perfect' calibration (e. g. cx/cy equals image center and distortion is set to zero) and a 'perfect' marker with known edge length, cv.detectMarkers will only yield the correct value, if the rotation is at 0/90/180 or 270 degrees. The

Aruco Marker Tracking With Multiple Markers From the Same Dictionary

孤者浪人 提交于 2020-04-11 08:53:06
问题 I'm using ChAruCo marker tracking from OpenCV Contrib . I'd like to track multiple boards, but the mechanism to create the marker boards is not as I would expect. What I picture is having one dictionary (Say, DICT_4X4_50) to create many markers using distinct ID ranges from the dictionary. CharucoBoard::create() accepts the dictionary and uses markers 0-X to create the board. I'd like to add an offset to the beginning of the range. If I can create the boards, cv::aruco::detectMarkers()

Setting up AruCo for Android Studio

本秂侑毒 提交于 2019-12-22 16:40:53
问题 I'm planing to create a simple Android App, that can detect markers and their relative position to each other. The basic App is running and the only thing that is missing is the actual marker detection. During my Internet research i found OpenCV for Android is able to just that. And further the Aruco library will provide an easier coding to programm the detection. But that is where i struggle. Even after a long time spent searching the web for clues, I can't find out how to get Aruco working

cmake error - cannot find opencv libraries or headers

有些话、适合烂在心里 提交于 2019-12-12 02:08:06
问题 I've set the opencv environment variable and updated the path but I'm still getting an error when I try to make the opencv aruco library with cmake gui on windows - the error says "OpenCV required but some headers or libs not found. Please specify OpenCV directory using OpenCV_DIR env. variable" I've looked at the FindOpenCV.cmake file where the error is coming from, but I can't tell what part is causing an error and was wondering if anyone else has had similar problems or knows how to fix it