Python 3 cv2 Has No Attribute Aruco

Osiyo. Dohiju? ᎣᏏᏲ. ᏙᎯᏧ? Hey, welcome back.

I don’t use Aruco in my work. I haven’t had a need for Hiro or Aruco markers. However, I was testing some code and came across this error:

AttributeError: module ‘cv2.cv2’ has no attribute ‘aruco’

Sometimes my pip installs get munged when I install other packages. So I uninstalled and reinstalled the following:

pip3 uninstall opencv-python
pip3 uninstall opencv-contrib-python
pip3 install opencv-contrib-python

Until next time. Dodadagohvi. ᏙᏓᏓᎪᎲᎢ.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.