OpenCV source code for i.MX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OpenCV source code for i.MX

Jump to solution
2,466 Views
Kazuma_Sasaki
Senior Contributor I

I am trying setup of OpenCV cross-compile environment for i.MX8X family.

Linux BSP is getting source code from opencv-imx repository instead of original repository.

What is difference between opencv-imx and original one?

Do you have any documents for opencv-imx?

GitHub - opencv/opencv: Open Source Computer Vision Library 

opencv-imx - i.MX OpenCV 

Best Regards,
Kazuma Sasaki.

0 Kudos
Reply
1 Solution
2,349 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Kazuma,

The OpenCV is optimized for machine learning in the eIQ of the i.MX family and the documentation is the same. For example you can see the The Linux User Guide, in your yocto documents.

Regards

View solution in original post

0 Kudos
Reply
2 Replies
2,350 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Kazuma,

The OpenCV is optimized for machine learning in the eIQ of the i.MX family and the documentation is the same. For example you can see the The Linux User Guide, in your yocto documents.

Regards

0 Kudos
Reply
2,348 Views
Kazuma_Sasaki
Senior Contributor I

Hi Bio,

Thank you for your answer. The context for my question is the build procedure between opencv-imx and original opencv seemed different, so I wanted to know any helpful information. In conclusion, I have done cross compile by following steps.

Build PC : Ubuntu 14.04

Linux BSP : 4.14.98_2.0.0_ga

Target SoC : i.MX8QXP

1. OpenCV

$ sudo apt-get install gcc-arm-linux-gnueabi

$ sudo apt-get install gcc-arm-linux-gnueabihf

$ sudo apt-get install g++-arm-linux-gnueabi

$ sudo apt-get install g++-arm-linux-gnueabihf

$ git clone https://github.com/opencv/opencv.git -b 4.0.1 opencv-git-4.0.1

$ cd opencv-git-4.0.1

$ mkdir build

$ cd build

$ cmake -DSOFTFP=ON -DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../

$ make

2.OpenCV-iMX

$ source <imx toolchain path>/environment-setup-aarch64-poky-linux

$ cd <Linux BSP yocto build dir>/tmp/work/aarch64-mx8-poky-linux/opencv/4.0.1.imx+gitAUTOINC+c3d56b9aea_2522124473_32e315a5b1_34e4206aef_fccf7cd6a4_d29d003e00-r0/build

$ cmake ../git/ -GNinja

$ ninja

Best Regards,

Kazuma Sasaki.

0 Kudos
Reply