UNPKG

pam-diff

Version:

Measure differences between pixel arrays extracted from pam images

123 lines (122 loc) 6.9 kB
{ "name": "pam-diff", "version": "1.2.1", "description": "Measure differences between pixel arrays extracted from pam images", "main": "index.js", "scripts": { "pack": "npm --verbose pack", "preversion": "npm install && npm test", "postversion": "npm run doc", "doc": "./node_modules/.bin/jsdoc index.js -d docs && git commit -m \"update docs\" -- docs", "lint": "./node_modules/.bin/eslint --fix --ext js,md .", "examples": "node examples/example && node examples/example2 && node examples/example3 && node examples/example4 && node examples/example5", "test": "npm run gray && npm run rgb && npm run rgba", "gray": "npm run gray:all && npm run gray:mask && npm run gray:region && npm run gray:regions", "gray:all": "npm run gray:all:percent && npm run gray:all:bounds && npm run gray:all:blobs", "gray:all:percent": "node tests/test_gray --response percent --pool 2", "gray:all:bounds": "node tests/test_gray --response bounds --pool 2", "gray:all:blobs": "node tests/test_gray --response blobs --pool 2", "gray:mask": "npm run gray:mask:percent && npm run gray:mask:bounds && npm run gray:mask:blobs", "gray:mask:percent": "node tests/test_gray2 --response percent --pool 2", "gray:mask:bounds": "node tests/test_gray2 --response bounds --pool 2", "gray:mask:blobs": "node tests/test_gray2 --response blobs --pool 2", "gray:region": "npm run gray:region:percent && npm run gray:region:bounds && npm run gray:region:blobs", "gray:region:percent": "node tests/test_gray3 --response percent --pool 2", "gray:region:bounds": "node tests/test_gray3 --response bounds --pool 2", "gray:region:blobs": "node tests/test_gray3 --response blobs --pool 2", "gray:regions": "npm run gray:regions:percent && npm run gray:regions:bounds && npm run gray:regions:blobs", "gray:regions:percent": "node tests/test_gray4 --response percent --pool 2", "gray:regions:bounds": "node tests/test_gray4 --response bounds --pool 2", "gray:regions:blobs": "node tests/test_gray4 --response blobs --pool 2", "rgb": "npm run rgb:all && npm run rgb:mask && npm run rgb:region && npm run rgb:regions", "rgb:all": "npm run rgb:all:percent && npm run rgb:all:bounds && npm run rgb:all:blobs", "rgb:all:percent": "node tests/test_rgb --response percent --pool 2", "rgb:all:bounds": "node tests/test_rgb --response bounds --pool 2", "rgb:all:blobs": "node tests/test_rgb --response blobs --pool 2", "rgb:mask": "npm run rgb:mask:percent && npm run rgb:mask:bounds && npm run rgb:mask:blobs", "rgb:mask:percent": "node tests/test_rgb2 --response percent --pool 2", "rgb:mask:bounds": "node tests/test_rgb2 --response bounds --pool 2", "rgb:mask:blobs": "node tests/test_rgb2 --response blobs --pool 2", "rgb:region": "npm run rgb:region:percent && npm run rgb:region:bounds && npm run rgb:region:blobs", "rgb:region:percent": "node tests/test_rgb3 --response percent --pool 2", "rgb:region:bounds": "node tests/test_rgb3 --response bounds --pool 2", "rgb:region:blobs": "node tests/test_rgb3 --response blobs --pool 2", "rgb:regions": "npm run rgb:regions:percent && npm run rgb:regions:bounds && npm run rgb:regions:blobs", "rgb:regions:percent": "node tests/test_rgb4 --response percent --pool 2", "rgb:regions:bounds": "node tests/test_rgb4 --response bounds --pool 2", "rgb:regions:blobs": "node tests/test_rgb4 --response blobs --pool 2", "rgba": "npm run rgba:all && npm run rgba:mask && npm run rgba:region && npm run rgba:regions", "rgba:all": "npm run rgba:all:percent && npm run rgba:all:bounds && npm run rgba:all:blobs", "rgba:all:percent": "node tests/test_rgba --response percent --pool 2", "rgba:all:bounds": "node tests/test_rgba --response bounds --pool 2", "rgba:all:blobs": "node tests/test_rgba -response blobs --pool 2", "rgba:mask": "npm run rgba:mask:percent && npm run rgba:mask:bounds && npm run rgba:mask:blobs", "rgba:mask:percent": "node tests/test_rgba2 --response percent --pool 2", "rgba:mask:bounds": "node tests/test_rgba2 --response bounds --pool 2", "rgba:mask:blobs": "node tests/test_rgba2 --response blobs --pool 2", "rgba:region": "npm run rgba:region:percent && npm run rgba:region:bounds && npm run rgba:region:blobs", "rgba:region:percent": "node tests/test_rgba3 --response percent --pool 2", "rgba:region:bounds": "node tests/test_rgba3 --response bounds --pool 2", "rgba:region:blobs": "node tests/test_rgba3 --response blobs --pool 2", "rgba:regions": "npm run rgba:regions:percent && npm run rgba:regions:bounds && npm run rgba:regions:blobs", "rgba:regions:percent": "node tests/test_rgba4 --response percent --pool 2", "rgba:regions:bounds": "node tests/test_rgba4 --response bounds --pool 2", "rgba:regions:blobs": "node tests/test_rgba4 --response blobs --pool 2", "pam": "npm run pam:gray && npm run pam:rgb && npm run pam:rgba", "pam:gray": "node --expose-gc examples/createPam --pixfmt gray --response bounds --draw false --target regions", "pam:rgb": "node --expose-gc examples/createPam --pixfmt rgb24 --response bounds --draw false --target regions", "pam:rgba": "node --expose-gc examples/createPam --pixfmt rgba --response bounds --draw false --target regions", "draw": "npm run draw:gray&& npm run draw:rgb && npm run draw:rgba", "draw:gray": "node --expose-gc examples/createPam --pixfmt gray --response blobs --draw true --target regions", "draw:rgb": "node --expose-gc examples/createPam --pixfmt rgb24 --response blobs --draw true --target regions", "draw:rgba": "node --expose-gc examples/createPam --pixfmt rgba --response blobs --draw true --target regions", "draw:big": "node examples/createPam2", "draw:big:gc": "node --expose-gc examples/createPam2" }, "repository": { "type": "git", "url": "git+https://github.com/kevinGodell/pam-diff.git" }, "keywords": [ "ffmpeg", "pam", "pixels", "pixel", "difference", "motion", "detection", "region" ], "author": "Kevin Godell <kevin.godell@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/kevinGodell/pam-diff/issues" }, "homepage": "https://github.com/kevinGodell/pam-diff#readme", "dependencies": { "pixel-change": "^1.1.0", "polygon-points": "^0.6.0" }, "devDependencies": { "@ffmpeg-installer/ffmpeg": "^1.1.0", "dotenv": "^16.3.1", "eslint": "^8.46.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-markdown": "^3.0.1", "eslint-plugin-prettier": "^5.0.0", "jsdoc": "^4.0.2", "minimist": "^1.2.8", "pipe2pam": "^0.7.1", "prettier": "^3.0.1" }, "private": false, "files": [ "package.json", "index.js", "LICENSE", "README.md" ], "engines": { "node": ">=14" } }