- 安裝cmake 隨後放到環境變數
- 安裝 node.js 11版本以上
- 安裝visual studio
- 安裝visual studio 裡面的C++套件
- 用超級使用者進到cmd (右鍵使用系統管理員使用)
$ npm install windows-build-tools -g
$ npm config set msvs_version 2017
$ npm install node-gyp -g
$ npm install opencv4nodejs //只能在c://user/底下的一層安裝..
- 設置環境變數 新增一個環境變數叫OPENCV_DIR 然後內容寫C:\opencv\build\x64\vc12
- 再去PATH 新增一個 %OPENCV_DIR%\bin
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt install g++
$ sudo apt install build-essential
$ sudo apt install gcc
$ git clone https://github.com/justadudewhohacks/opencv4nodejs.git
cd opencv4nodejs