0

I have some troubles with the Aruco-Detection with opencv and python. General information:

  • OpenCV Version 4.7
  • python version 3.8.10
  • Operating System: Ubuntu 20.04

I started with the basics and realized some errors with the usual functions from several tutorials. First thing is, that almost everybody is using something like arucoDict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_4X4_50). When I use it, I get the following error message:

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

Then I found the following solution which worked for me: https://stackoverflow.com/questions/74964527/attributeerror-module-cv2-aruco-has-no-attribute-dictionary-get

But I'm curious... it is the only thing I found treating this topic and I had some issues with the cv2.aruco.estimatePoseSingleMarkers too, which appear sometimes but not consistently. Has somebody more Information about what changed from OpenCV version 4.6 to 4.7? The official documentation is not very helpful regarding python...

Furthermore my main Question is if this version-aspect is also relevant for the error I get with import cv2.aruco as aruco. Error message is

Import "cv2.aruco" could not be resolvedPylancereportMissingImports

I'm pretty new in the CV-game and a bit unsettled because everybody uses these things with no problems in the tutorials.

Hope that somebody has some thoughts or answers greetings!


MrJ
  • 1

0 Answers0