OpenCV(开源计算机视觉库)是一个开源计算机视觉和机器学习软件库。
OpenCV 广泛应用于计算机视觉、机器人、智能交通、医学成像、安全等领域。
Forlinx RK3588 EVK 是一款高性能嵌入式计算机,结合 OpenCV,可进行高效的图像和视频处理以支持应用程序。
如何在 Forlinx RK3588 EVK 上安装OpenCV ?
下载:
https://opencv.org/releases/
下载最新版本4.7.0
![7b1cedd46546521d474d6f5b61391b3d.jpeg](https://i-blog.csdnimg.cn/blog_migrate/906561b67bef8c4f93a2d95d8667d41c.jpeg)
编译源代码
编译流程:
将OpenCV源码包上传到EVK→解压→在OpenCV源码包根目录下新建build文件夹→进入build文件夹→通过CMake命令生成Makefile文件→使用make命令编译并安装OpenCV库。
执行:
sudo cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
编译:
sudo make -j8
不合格项目:
make[1]: *** Waiting for unfinished jobs....
[ 92%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_imgproc_tests_fluid.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [modules/gapi/CMakeFiles/opencv_perf_gapi.dir/build.make:128: modules/gapi/CMakeFiles/opencv_perf_gapi.dir/perf/cpu/gapi_core_perf_tests_fluid.cpp.o] Error 1
[ 92%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/cpu/gapi_ocv_stateful_kernel_tests.cpp.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [modules/gapi/CMakeFiles/opencv_perf_gapi.dir/build.make