系统相关
首页 > 系统相关> > opencv4nodejs windows 安装 install

opencv4nodejs windows 安装 install

作者:互联网

管理员模式
npm install --global windows-build-tools

下载opencv 解压到一个文件夹(如:D:\opencv)
https://github.com/opencv/opencv/releases/

设置环境变量
OPENCV_INCLUDE_DIR
OPENCV_LIB_DIR
OPENCV_BIN_DIR
path加入%OPENCV_BIN_DIR%

# linux and osx:
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
# on windows:
set OPENCV4NODEJS_DISABLE_AUTOBUILD=1

npm install --global opencv4nodejs

标签:opencv4nodejs,opencv,windows,global,OPENCV,install,DIR
来源: https://www.cnblogs.com/liukaigsx/p/14631789.html