Me again - I have found that the opencv 3.3.1 package that comes with jetpack 3.2 has no cv2.so module, which means I can’t run it from python script - is this expected? To obtain cv2.so, should I install opencv 3 from source? Thank you.
I will ping this in case it got lost over the new years weekend, thx
Or is the opencv that comes pre-installed just supposed to be the c package? Screw it, will just go install the python version.
I cannot tell much about python, I’m mainly using the C++ API, but :
- it looks that the JetPack-3.2-DP build of opencv has been built for python2.7 ([url]JetPack 3.2 — L4T R28.2 Developer Preview for Jetson TX2 - Jetson TX2 - NVIDIA Developer Forums). If you’re using python3, it may not work.
- anyway, this version also lacks cuda support, and gstreamer support (for using onboard camera).
So you may get opencv-3.3.1 sources and compile your own version with right options. You can check [url]https://jkjung-avt.github.io/opencv3-on-tx2/[/url].
[EDIT: Note that you won’t have to remove opencv4tegra (this was a 2.4 based version on previous L4T versions). If you keep CMAKE_INSTALL_PREFIX set to /usr, make install should install in place (you might also clean before by hand /usr/include/opencv* and /usr/lib/lib_opencv*).]
Thanks for the reply - yes for me it did not work, but what did work (or has so far) is jkjung’s build just like you suggested. Thanks both! Would’ve been nice if Nvidia had been more up front about how light their pre-install of opencv was, would have saved me a lot of time, but hey, now I know what to expect.