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

OCR saveSearchImageToFile parameter #599

Open
joel-duffie opened this issue Jun 6, 2024 · 0 comments
Open

OCR saveSearchImageToFile parameter #599

joel-duffie opened this issue Jun 6, 2024 · 0 comments

Comments

@joel-duffie
Copy link

Short overview
Provide the ability to save an image of the search area from a screen.find(singleWord/textLine) call.

Use case
To more easily debug OCR match fails.

Detailed description
Just like screen.find(image) can be given providerData: { saveSearchImageToFile } to save the search area and input images to disk, OCR should have the same ability, but because there is no search input image, it would just save the search area image.

Additional content
The call would look like this:

await nut.screen.find(textLine("this is a test"), { 
   searchRegion: myRegion, 
   providerData: { 
      saveSearchImageToFile: true 
   }
}

And it would save the search area (bounded by myRegion) to the current working directory, OR, if specified, to a different provided directory under a given filename.

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

No branches or pull requests

2 participants