Comparing version
@@ -115,8 +115,2 @@ 'use strict'; | ||
module.exports = PixelChange; | ||
//todo(ne) - should always return array | ||
//todo(ne) - array will only be populated when percent >= percent | ||
//todo(ne) - percent will have to be passed into method | ||
//todo - will have to test this behavior on n-api module first to maintain symmetry | ||
//todo(ne) - check integrity of data before sending here to be processed | ||
module.exports = PixelChange; |
{ | ||
"name": "pam-diff", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "Measure differences between pixel arrays extracted from pam images", | ||
@@ -42,2 +42,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"ffmpeg-static": "^2.1.0", | ||
"jsdoc": "^3.5.5", | ||
@@ -44,0 +45,0 @@ "pipe2pam": "^0.6.2" |
# pam-diff | ||
###### [](https://travis-ci.org/kevinGodell/pam-diff) [](https://ci.appveyor.com/project/kevinGodell/pam-diff/branch/master) [](https://github.com/kevinGodell/pam-diff/issues) [](https://raw.githubusercontent.com/kevinGodell/pam-diff/master/LICENSE) | ||
Measure differences between pixel arrays extracted from pam images. Works well with node module [pipe2pam](https://www.npmjs.com/package/pipe2pam) to extract pam images from an ffmpeg pipe. Supported ***tupltypes*** are ***rgb***, ***rgb_alpha***, ***grayscale***, and ***blackandwhite***. It is currently being used for a video motion detection project. | ||
###### [](https://david-dm.org/kevinGodell/pam-diff/master) [](https://travis-ci.org/kevinGodell/pam-diff) [](https://ci.appveyor.com/project/kevinGodell/pam-diff/branch/master) [](https://github.com/kevinGodell/pam-diff/issues) [](https://raw.githubusercontent.com/kevinGodell/pam-diff/master/LICENSE) | ||
Measure differences between pixel arrays extracted from pam images. Works well with node module [pipe2pam](https://www.npmjs.com/package/pipe2pam) to extract pam images from an ffmpeg pipe. Supported ***tupltypes*** are ***rgb***, ***rgb_alpha***, and ***grayscale***. It is currently being used for a video motion detection project. | ||
### installation: | ||
``` | ||
npm install pam-diff --save | ||
npm install pam-diff@latest --save | ||
``` | ||
### installation of experimental n-api version: | ||
``` | ||
npm install pam-diff@n-api --save | ||
``` | ||
**To run the example below, also install pipe2pam:** | ||
@@ -105,2 +109,4 @@ ``` | ||
ffmpeg.stdout.pipe(p2p).pipe(pamDiff); | ||
``` | ||
``` | ||
See [tests](https://github.com/kevinGodell/pam-diff/tree/master/tests) or [examples](https://github.com/kevinGodell/pam-diff/tree/master/examples) for more implementations. |
25054
0.39%111
5.71%3
50%496
-1%