使用vcpkg安装opencv-contrib

这里写自定义目录标题

使用vcpkg安装opencv-contrib

今天写代码的时候发现电脑上没有安装opencv-contrib,下意识输入vcpkg install opencv-contrib:x64-windows后发现不存在这个路径。
提示:
Error: while loading opencv-contrib:
The port directory (C:\src\vcpkg\ports\opencv-contrib) does not exist
Error: failed to load port from C:\src\vcpkg\ports\opencv-contrib
note: updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.

解决方法

输入vcpkg install opencv[contrib]:x64-windows --recurse完成安装。

猜你喜欢

转载自blog.csdn.net/getalong/article/details/127446832