paddleocr c++安装时出现的问题

img


paddleocr c++安装时出现的问题paddleocr c++安装时出现的问题

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 CMake Error at D:\OCR\PaddleOCR-release-2.6\PaddleOCR-release-2.6\deploy\cpp_infer\CMakeLists.txt:44 (find_package):
Could not find a package configuration file provided by "OpenCV" with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed. ppocr D:\OCR\PaddleOCR-release-2.6\PaddleOCR-release-2.6\deploy\cpp_infer\CMakeLists.txt 44

直接通过CMake构建呀,不要在vs里构建
在项目目录里打开终端

mkdir build
cd build
cmake ..