@udarrr/template-matcher
Advanced tools
Comparing version 1.0.12 to 1.1.1
{ | ||
"name": "@udarrr/template-matcher", | ||
"version": "1.0.12", | ||
"version": "1.1.1", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index", |
@@ -28,5 +28,10 @@ # nut.js Template Matching Image Finder | ||
`npm i @udarrr/template-matcher` | ||
and connect finder to your project | ||
```javascript | ||
import finder from "@udarrr/template-matcher"; | ||
//some examples | ||
const matcheImages = finder.findMatch({haystack: pathToImage, needle: pathToTemplate}); | ||
@@ -37,2 +42,3 @@ const matcheWithScreen = finder.findMatch({needle: pathToTemplate}); | ||
const matchesWithScreen = finder.findMatches({needle: pathToTemplate}); | ||
``` | ||
@@ -59,4 +65,3 @@ | ||
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 | ||
- 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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107559
65