Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@udarrr/template-matcher
Advanced tools
Locate images on your screen using template matching in nut.js or standalone
params?: OptionalSearchParameters
in nutjs !not implemented in nutjs yet, but available in standalonenpm i @udarrr/template-matcher
and then just use it in your project once
import "@udarrr/template-matcher"` or `require("@udarrr/template-matcher")
npm i @udarrr/template-matcher
and connect finder to your project
import finder from "@udarrr/template-matcher";
//some examples
const matcheImages = await finder.findMatch({haystack: pathToImage, needle: pathToTemplate});
const matcheWithScreen = await finder.findMatch({needle: pathToTemplate});
const matchesImages = await finder.findMatches({haystack: pathToImage, needle: pathToTemplate});
const matchesWithScreen = await finder.findMatches({needle: pathToTemplate});
//nutjs options
{
confidence?: number,
searchMultipleScales?: boolean,
customOptions?: {
methodType: MethodNameType;
scaleSteps: Array<number>;
roi: Region;
debug: boolean
},
}
//standalone
{
haystack?: string | Image,
needle: string | Image,
confidence?: number,
searchMultipleScales?: boolean,
customOptions?: {
methodType: MethodNameType;
scaleSteps: Array<number>;
roi: Region;
debug: boolean
},
}
// methodType: "TM_CCOEFF" | "TM_CCOEFF_NORMED" | "TM_CCORR" | "TM_CCORR_NORMED" | "TM_SQDIFF" | "TM_SQDIFF_NORMED" by default "TM_CCOEFF_NORMED"
// scaleSteps: [0.9]; by default [1, 0.9, 0.8, 0.7, 0.6, 0.5]
// debug: true | false by default false
// for "TM_SQDIFF" | "TM_SQDIFF_NORMED" confidence by default 0.98
// for "TM_CCOEFF" | "TM_CCOEFF_NORMED" | "TM_CCORR" | "TM_CCORR_NORMED" by default 0.8
FAQs
Locate images on your screen using template matching in nut.js or standalone
The npm package @udarrr/template-matcher receives a total of 174 weekly downloads. As such, @udarrr/template-matcher popularity was classified as not popular.
We found that @udarrr/template-matcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.