pixel-search
v1.0.0
Published
Search for an image inside another image and take screenshots. Usable as CLI and module.
Maintainers
Readme
pixel-search
pixel-search is a Node.js tool for finding an image inside another image and taking screenshots. You can use it as a CLI or as a module in your own projects. Super fast, super simple!
Features
- Find the position of a small image inside a big image
- Take screenshots (Windows only)
- CLI and module support
- Fast pixel matching with grayscale optimization
Installation
npm install pixel-searchWith cli
npm install -g pixel-searchUsage (CLI)
pixel-search shot screenshot.png
pixel-search find big.png small.pngUsage (Module)
const { findImageInImage, takescreenshot } = require('pixel-search');
// Find image
findImageInImage('big.png', 'small.png').then(res => {
console.log(res); // { x, y, score }
});
// Take screenshot
takescreenshot('screenshot.png');CLI Help
pixel-search help