Package Exports
- opencv-build
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opencv-build) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build opencv4nodejs.
Install
npm install opencv-build
Requirements
- cmake
Windows
- windows build tools or Visual Studio
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:
{
"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