Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

nut-tree/npm-opencv-build

 
 

Repository files navigation

Build Status Build status

A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build opencv4nodejs-prebuilt.

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.1"
  }
}

The following environment variables can be passed:

  • autoBuildBuildCuda
  • autoBuildFlags
  • autoBuildOpencvVersion
  • autoBuildWithoutContrib
  • disableAutoBuild
  • opencvIncludeDir
  • opencvLibDir
  • opencvBinDir

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.4%
  • TypeScript 30.0%
  • C# 10.8%
  • Shell 0.8%