Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
653 stars 137 forks source link

Could not find a configuration file for package "OpenCV" that is compatible with requested version "4". #68

Closed AndreyGalitsin closed 3 years ago

AndreyGalitsin commented 3 years ago

I have an error when I build a pose_extractor module:

CMake Error at CMakeLists.txt:16 (find_package): Could not find a configuration file for package "OpenCV" that is compatible with requested version "4".

The following configuration files were considered but not accepted:

/usr/share/OpenCV_/OpenCVConfig.cmake, version: 3.2.0

In my conda env I have open cv with another version

cv2.version '4.5.1'

How can I solve this problem?

Daniil-Osokin commented 3 years ago

Hi, Andrey! You have the error while building C++ library. Conda controls your Python environment, so has no effect on C++ environment. Just update your OpenCV version to a new one.

AndreyGalitsin commented 3 years ago

Yes, I have updated a C++ version of opencv with the following instruction, it has helped! https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html