pixel-search
v1.0.1
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!
Usage (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');Installation
npm install pixel-searchWith cli
npm install -g pixel-searchFeatures
- 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
CLI Help
pixel-search help