0

I am writing a simple application (or at least so I thought) which is meant to utilize ArUco markers to detect a difference in height between two objects. However, during my tutorial hunt, I realized that previously used command:

cv2.aruco 

is no longer working (at least on my laptop). I have just spent 4 hours trying to find a solution on the web and can't. I would greatly appreciate someone who could point to the right place in the documentation.

Let me just say, I KNOW the ArUco module was integrated with "objdetect" module but the documentation there still uses the "cv2.aruco" syntax which doesn't work for me. I am referring to this webpage

As I mentioned before I looked into the documentation but couldn't find anything.

  • Does this answer your question? [Python opencv Aruco "No module named 'cv2.aruco'"](https://stackoverflow.com/questions/45972357/python-opencv-aruco-no-module-named-cv2-aruco) (found by Googling for “python opencv aruco module”, this was the top hit). – Cris Luengo Apr 28 '23 at 00:24

1 Answers1

0
pip install --upgrade opencv-contrib-python

then

pip install opencv-python

The following will work:

from cv2 import aruco
Toyo
  • 667
  • 1
  • 5
  • 22