OpenCV source code for i.MX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

OpenCV source code for i.MX

跳至解决方案
3,136 次查看
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 项奖励
回复
1 解答
3,019 次查看
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 项奖励
回复
2 回复数
3,020 次查看
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 项奖励
回复
3,018 次查看
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 项奖励
回复