Encountered: “Could Not Find a Package Configuration File Provided by “OpenCV”” When Building Demos Using OpenVINO™ 2022
Content Type: Error Messages | Article ID: 000093494 | Last Reviewed: 05/30/2023
source build_demos.sh
Could not find a package configuration file provided by OpenCV* with any of the following names:
OpenCVConfig.cmake
opencv-config.cmake
For Linux OS:
Run the following command to install OpenCV* from default Ubuntu* repositories:
sudo apt update
sudo apt install libopencv-dev python3-opencv
For Windows OS:
set "OpenCV_DIR=<OpenCV_Installation_Dir>\opencv\build"
Refer Install prebuilt OpenCV* for additional information.