opencv 3.1 supports on the mx6q board

Document created by Joan Xie Employee on Aug 25, 2017
Version 1Show Document
  • View in full screen mode

OpenCV (Open Source Computer Vision Library) is released under a BSD license and hence it’s free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Enabled with OpenCL, it can take advantage of the hardware acceleration of the underlying heterogeneous compute platform

In current bsp , which supports opencv 2.4, but some customer wants to use the opencv 3.1, then one can use the morty yocto bsp to install the opencv.

step 1:
for how to install the package on ubuntu and how to build the environment, pls refer to the bsp user guide, for how to build the branch morty, try to use the command as below:
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build_qt5 -e fb

step 2:
for how to enable the opencv, pls add the command as below in the local.conf, the path is fsl-release-bsp/build/conf,
"CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"
CORE_IMAGE_EXTRA_INSTALL += "opencv-apps opencv-dev python-opencv python-modules""

then build again by bitbake.
then you can find the image in the fsl-release-bsp/build/tmp/deploy/images/im6qsabresd/, one can find the opencv libary when extracting the rootfs file

step 3:
then you can use dd command or mfgtool downloading the image file to the board and use the opencv libary file.

other usage:
one can install the populate_sdk to build the source code, for opencv 3.1, maybe you will find some g++ issue to fix, so just simple introduce this

use the command: bitbake -c populate_sdk fsl-image-gui(for example)
 then you can find the sdk install file in the fsl-release-bsp/build_x11/tmp/deploy/sdk, run the install file, set the installation file in the /opt/poky, then you can find the toolchain in the /opt/poky after install successfully.

2 people found this helpful

Attachments

    Outcomes