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 pass wrong parameters #194

Open
key2029 opened this issue Sep 11, 2021 · 0 comments
Open

OCR pass wrong parameters #194

key2029 opened this issue Sep 11, 2021 · 0 comments

Comments

@key2029
Copy link

key2029 commented Sep 11, 2021

Pulover OCR changes StartX, StartY EndX, EndY to be [Start X, StartY, Length, Height] in AHK.
Ex. OCR 864, 245, 948, 271 >>> OCR([864, 245, 84, 26], "eng")

Problem comes when using variables, it will put EndX and EndY as is which becomes wrong.
Ex.
StartX := 700 (Actually, StartX came from an image search)
EndX := StartX + 200
OCR %StartX%, 122, %EndX%, 142 >>> OCRText := OCR([StartX, 122, EndX, 20], "eng")
so EndX becomes length. That causes OCR to perform a region 700,122 to 1600,142 while we expect it to search only from 700,122 to 900,142

It is somehow works in Pulover but wrong when translate to AHK or EXE.

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