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

Region class: findText - Some time not work #582

Open
liqh99 opened this issue May 23, 2023 · 0 comments
Open

Region class: findText - Some time not work #582

liqh99 opened this issue May 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@liqh99
Copy link

liqh99 commented May 23, 2023

I use region.hasText("Masc Head") to check the item where exists for the Test Image.
But the result always return false ,

I have try to debug the source of SikuliX.
There are some issues at Finder2.doFindText.
image

 BufferedImage bLine = Image.createSubimage(bimg, wordOrLine);
 wordsInLine = OCR.readWords(bLine);

The image bLine is too small (height :12px), OCR.readWords always failed, and the result wordsInLine is empty .
If modify the bLine to padding some whitespace (Example: 10px), OCR.readWords will be successed.

And I also think the wordInLine.getText().toLowerCase() must be a option , some time it's not required.

Test Image:

test

@RaiMan RaiMan self-assigned this Jun 25, 2023
@RaiMan RaiMan added the bug Something isn't working label Jun 25, 2023
@RaiMan RaiMan added this to the 2.0.6 milestone Jun 25, 2023
@RaiMan RaiMan changed the title Region.findText - Some time not work Region class: findText - Some time not work Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants