JSPM

  • Created
  • Published
  • Downloads 133
  • Score
    100M100P100Q85276F

Locate images on your screen using template matching in nut.js

Package Exports

  • @udarrr/template-matcher
  • @udarrr/template-matcher/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@udarrr/template-matcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nut.js Template Matching Image Finder

GitHub Actions
Master Create tagged release
Develop Create snapshot release

Supported node LTS versions Supported Electron versions

It's plugin for nutjs project with some features like

installation

npm i @udarrr/template-matcher

and then just use it in your project once

import "@udarrr/template-matcher" or require("@udarrr/template-matcher")

Benefits

  • incresed accuracy (x10)
  • incresed perfomance (~x2)
  • added some customOptions for arguments params?: OptionalSearchParameters in nutjs

Options

{ customOptions: {methodType: MethodNameType; scaleSteps: Array<number>; 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