
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
augment-nodejs
Advanced tools
Basic image augmentation Node.js library for machine learning in Javascript
npm i augment-nodejs --save
npm i opencv4nodejs --save
const cv = require("opencv4nodejs");
var aug = require("augment-nodejs")(cv);
const cv = require("opencv4nodejs");
const aug = require("augment-nodejs")(cv);
const image = cv.imread("lenna.jpg");
const augimg = aug.flip(image);
cv.imshowWait("", augimg);
Return, blured image
aug.blur(img, kernalSize, stddev);
kernalSize - odd number
stddev - number
Return, darked or brighted image
aug.intensity(img, alpha, beta);
alpha - number
beta - number
Return, fliped image
aug.flip(img);
Return, grayed image
aug.gray(img);
Return, rotated image
aug.rotate(img, angle);
angle - number
Return, zoomed image
const roi = { x0: 0.3, y0: 0.3, x1: 0.8 , y1: 0.8}
aug.zoom(img, roi);
Return, croped image
const roi = { x0: 0.3, y0: 0.3, x1: 0.8 , y1: 0.8}
aug.crop(img, roi);
Return, padded image
aug.padding(img, padHeight, padWidth, centerContent);
centerContent - boolean
padHeight - number
padWidth - number
You can contribute to this project.
You just need to create a pull request which will be revised, merged to main branch (if the code doesn't break the project) and published as a new release.
FAQs
Basic image augmentation Node.js library for machine learning in Javascript
We found that augment-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.