How to Install Aruco Tag in Roborio?

Hi there,

Sorry I’m still a noob but I’ve been trying to install aruco form opencv package on roborio but still cannot.
To install aruco, I have to first install opencv-contrib-python package but everytime I tried to install it, it showed me the error

Could not find a version that satisfies the requirement opencv-contrib-python (from versions: )
No matching distribution found for opencv-contrib-python

I have not been able to fix this. Does anyone know how I can fix this/download aruco to run on roborio?

Thank you!!

The opencv-python and opencv-python-contrib packages on pypi don’t have compiled versions that work on the RoboRIO.

The RobotPy project distributes an OpenCV 3.4.5 package for roborio. It does not include the contrib libraries. If you want the contrib libraries, you would need to compile it yourself.

Do you know a way I can do that by myself? Or if there is a separate Aruco package for python? I found one but it is in C++ https://sourceforge.net/projects/aruco/

[answered this on gitter, but posting here for the benefit of any other CD users interested in this topic]

It’s not hard if you’re familiar with compiling software, but if that isn’t the case it’ll probably be quite difficult. The contents of the https://github.com/robotpy/roborio-opencv repository builds the normal OpenCV stuff for python; you would need to modify the build script to download/build the -contrib library in addition to the normal library. Additionally, if the particular contrib module you’re interested in has a binary dependency of some kind, you would need to build that also. It’s probably not terrible, but it would be a lot of work.