A simple script to auto build recent OpenCV + contrib version via npm
npm install opencv-build

A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build opencv4nodejs.
bash
npm install opencv-build
`
Requirements
- cmake
$3
- windows build tools or Visual Studio
` bash
npm install --global windows-build-tools
`
Environment Variables
It's possible to specify build environment variables by inserting them into the package.json where the dependency is declared an object like:
`json
{
"opencv4nodejs": {
"autoBuildFlags": "-DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_PC_FILE_NAME=opencv.pc",
"autoBuildOpencvVersion": "4.1.0"
}
}
``