Install
``` bash
npm install opencv-build
```
Requirements
- cmake
Windows
- windows build tools or Visual Studio
Environment Variables
It's possible to specify build environment variables by inserting them into thepackage.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"
}
}
```
The following environment variables can be passed:
- autoBuildBuildCuda
- autoBuildFlags
- autoBuildOpencvVersion
- autoBuildWithoutContrib
- disableAutoBuild
- opencvIncludeDir
- opencvLibDir
- opencvBinDir