aruco

ArUco on visual studio 2013

回眸只為那壹抹淺笑 提交于 2019-12-11 17:58:44
问题 opencv2.4.10 was installed on my machine. And it integrates vs2013. Now, I want to create AR app using ArUco and vs2013. I download ArUco 1.2.4 from here. And I create a console application on vs2013. I do below steps : 1.Menu Project ---- $ProjectName Properties Choose Configuration Manager... and add x64 platform At configuration field, choose release configuration 3.1. At Configuration Properties ---- C/C++ ---- Additional Include Directories, ..\aruco_msvc\include 3.2. At Configuration

How to transform a 3D model for Augmented Reality application using OpenCV Viz and ARUCO

笑着哭i 提交于 2019-12-10 10:17:26
问题 I'm developing a simple marker based augmented reality application with OpenCV Viz and ARUCO . I just want to visualize a 3D object (in PLY format) on a marker. I can run marker detection and pose estimation (returning rotation and translation vectors) with ARUCO without a problem. And I can visualize any 3D object (PLY format) and camera frames in Viz window. However, I stuck in using rotation and translation vector outputs from ARUCO to localize 3D model on the marker. I'm creating an

cv2.aruco.detectMarkers doesn't detect markers in python

烂漫一生 提交于 2019-12-10 03:16:31
问题 My camera calibration and distortion matrixes, obtained from aruco_calibration_fromimages.exe : [[3.19439125e+03 0.00000000e+00 1.98509417e+03] [0.00000000e+00 3.20213561e+03 1.55099552e+03] [0.00000000e+00 0.00000000e+00 1.00000000e+00]] [[0.1395281 -0.38313647 0.00505558 0.00237535 0.33952515]] Image, where I try to detect: aruco_simple.exe succeeds But python code fails to find anything: fs = cv2.FileStorage("./calib_asus_chess/cam_calib_asus.yml", cv2.FILE_STORAGE_READ) cam_mat=fs.getNode

Python opencv Aruco “No module named 'cv2.aruco'”

牧云@^-^@ 提交于 2019-12-06 23:47:59
问题 I am running an Ubuntu virtual machine with, Python 3.6.1, Anaconda 4.4.0 (64-bit). I am trying to run the code on this website. When I try to use import cv2.aruco I get: >>> import cv2.aruco Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'cv2.aruco' Is this something I need to install or setup? 回答1: If cv2.aruco is not found, try installing opencv-contrib-python , such as by running the following (for the default Python

How to transform a 3D model for Augmented Reality application using OpenCV Viz and ARUCO

我的梦境 提交于 2019-12-05 19:03:47
I'm developing a simple marker based augmented reality application with OpenCV Viz and ARUCO . I just want to visualize a 3D object (in PLY format) on a marker. I can run marker detection and pose estimation (returning rotation and translation vectors) with ARUCO without a problem. And I can visualize any 3D object (PLY format) and camera frames in Viz window. However, I stuck in using rotation and translation vector outputs from ARUCO to localize 3D model on the marker. I'm creating an affine transformation with rotation and translation vectors and applying it to 3D model. Is it correct? How

Python opencv Aruco “No module named 'cv2.aruco'”

China☆狼群 提交于 2019-12-05 04:40:13
I am running an Ubuntu virtual machine with, Python 3.6.1, Anaconda 4.4.0 (64-bit). I am trying to run the code on this website . When I try to use import cv2.aruco I get: >>> import cv2.aruco Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'cv2.aruco' Is this something I need to install or setup? If cv2.aruco is not found, try installing opencv-contrib-python , such as by running the following (for the default Python installation): pip install opencv-contrib-python Or for a specific Python installation (in this case Python 3) python3

Unstable values in ArUco pose estimation

泪湿孤枕 提交于 2019-12-03 22:57:21
问题 I'm trying to find the orientation of the camera using Aruco marker. Euler angles extracted from the rotation matrix are unstable beyond a certain point. As the distance of the camera increases from the marker, the yaw angle values of camera is just unstable. The "Z" axis on the marker flips. The euler angles are jittery, not the same in every frame and take time to stabilize. How do I obtain some reliable values of the yaw angle and distance between the camera and marker? I am trying to find

Aruco markers with openCv, get the 3d corner coordinates?

蹲街弑〆低调 提交于 2019-11-28 09:33:07
I am detecting a printed Aruco marker using opencv 3.2: aruco::estimatePoseSingleMarkers(corners, markerLength, camMatrix, distCoeffs, rvecs,tvecs); this returns a translation and rotation vector for the marker. What I need, is the 3d coordinates for each corner of the marker. As i know the marker length, i could do something like corner1 = tvecs[0] - markerlength /2; corner2 = tvecs[0] + markerlength /2; .... But is there an better way? Or an existing function? To sum up, I have: a 3d point in the center of a 2d square. the length of the sides of that square. the rotation value of the square.

Aruco markers with openCv, get the 3d corner coordinates?

人走茶凉 提交于 2019-11-27 03:06:04
问题 I am detecting a printed Aruco marker using opencv 3.2: aruco::estimatePoseSingleMarkers(corners, markerLength, camMatrix, distCoeffs, rvecs,tvecs); this returns a translation and rotation vector for the marker. What I need, is the 3d coordinates for each corner of the marker. As i know the marker length, i could do something like corner1 = tvecs[0] - markerlength /2; corner2 = tvecs[0] + markerlength /2; .... But is there an better way? Or an existing function? To sum up, I have: a 3d point