Socket
Socket
Sign inDemoInstall

opencv4nodejs-prebuilt

Package Overview
Dependencies
72
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.15.0 to 4.15.1-beta2

.DS_Store

9

lib/cv.js
const path = require('path');
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`);
const { resolvePath } = require('./commons');
// ensure binaries are added to path on windows
if (process.platform === 'win32') {
// append opencv binary path to node process
if (!process.env.path.includes(opencvBuild.opencvBinDir)) {
process.env.path = `${process.env.path};${opencvBuild.opencvBinDir};`
}
}
let cv;

@@ -14,0 +5,0 @@ if (process.env.BINDINGS_DEBUG) {

16

lib/libs.js
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`);
const { resolvePath, getLibDir, linkSystemLibs } = require('./commons');
const desiredModules = [
"core",
"imgcodecs",
"imgproc"
];
function linkLibs(libs) {

@@ -23,4 +29,8 @@ libs

// if not windows, link libs dynamically
console.log('-L' + resolvePath(opencvBuild.opencvLibDir));
opencvBuild.opencvModules.forEach(lib => console.log(`-lopencv_${lib}`));
console.log('-Wl,-rpath,' + resolvePath(opencvBuild.opencvLibDir));
console.log(`-L<(PRODUCT_DIR)`);
opencvBuild.opencvModules.filter(lib => desiredModules.includes(lib)).forEach(lib => console.log(`-lopencv_${lib}`));
if (process.env.BINDINGS_DEBUG) {
console.log('-Wl,-rpath,../build/Debug/opencv4nodejs');
} else {
console.log('-Wl,-rpath,../build/Release/opencv4nodejs');
}
{
"name": "opencv4nodejs-prebuilt",
"version": "4.15.0",
"version": "4.15.1-beta2",
"description": "This is a fork of opencv4nodejs which provides pre-built binaries",

@@ -36,10 +36,9 @@ "keywords": [

"scripts": {
"preinstall": "node ./install.js",
"install": "node-gyp rebuild > build.log 2>&1",
"install": "prebuild-install --verbose || (node ./install.js && node-gyp rebuild)",
"configure": "node-gyp configure",
"build": "node-gyp configure build",
"rebuild": "node-gyp rebuild",
"build": "node ./install.js && node-gyp configure build",
"rebuild": "node ./install.js && node-gyp rebuild",
"clean": "node-gyp clean",
"prebuild": "prebuild",
"build-debug": "node-gyp rebuild --debug"
"prebuild": "node ./install.js && prebuild",
"build-debug": "node ./install.js && node-gyp rebuild --debug"
},

@@ -59,3 +58,3 @@ "gypfile": true,

},
"opencv": "3.4.6-local"
"opencv": "3.4.6-patch"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc