Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nl-matcher performance low when run on Electron. #586

Open
3 tasks
intaek-h opened this issue Apr 25, 2024 · 0 comments
Open
3 tasks

nl-matcher performance low when run on Electron. #586

intaek-h opened this issue Apr 25, 2024 · 0 comments

Comments

@intaek-h
Copy link

Short summary
As a poc, I tried running a simple image matching Nut.js script on Node.js@20. I ran node index.js to check if Nut.js meets my performance expectations. And gladly it did.

So, I began to start my project which required Vue.js, Electron, and Nut.js. I copy and pasted the same simple snippet which I used for the POC, and ran the program with npm run dev. (The Electron app has a button that runs the simple Nut.js script.)

Surprisingly the app could not detect the given image.

I want to know if anyone has experienced similar phenomenon, or if I am missing anything.

Desired execution environment / tested on

  • Virtual machine
  • Docker container
  • Dev/Host system

node version:
NodeJS@20

OS type and version:
Windows 11 x86

Full code sample related to question

await sleep(1000)
const img = await screen.find(imageResource('src/main/nuts/images/sidebar-new.png'))
await mouse.move(straightTo(centerOf(img))
await mouse.leftClick()

Detailed question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant