OpenCV Install on Apalis TK1

Hello,

I am trying to install Python3 and OpenCV 2 with Tegra support on my Apalis TK1 system running the L4T image that is provided via Easy Installer.

I have verified that Python3 is installed, and I have also installed version 6.5 of the Cuda Toolkit. However, when I run the cmake command for OpenCV, I do not see any reference to it detecting and validating Cuda support is enabled.

The cmake command I run is:

cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_CUDA=ON
-D ENABLE_FAST_MATH=1
-D CUDA_FAST_MATH=1
-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-6.5
-D WITH_CUBLAS=1
-D INSTALL_PYTHON_EXAMPLES=ON
-D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib-3.1.0/modules
-D BUILD_EXAMPLES=ON …

The results I get back are:

– GUI:
– QT: NO
– GTK+ 2.x: YES (ver 2.24.23)
– GThread : YES (ver 2.40.2)
– GtkGlExt: NO
– OpenGL support: NO
– VTK support: NO

– Media I/O:
– ZLib: /usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8)
– JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so (ver )
– WEBP: build (ver 0.3.1)
– PNG: /usr/lib/arm-linux-gnueabihf/libpng.so (ver 1.2.50)
– TIFF: /usr/lib/arm-linux-gnueabihf/libtiff.so (ver 42 - 4.0.3)
– JPEG 2000: /usr/lib/arm-linux-gnueabihf/libjasper.so (ver 1.900.1)
– OpenEXR: build (ver 1.7.1)
– GDAL: NO

– Video I/O:
– DC1394 1.x: NO
– DC1394 2.x: NO
– FFMPEG: YES
– codec: YES (ver 54.35.1)
– format: YES (ver 54.20.4)
– util: YES (ver 52.3.0)
– swscale: YES (ver 2.1.1)
– resample: NO
– gentoo-style: YES
– GStreamer: NO
– OpenNI: NO
– OpenNI PrimeSensor Modules: NO
– OpenNI2: NO
– PvAPI: NO
– GigEVisionSDK: NO
– UniCap: NO
– UniCap ucil: NO
– V4L/V4L2: Using libv4l1 (ver 1.0.1) / libv4l2 (ver 1.0.1)
– XIMEA: NO
– Xine: NO
– gPhoto2: NO

– Parallel framework: pthreads

– Other third-party libraries:
– Use IPP: NO
– Use VA: NO
– Use Intel VA-API/OpenCL: NO
– Use Eigen: YES (ver 3.2.0)
– Use Cuda: NO
– Use OpenCL: YES
– Use custom HAL: NO

– OpenCL:
– Version: dynamic
– Include path: /home/ubuntu/opencv-3.1.0/3rdparty/include/opencl/1.2
– Use AMDFFT: NO
– Use AMDBLAS: NO

– Python 2:
– Interpreter: /usr/bin/python2.7 (ver 2.7.6)
– Libraries: NO
– numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)
– packages path: lib/python2.7/dist-packages

– Python 3:
– Interpreter: /usr/bin/python3.4 (ver 3.4.3)
– Libraries: NO
– numpy: /usr/lib/python3/dist-packages/numpy/core/include (ver 1.8.2)
– packages path: lib/python3.4/dist-packages

– Python (for build): /usr/bin/python2.7

– Java:
– ant: NO
– JNI: NO
– Java wrappers: NO
– Java tests: NO

– Matlab: Matlab not found or implicitly disabled

– Documentation:
– Doxygen: NO
– PlantUML: NO

– Tests and samples:
– Tests: YES
– Performance tests: YES
– C/C++ Examples: YES

– Install path: /usr/local

– cvconfig.h is in: /home/ubuntu/opencv-3.1.0/build

Could anyone please advise as to what I may be doing wrong.

Many thanks in advance.

HI @tk1hrsusr

Could you provide the version of the hardware and software of your module?

How did you install python 3 and OpenCV2? What is your application?

Hi @jaski.tx - thanks for the response.

I am working on the Apalis TK1 board (v1.2), using the Ixora carrierer board and running the L4T standard build that comes with the Easy Installer.

I also installed the Cuda toolkit version 6.5

I am using the following guide to install Open CV: Compiling OpenCV with CUDA support - PyImageSearch

Thanks for the Information. We will look into it and come back soon to you.

And why exactly would you not just use the OpenCV and Python versions that come pre-installed with JetPack?

ubuntu@tegra-ubuntu:~$ dpkg --list | grep -i opencv
ii  libopencv4tegra                                       2.4.13                                              armhf        Tegra optimized Open Computer Vision Library
ii  libopencv4tegra-dev                                   2.4.13                                              armhf        Development files for Tegra optimized Open Source Computer Vision Library
ii  libopencv4tegra-python                                2.4.13                                              armhf        Python bindings for Tegra optimized Open Source Computer Vision Library
ii  libopencv4tegra-repo                                  2.4.13                                              armhf        Repository with Tegra optimized Open Source Computer Vision Library
ubuntu@tegra-ubuntu:~$ python3 --version
Python 3.4.3