opencv 环境变量

 

添加变量变量 OpenCV_DIR,D:\OpenCV\Build\x64\vc10

1. 以管理员身份运行命令控制符。

2. 输入以下指令

setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc10     (suggested for Visual Studio 2010 - 32 bit Windows)

setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc10     (suggested for Visual Studio 2010 - 64 bit Windows)
setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc11     (suggested for Visual Studio 2012 - 32 bit Windows)
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc11     (suggested for Visual Studio 2012 - 64 bit Windows)

 

有的是配置到bin目录

opencv 环境变量_第1张图片

你可能感兴趣的:(opencv基础)