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

Feature Request: Specify X, Y, W, H via argument (unattended mode) #35

Open
martin-braun opened this issue Dec 31, 2023 · 2 comments · Fixed by adam-zethraeus/macOCR#2

Comments

@martin-braun
Copy link

martin-braun commented Dec 31, 2023

For scripting, it would be nice if this tool could fetch text via X, Y, W, H.

It would need to use a different API (not ScreenCapture), because for scripting you also want to avoid any sound and the crosshair for obvious reasons.

My goal is to periodically scan a section on my screen for text.

EDIT: Made a PR on a fork of your project, which already has some more options and leverages the screencapture binary instead of the API: adam-zethraeus#2

This binary gives all the options I need, i.e. defining a rect or disabling the sound playing. I wonder how much performance it costs to take a screenshot every second.

@martin-braun martin-braun changed the title Feature Request: Specify X and Y via argument Feature Request: Specify X, Y, W, H via argument (unattended mode) Dec 31, 2023
@adam-zethraeus
Copy link
Contributor

feel free to merge back any part of the fork btw!

@martin-braun
Copy link
Author

@adam-zethraeus You mean to https://github.com/schappim/macOCR? Would you mind doing it, as I'm very busy, atm, and I'm satisfied with your fork. This repo looked unmaintained whereas yours gives more options, so it felt right to contribute to yours instead.

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

Successfully merging a pull request may close this issue.

2 participants