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 installingopencv-contrib-python
, such as by running the following (for the default Python installation):Or for a specific Python installation (in this case Python 3)
Then try re-running the script trying to access
cv2.aruco
.