robotpy / robotpy-cscore

Moved to https://github.com/robotpy/mostrobotpy
Other
17 stars 12 forks source link

Fix compilation on Jetson (OpenCV 2) #22

Closed virtuald closed 5 years ago

virtuald commented 6 years ago

I'm pretty sure OpenCV on the Jetson is OpenCV v2, and we don't support that in cscore. We should see how difficult that would be, because there are teams that would use it if it were available.

sparks58 commented 6 years ago

Yes, that is correct. The Jetson comes installed with opencv4tegra which is version 2. Cscore supports version 3, so you'll need to either install version 3 or compile it yourself. Here is a script that'll compile OpenCV for you: http://www.jetsonhacks.com/2017/04/05/build-opencv-nvidia-jetson-tx2/

virtuald commented 6 years ago

I believe the primary issue we have with compiling on a Jetson is that our ndarray <-> mat conversion routines only support OpenCV 3.

However, you're correct, if someone were to install OpenCV 3.x on a Jetson, this package would work fine.

virtuald commented 5 years ago

We're not supporting Python 2 in pynetworktables, and I don't forsee it happening for cscore either unfortunately.