Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0.2 to 0.0.3

7

constants.js
const path = require('path')
const os = require('os');
const { isWin } = require('./install/utils')

@@ -14,2 +16,4 @@

const numberOfCoresAvailable = os.cpus().length
const opencvModules = [

@@ -46,3 +50,4 @@ 'core',

opencvBinDir,
opencvModules
opencvModules,
numberOfCoresAvailable
}

12

install/setup-opencv.js

@@ -10,3 +10,4 @@ const { exec, spawn, isWin } = require('./utils')

opencvBuild,
opencvLocalLib
opencvLocalLib,
numberOfCoresAvailable
} = require('../constants')

@@ -41,5 +42,5 @@

}
return () => spawn('make', ['install'], { cwd: opencvBuild })
return () => spawn('make', ['install', `-j${numberOfCoresAvailable}`], { cwd: opencvBuild })
// revert the strange archiving of libopencv.so going on with make install
.then(() => spawn('make', ['all'], { cwd: opencvBuild }))
.then(() => spawn('make', ['all', `-j${numberOfCoresAvailable}`], { cwd: opencvBuild }))
}

@@ -64,7 +65,8 @@

`-DCMAKE_INSTALL_PREFIX=${opencvBuild}`,
'-DCMAKE_BUILD_TYPE=Release ',
'-DCMAKE_BUILD_TYPE=Release',
`-DOPENCV_EXTRA_MODULES_PATH=${opencvContribModules}`,
'-DBUILD_EXAMPLES=OFF',
'-DBUILD_TESTS=OFF',
'-DBUILD_PERF_TESTS=OFF'
'-DBUILD_PERF_TESTS=OFF',
'-DBUILD_opencv_apps=OFF'
]

@@ -71,0 +73,0 @@ }

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

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

@@ -0,1 +1,4 @@

[![Build Status](https://travis-ci.org/justadudewhohacks/npm-opencv-build.svg?branch=master)](http://travis-ci.org/justadudewhohacks/npm-opencv-build)
[![Build status](https://ci.appveyor.com/api/projects/status/uv8n2sruno95rxtq/branch/master?svg=true)](https://ci.appveyor.com/project/justadudewhohacks/npm-opencv-build/branch/master)
A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build <a href="https://github.com/justadudewhohacks/opencv4nodejs"><b>opencv4nodejs</b></a>.

@@ -2,0 +5,0 @@

Sorry, the diff of this file is not supported yet

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