New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

opencv-build

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencv-build - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

build/env.js

@@ -107,3 +107,3 @@ "use strict";

if (opencvLibDir) {
process.env.OPENCV_LIB_DIR = opencvIncludeDir;
process.env.OPENCV_LIB_DIR = opencvLibDir;
}

@@ -110,0 +110,0 @@ if (opencvBinDir) {

{
"name": "opencv-build",
"version": "0.1.6",
"version": "0.1.7",
"description": "A simple script to auto build recent OpenCV + contrib version via npm",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -7,3 +7,4 @@ [![Build Status](https://travis-ci.org/justadudewhohacks/npm-opencv-build.svg?branch=master)](http://travis-ci.org/justadudewhohacks/npm-opencv-build)

# Install
```
``` bash
npm install opencv-build

@@ -13,5 +14,7 @@ ```

## Requirements
- cmake
### Windows
- windows build tools or Visual Studio

@@ -23,4 +26,6 @@

## Custom flags
It's possible to specify custom flags to build process inserting on the `package.json` where the dependency is declared an object like:
## 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

@@ -30,6 +35,17 @@ {

"opencv4nodejs": {
"autoBuildFlags": "-DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_PC_FILE_NAME=opencv.pc"
"autoBuildFlags": "-DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_PC_FILE_NAME=opencv.pc",
"autoBuildOpenCVVersion": 4.1.0
}
}
```
these flags will be used during building in the same way as described [here](https://github.com/justadudewhohacks/opencv4nodejs#auto-build-flags).
The following environment variables can be passed:
- autoBuildBuildCuda
- autoBuildFlags
- autoBuildOpenCVVersion
- autoBuildWithoutContrib
- disableAutoBuild
- opencvIncludeDir
- opencvLibDir
- opencvBinDir

@@ -127,3 +127,3 @@ import * as fs from 'fs';

if (opencvLibDir) {
process.env.OPENCV_LIB_DIR = opencvIncludeDir
process.env.OPENCV_LIB_DIR = opencvLibDir
}

@@ -130,0 +130,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc