opencv4nodejs
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -31,7 +31,7 @@ const fs = require('fs'); | ||
const defaultDir = '/usr/local'; | ||
const opencvDir = process.env.OPENCV_DIR; | ||
let includeDir = process.env.OPENCV_INCLUDE_DIR; | ||
const opencvDir = resolvePath(process.env.OPENCV_DIR); | ||
let includeDir = resolvePath(process.env.OPENCV_INCLUDE_DIR); | ||
const libSuffix = process.platform === 'win32' ? '.lib' : '.so'; | ||
let libDir = process.env.OPENCV_LIB_DIR; | ||
let libDir = resolvePath(process.env.OPENCV_LIB_DIR); | ||
@@ -38,0 +38,0 @@ if (!includeDir) { |
{ | ||
"name": "opencv4nodejs", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Transparent OpenCV API for nodejs.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,5 +8,11 @@ opencv4nodejs | ||
* **[Examples](#examples)** | ||
* **[How to install](#how-to-install)** | ||
* **[Usage with Electron](#usage-with-electron)** | ||
* **[API documentation](#doc)** | ||
<a name="examples"></a> | ||
## Examples | ||
See examples folder for implementation. | ||
See <a href="https://github.com/justadudewhohacks/opencv4nodejs/tree/master/examples"><b>examples</b></a> for implementation. | ||
@@ -37,2 +43,3 @@ ### Face Detection | ||
<a name="how-to-install"></a> | ||
## How to install | ||
@@ -50,2 +57,3 @@ | ||
<a name="usage-with-electron"></a> | ||
## Usage with Electron | ||
@@ -73,2 +81,3 @@ | ||
<a name="doc"></a> | ||
## Documentation | ||
@@ -162,3 +171,3 @@ | ||
// get a node buffer with raw Mat data | ||
const matAsArray = matBGR.getData(); | ||
const matAsBuffer = matBGR.getData(); | ||
@@ -165,0 +174,0 @@ // get entire Mat data as JS array |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9978563
289