aruco

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

Solve PnP or Estimate Pose Single Markers: which is better? Question: 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 cv2.aruco.estimatePoseSingleMarker(), …

Total answers: 1

AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get'

AttributeError: module 'cv2.aruco' has no attribute 'Dictionary_get' Question: AttributeError: module ‘cv2.aruco’ has no attribute ‘Dictionary_get’ even after installing opencv-python opencv-contrib-python import numpy as np import cv2, PIL from cv2 import aruco import matplotlib.pyplot as plt import matplotlib as mpl import pandas as pd vid = cv2.VideoCapture(0) while (True): ret, frame = vid.read() #cv2.imshow(‘frame’, frame) if …

Total answers: 2

AttributeError: module 'cv2.aruco' has no attribute 'drawFrameAxes'

AttributeError: module 'cv2.aruco' has no attribute 'drawFrameAxes' Question: I am working with VSCode 1.68.1, Ubuntu 20.04 I am following link (https://programming.vip/docs/3d-pose-estimation-using-aruco-tag-in-python.html) to achieve pose estimation for aruco marker But I am getting below error: aruco.drawFrameAxes(dst1, mtx, dist, rvec[i, :, :], tvec[i, :, :],0.03) AttributeError: module ‘cv2.aruco’ has no attribute ‘drawFrameAxes’ I tried using aruco.drawaxis as …

Total answers: 2

Fundamental understanding of tvecs rvecs in OpenCV-ArUco

Fundamental understanding of tvecs rvecs in OpenCV-ArUco Question: I want to use ArUco to find the "space coordinates" of a marker. I have problems understanding the tvecs and rvecs. I came so far as to the tvecs are the translation and the rvecs are for rotation. But how are they oriented, in which order are …

Total answers: 2