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

@u4/opencv4nodejs

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@u4/opencv4nodejs - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

bin/install.js

20

install/compileLib.js

@@ -90,2 +90,3 @@ "use strict";

let dryRun = false;
let JOBS = 'max';
const parsed = (0, mri_1.default)(args);

@@ -106,2 +107,9 @@ if (parsed.help || parsed.h || !args.includes('build')) {

options.disableAutoBuild = true;
// https://github.com/justadudewhohacks/opencv4nodejs/issues/826
// https://github.com/justadudewhohacks/opencv4nodejs/pull/827
// https://github.com/justadudewhohacks/opencv4nodejs/pull/824
if (parsed.jobs)
JOBS = parsed.jobs;
if (parsed.j)
JOBS = parsed.j;
dryRun = parsed.dryrun || parsed['dry-run'];

@@ -142,3 +150,7 @@ // Version = '3.4.16'; // failed

process.env['OPENCV4NODEJS_LIBRARIES'] = OPENCV4NODEJS_LIBRARIES;
const flags = process.env.BINDINGS_DEBUG ? '--jobs max --debug' : '--jobs max';
let flags = '';
if (process.env.BINDINGS_DEBUG)
flags += ' --debug';
// process.env.JOBS=JOBS;
flags += ` --jobs ${JOBS}`;
// const arch = 'x86_64'

@@ -151,3 +163,3 @@ // const arch = 'x64'

if (fs_1.default.existsSync(hidenGyp)) {
fs_1.default.renameSync(hidenGyp, realGyp);
fs_1.default.copyFileSync(hidenGyp, realGyp);
}

@@ -173,6 +185,6 @@ }

console.log(`error: `, error);
npmlog_1.default.error('install', `install.ts Done and return ${error.name} ${error.message} Return code: ${error.code}`);
npmlog_1.default.error('install', `install.ts failed and return ${error.name} ${error.message} return code: ${error.code}`);
}
else {
npmlog_1.default.info('install', 'install.ts Done With no Error');
npmlog_1.default.info('install', 'install.ts complet with no error');
}

@@ -179,0 +191,0 @@ });

26

install/compileLib.ts

@@ -1,2 +0,2 @@

import { OpencvModule, OpenCVBuilder, OpenCVBuildEnv, isWin } from '@u4/opencv-build'
import { OpencvModule, OpenCVBuilder, OpenCVBuildEnv, isWin, OpenCVBuildEnvParams } from '@u4/opencv-build'
import child_process from 'child_process'

@@ -8,3 +8,2 @@ import fs from 'fs'

import mri from 'mri';
import { OpenCVParamBuildOptions } from '@u4/opencv-build/build/BuildEnv'
import path from 'path'

@@ -93,2 +92,3 @@

let dryRun = false;
let JOBS = 'max';
const parsed = mri(args);

@@ -101,3 +101,3 @@

const options: OpenCVParamBuildOptions = {
const options: OpenCVBuildEnvParams = {
autoBuildOpencvVersion: parsed.version,

@@ -109,3 +109,7 @@ autoBuildFlags: parsed.flags

if (parsed.nobuild) options.disableAutoBuild = true;
// https://github.com/justadudewhohacks/opencv4nodejs/issues/826
// https://github.com/justadudewhohacks/opencv4nodejs/pull/827
// https://github.com/justadudewhohacks/opencv4nodejs/pull/824
if (parsed.jobs) JOBS = parsed.jobs;
if (parsed.j) JOBS = parsed.j;
dryRun = parsed.dryrun || parsed['dry-run'];

@@ -146,6 +150,10 @@

process.env['OPENCV4NODEJS_LIBRARIES'] = OPENCV4NODEJS_LIBRARIES;
const flags = process.env.BINDINGS_DEBUG ? '--jobs max --debug' : '--jobs max'
let flags = '';
if (process.env.BINDINGS_DEBUG)
flags += ' --debug';
// process.env.JOBS=JOBS;
flags += ` --jobs ${JOBS}`;
// const arch = 'x86_64'
// const arch = 'x64'
const cwd = path.join(__dirname, '..');

@@ -156,3 +164,3 @@ {

if (fs.existsSync(hidenGyp)) {
fs.renameSync(hidenGyp, realGyp);
fs.copyFileSync(hidenGyp, realGyp);
}

@@ -180,5 +188,5 @@ }

console.log(`error: `, error);
log.error('install', `install.ts Done and return ${error.name} ${error.message} Return code: ${error.code}`);
log.error('install', `install.ts failed and return ${error.name} ${error.message} return code: ${error.code}`);
} else {
log.info('install', 'install.ts Done With no Error');
log.info('install', 'install.ts complet with no error');
}

@@ -185,0 +193,0 @@ })

import { OpenCVBuilder } from '@u4/opencv-build';
import { OpenCVParamBuildOptions } from '@u4/opencv-build/build/BuildEnv';
import { OpenCVBuildEnvParams } from '@u4/opencv-build';
import fs from 'fs';

@@ -12,3 +12,3 @@ import path from 'path';

function getOpenCV(opt?: OpenCVParamBuildOptions): typeof openCV {
function getOpenCV(opt?: OpenCVBuildEnvParams): typeof openCV {
if (!opt)

@@ -15,0 +15,0 @@ opt = { prebuild: 'latestBuild' }

@@ -5,4 +5,2 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.cv = void 0;
const promisify_1 = __importDefault(require("./promisify"));

@@ -31,3 +29,9 @@ const src_1 = __importDefault(require("./src"));

}
exports.cv = loadOpenCV({ prebuild: 'latestBuild' });
exports.default = exports.cv;
const cv = loadOpenCV({ prebuild: 'latestBuild' });
const defExport = { cv };
// duplucate all export for retrocompatibility
for (const key in cv) {
defExport[key] = cv[key];
}
defExport['cv'] = cv;
module.exports = defExport;

@@ -1,2 +0,2 @@

import { OpenCVParamBuildOptions } from '@u4/opencv-build/build/BuildEnv';
import { OpenCVBuildEnvParams } from '@u4/opencv-build';
import promisify from './promisify';

@@ -7,3 +7,3 @@ import extendWithJsSources from './src';

function loadOpenCV(opt?: OpenCVParamBuildOptions): typeof openCV {
function loadOpenCV(opt?: OpenCVBuildEnvParams): typeof openCV {
//const isElectronWebpack =

@@ -23,4 +23,4 @@ // // assume module required by webpack if no system path inv envs

}
// promisify async methods
let cvObj = promisify(cvBase);

@@ -32,3 +32,10 @@ cvObj = extendWithJsSources(cvObj);

export const cv = loadOpenCV({ prebuild: 'latestBuild' });
export default cv;
const cv = loadOpenCV({ prebuild: 'latestBuild' });
const defExport = { cv };
// duplucate all export for retrocompatibility
for (const key in cv) {
defExport[key] = cv[key];
}
defExport['cv'] = cv;
export = defExport;
{
"name": "@u4/opencv4nodejs",
"version": "6.0.1",
"version": "6.0.2",
"description": "Asynchronous OpenCV 3.x nodejs bindings with JavaScript and TypeScript API.",

@@ -32,3 +32,3 @@ "keywords": [

"bin": {
"build-opencv": "./install/install.js"
"build-opencv": "bin/install.js"
},

@@ -40,11 +40,11 @@ "homepage": "https://github.com/UrielCh/opencv4nodejs#readme",

"prepack": "tsc",
"install_3.4.6": "tsc && node ./install/install.js --version 3.4.6 build",
"install_3.4.7": "tsc && node ./install/install.js --version 3.4.7 build",
"install_3.4.8": "tsc && node ./install/install.js --version 3.4.8 build",
"install_3.4.9": "tsc && node ./install/install.js --version 3.4.9 --flags=-DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi build",
"install_3.4.9_cuda": "tsc && node ./install/install.js --version 3.4.9 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON\" build",
"install_3.4.10_cuda": "tsc && node ./install/install.js --version 3.4.10 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON -DCUDA_FAST_MATH=ON -DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi\" build",
"install_3.4.11_cuda": "tsc && node ./install/install.js --version 3.4.11 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON -DCUDA_FAST_MATH=ON -DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi\" build",
"install_3_4_6": "tsc && node bin/install.js --version 3.4.6 build",
"install_3_4_7": "tsc && node bin/install.js --version 3.4.7 build",
"install_3_4_8": "tsc && node bin/install.js --version 3.4.8 build",
"install_3_4_9": "tsc && node bin/install.js --version 3.4.9 --flags=-DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi build",
"install_3_4_9_cuda": "tsc && node bin/install.js --version 3.4.9 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON\" build",
"install_3_4_10_cuda": "tsc && node bin/install.js --version 3.4.10 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON -DCUDA_FAST_MATH=ON -DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi\" build",
"install_3_4_11_cuda": "tsc && node bin/install.js --version 3.4.11 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON -DCUDA_FAST_MATH=ON -DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi\" build",
"samples": "tsc && node ./examples/templateMatching.js && node ./examples/applyColorMap.js && node ./examples/asyncMatchFeatures.js && node ./examples/faceDetect/asyncFaceDetection.js",
"do-install": "tsc && node ./install/install.js",
"do-install": "tsc && node bin/install.js",
"do-configure": "node-gyp configure",

@@ -56,6 +56,6 @@ "do-build": "node-gyp configure build --jobs max",

"cleanjs": "rimraf {install,lib,examples}/**/*.{d.ts,js,map}",
"build-debug": "BINDINGS_DEBUG=true node ./install/install.js"
"build-debug": "BINDINGS_DEBUG=true node bin/install.js"
},
"dependencies": {
"@u4/opencv-build": "^0.3.7",
"@u4/opencv-build": "^0.3.9",
"mri": "^1.2.0",

@@ -68,11 +68,11 @@ "nan": "^2.15.0",

"optionalDependencies": {
"@types/node": ">10"
"@types/node": ">=17"
},
"devDependencies": {
"@types/mri": "^1.1.1",
"@types/node": "^16.4.10",
"@types/node": "^17.0.5",
"@types/npmlog": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"eslint": "^8.5.0",
"eslint": "^8.6.0",
"eslint-config-airbnb": "^19.0.4",

@@ -85,2 +85,3 @@ "rimraf": "^3.0.2"

"lib",
"bin",
"typings",

@@ -87,0 +88,0 @@ "_binding.gyp"

# @u4/opencv4nodejs
=============
[![NPM Version](https://img.shields.io/npm/v/@u4/opencv4nodejs.svg?style=flat)](https://www.npmjs.org/package/@u4/opencv4nodejs)

@@ -25,13 +25,13 @@ ## Fork changes

**The ultimate goal of this project is to provide a comprehensive collection of nodejs bindings to the API of OpenCV and the OpenCV-contrib modules. To get an overview of the currently implemented bindings, have a look at the [type declarations](https://github.com/urielch/opencv4nodejs/tree/master/typings) of this package. Furthermore, contribution is highly appreciated. If you want to add missing bindings check out the <a href="https://github.com/urielch/opencv4nodejs/tree/master/CONTRIBUTING.md"><b>contribution guide</b>.**
**The ultimate goal of this project is to provide a comprehensive collection of nodejs bindings to the API of OpenCV and the OpenCV-contrib modules. To get an overview of the currently implemented bindings, have a look at the [type declarations](https://github.com/urielch/opencv4nodejs/tree/master/typings) of this package. Furthermore, contribution is highly appreciated. If you want to add missing bindings check out the [contribution guide](https://github.com/urielch/opencv4nodejs/tree/master/CONTRIBUTING.md).**
* **[Examples](#examples)**
* **[How to install](#how-to-install)**
* **[Usage with Docker](#usage-with-docker)**
* **[Usage with Electron](#usage-with-electron)**
* **[Usage with NW.js](#usage-with-nwjs)**
* **[Quick Start](#quick-start)**
* **[Async API](#async-api)**
* **[With TypeScript](#with-typescript)**
* **[External Memory Tracking (v4.0.0)](#external-mem-tracking)**
- **[Examples](#examples)**
- **[How to install](#how-to-install)**
- **[Usage with Docker](#usage-with-docker)**
- **[Usage with Electron](#usage-with-electron)**
- **[Usage with NW.js](#usage-with-nwjs)**
- **[Quick Start](#quick-start)**
- **[Async API](#async-api)**
- **[With TypeScript](#with-typescript)**
- **[External Memory Tracking (v4.0.0)](#external-mem-tracking)**
<a name="examples"></a>

@@ -41,3 +41,3 @@

See <a href="https://github.com/urielch/opencv4nodejs/tree/master/examples"><b>examples</b></a> for implementation.
See [examples](https://github.com/UrielCh/opencv4nodejs/tree/master/examples) for implementation.

@@ -51,3 +51,3 @@ ### Face Detection

Check out <a href="https://medium.com/@muehler.v/node-js-opencv-for-face-recognition-37fa7cb860e8"><b>Node.js + OpenCV for Face Recognition</b></a>.
Check out [Node.js + OpenCV for Face Recognition](https://medium.com/@muehler.v/node-js-opencv-for-face-recognition-37fa7cb860e8)</b></a>.

@@ -60,5 +60,5 @@ ![facerec](https://user-images.githubusercontent.com/31125521/35453007-eac9d516-02c8-11e8-9c4d-a77c01ae1f77.jpg)

### Face Recognition with <a href="https://github.com/justadudewhohacks/face-recognition.js"><b>face-recognition.js</b></a>
### Face Recognition with [face-recognition.js](https://github.com/justadudewhohacks/face-recognition.js)
Check out <a href="https://medium.com/@muehler.v/node-js-face-recognition-js-simple-and-robust-face-recognition-using-deep-learning-ea5ba8e852"><b>Node.js + face-recognition.js : Simple and Robust Face Recognition using Deep Learning</b></a>.
Check out [Node.js + face-recognition.js : Simple and Robust Face Recognition using Deep Learning](https://medium.com/@muehler.v/node-js-face-recognition-js-simple-and-robust-face-recognition-using-deep-learning-ea5ba8e852).

@@ -68,9 +68,11 @@ [![IMAGE ALT TEXT](https://user-images.githubusercontent.com/31125521/35453884-055f3bde-02cc-11e8-8fa6-945f320652c3.jpg)](https://www.youtube.com/watch?v=ArcFHpX-usQ "Nodejs Face Recognition using face-recognition.js and opencv4nodejs")

### Hand Gesture Recognition
Check out <a href="https://medium.com/@muehler.v/simple-hand-gesture-recognition-using-opencv-and-javascript-eb3d6ced28a0"><b>Simple Hand Gesture Recognition using OpenCV and JavaScript</b></a>.
Check out [Simple Hand Gesture Recognition using OpenCV and JavaScript](https://medium.com/@muehler.v/simple-hand-gesture-recognition-using-opencv-and-javascript-eb3d6ced28a0).
![gesture-rec_sm](https://user-images.githubusercontent.com/31125521/30052864-41bd5680-9227-11e7-8a62-6205f3d99d5c.gif)
### Object Recognition with Deep Neural Networks
Check out <a href="https://medium.com/@muehler.v/node-js-meets-opencvs-deep-neural-networks-fun-with-tensorflow-and-caffe-ff8d52a0f072"><b>Node.js meets OpenCV’s Deep Neural Networks — Fun with Tensorflow and Caffe</b></a>.
Check out [Node.js meets OpenCV’s Deep Neural Networks — Fun with Tensorflow and Caffe](https://medium.com/@muehler.v/node-js-meets-opencvs-deep-neural-networks-fun-with-tensorflow-and-caffe-ff8d52a0f072).
#### Tensorflow Inception

@@ -82,3 +84,2 @@

#### Single Shot Multibox Detector with COCO

@@ -90,4 +91,5 @@

### Machine Learning
Check out <a href="https://medium.com/@muehler.v/machine-learning-with-opencv-and-javascript-part-1-recognizing-handwritten-letters-using-hog-and-88719b70efaa"><b>Machine Learning with OpenCV and JavaScript: Recognizing Handwritten Letters using HOG and SVM</b></a>.
Check out [Machine Learning with OpenCV and JavaScript: Recognizing Handwritten Letters using HOG and SVM](https://medium.com/@muehler.v/machine-learning-with-opencv-and-javascript-part-1-recognizing-handwritten-letters-using-hog-and-88719b70efaa).
![resulttable](https://user-images.githubusercontent.com/31125521/30635645-5a466ea8-9df3-11e7-8498-527e1293c4fa.png)

@@ -109,3 +111,3 @@

### Boiler plate for combination of opencv4nodejs, express and websockets.
### Boiler plate for combination of opencv4nodejs, express and websockets

@@ -116,3 +118,3 @@ [opencv4nodejs-express-websockets](https://github.com/Mudassir-23/opencv4nodejs-express-websockets) - Boilerplate express app for getting started on opencv with nodejs and to live stream the video through websockets.

Check out <a href="https://medium.com/softway-blog/automating-lights-with-computer-vision-nodejs-fb9b614b75b2"><b>Automating lights with Computer Vision & NodeJS</b></a>.
Check out [Automating lights with Computer Vision & NodeJS](https://medium.com/softway-blog/automating-lights-with-computer-vision-nodejs-fb9b614b75b2).

@@ -123,3 +125,3 @@ ![user-presence](https://user-images.githubusercontent.com/34403479/70385871-8d62e680-19b7-11ea-855c-3b2febfdbd72.png)

# How to install
## How to install

@@ -153,3 +155,3 @@ ``` bash

You can install any of the OpenCV 3 or OpenCV 4 <a href="https://github.com/opencv/opencv/releases/"><b>releases</b></a> manually or via the [Chocolatey](https://chocolatey.org/) package manager:
You can install any of the OpenCV 3 or OpenCV 4 [releases](https://github.com/opencv/opencv/releases/) manually or via the [Chocolatey](https://chocolatey.org/) package manager:

@@ -164,2 +166,3 @@ ``` bash

Before installing opencv4nodejs with an own installation of OpenCV you need to expose the following environment variables:
- *OPENCV_INCLUDE_DIR* pointing to the directory with the subfolder *opencv2* containing the header files

@@ -169,2 +172,3 @@ - *OPENCV_LIB_DIR* pointing to the lib directory containing the OpenCV .lib files

Also you will need to add the OpenCV binaries to your system path:
- add an environment variable *OPENCV_BIN_DIR* pointing to the binary directory containing the OpenCV .dll files

@@ -242,3 +246,3 @@ - append `;%OPENCV_BIN_DIR%;` to your system path variable

# Usage with Docker
## Usage with Docker

@@ -255,7 +259,7 @@ ### [opencv-express](https://github.com/justadudewhohacks/opencv-express) - example for opencv4nodejs with express.js and docker

Different OpenCV 3.x base images can be found here: https://hub.docker.com/r/justadudewhohacks/.
Different OpenCV 3.x base images can be found here: <https://hub.docker.com/r/justadudewhohacks/>.
<a name="usage-with-electron"></a>
# Usage with Electron
## Usage with Electron

@@ -265,2 +269,3 @@ ### [opencv-electron](https://github.com/justadudewhohacks/opencv-electron) - example for opencv4nodejs with electron

Add the following script to your package.json:
``` python

@@ -271,7 +276,9 @@ "electron-rebuild": "electron-rebuild -w opencv4nodejs"

Run the script:
``` bash
$ npm run electron-rebuild
npm run electron-rebuild
```
Require it in the application:
``` javascript

@@ -283,3 +290,3 @@ const cv = require('opencv4nodejs');

# Usage with NW.js
## Usage with NW.js

@@ -296,3 +303,3 @@ Any native modules, including opencv4nodejs, must be recompiled to be used with [NW.js](https://nwjs.io/). Instructions on how to do this are available in the **[Use Native Modules](http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/)** section of the the NW.js documentation.

# Quick Start
## Quick Start

@@ -506,2 +513,3 @@ ``` javascript

OpenCV method interface from official docs or src:
``` c++

@@ -528,3 +536,3 @@ void GaussianBlur(InputArray src, OutputArray dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT);

# Async API
## Async API

@@ -576,3 +584,3 @@ The async API can be consumed by passing a callback as the last argument of the function call. By default, if an async method is called without passing a callback, the function call will yield a Promise.

# With TypeScript
## With TypeScript

@@ -587,3 +595,3 @@ ``` javascript

# External Memory Tracking (v4.0.0)
## External Memory Tracking (v4.0.0)

@@ -600,2 +608,3 @@ Since version 4.0.0 was released, external memory tracking has been enabled by default. Simply put, the memory allocated for Matrices (cv.Mat) will be manually reported to the node process. This solves the issue of inconsistent Garbage Collection, which could have resulted in spiking memory usage of the node process eventually leading to overflowing the RAM of your system, prior to version 4.0.0.

Or directly in your code:
``` javascript

@@ -605,3 +614,1 @@ process.env.OPENCV4NODEJS_DISABLE_EXTERNAL_MEM_TRACKING = 1

```

@@ -25,11 +25,5 @@ import { Size } from './Size.d';

constructor(channels: Mat[]);
constructor(rows: number, cols: number, type: number);
constructor(rows: number, cols: number, type: number, fillValue: number);
constructor(rows: number, cols: number, type: number, fillValue: number[]);
constructor(rows: number, cols: number, type: number, fillValue: number[]);
constructor(rows: number, cols: number, type: number, fillValue: number[]);
constructor(rows: number, cols: number, type: number, fillValue?: number | number[]);
constructor(dataArray: number[][], type: number);
constructor(dataArray: number[][][], type: number);
constructor(dataArray: number[][][], type: number);
constructor(dataArray: number[][][], type: number);
constructor(data: Buffer, rows: number, cols: number, type?: number);

@@ -62,4 +56,2 @@ abs(): Mat;

atRaw(row: number, col: number): number[];
atRaw(row: number, col: number): number[];
atRaw(row: number, col: number): number[];
bgrToGray(): Mat;

@@ -188,4 +180,2 @@ bgrToGrayAsync(): Promise<Mat>;

getDataAsArray(): number[][][];
getDataAsArray(): number[][][];
getDataAsArray(): number[][][];
getOptimalNewCameraMatrix(distCoeffs: number[], imageSize: Size, alpha: number, newImageSize?: Size, centerPrincipalPoint?: boolean): { out: Mat, validPixROI: Rect };

@@ -293,17 +283,5 @@ getOptimalNewCameraMatrixAsync(distCoeffs: number[], imageSize: Size, alpha: number, newImageSize?: Size, centerPrincipalPoint?: boolean): Promise<{ out: Mat, validPixROI: Rect }>;

sepFilter2DAsync(ddepth: number, kernelX: Mat, kernelY: Mat, anchor?: Point2, delta?: number, borderType?: number): Promise<Mat>;
set(row: number, col: number, value: number): void;
set(row: number, col: number, value: number[]): void;
set(row: number, col: number, value: number[]): void;
set(row: number, col: number, value: number[]): void;
set(row: number, col: number, value: Vec2): void;
set(row: number, col: number, value: Vec3): void;
set(row: number, col: number, value: Vec4): void;
setTo(value: number, mask?: Mat): Mat;
setTo(value: Vec2, mask?: Mat): Mat;
setTo(value: Vec3, mask?: Mat): Mat;
setTo(value: Vec4, mask?: Mat): Mat;
setToAsync(value: number, mask?: Mat): Promise<Mat>;
setToAsync(value: Vec2, mask?: Mat): Promise<Mat>;
setToAsync(value: Vec3, mask?: Mat): Promise<Mat>;
setToAsync(value: Vec4, mask?: Mat): Promise<Mat>;
set(row: number, col: number, value: number | Vec2 | Vec3 | Vec4 | number[]): void;
setTo(value: number | Vec2 | Vec3 | Vec4, mask?: Mat): Mat;
setToAsync(value: number | Vec2 | Vec3 | Vec4, mask?: Mat): Promise<Mat>;
sobel(ddepth: number, dx: number, dy: number, ksize?: number, scale?: number, delta?: number, borderType?: number): Mat;

@@ -323,10 +301,4 @@ sobelAsync(ddepth: number, dx: number, dy: number, ksize?: number, scale?: number, delta?: number, borderType?: number): Promise<Mat>;

sub(otherMat: Mat): Mat;
sum(): number;
sum(): Vec2;
sum(): Vec3;
sum(): Vec4;
sumAsync(): Promise<number>;
sumAsync(): Promise<Vec2>;
sumAsync(): Promise<Vec3>;
sumAsync(): Promise<Vec4>;
sum(): number | Vec2 | Vec3 | Vec4;
sumAsync(): Promise<number | Vec2 | Vec3 | Vec4>;
threshold(thresh: number, maxVal: number, type: number): Mat;

@@ -333,0 +305,0 @@ thresholdAsync(thresh: number, maxVal: number, type: number): Promise<Mat>;

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

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

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

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc