-
Notifications
You must be signed in to change notification settings - Fork 349
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(region.text()) is detecting wrong text, when text is underlined #606
Comments
What SX version, what system, what Java? |
Hi @RaiMan , SX version : 'com.sikulix', name: 'sikulixapi', version: '2.0.5' Can you please provide me a workaround? |
Tried this:
while the text |
Hi @RaiMan , This does not work properly, as the string gets by region.text() is completely different than the existing text in UI. |
Hi @avishekhece, I think it very hard to find completely when the text has underscore . You can use VietOCR to find text first and apply config to sikuli |
Apparently there are problems with underscored text in Tesseract, which is used in SikuliX under the hood. Solutions mentioned in the net are too complex, to be used with SikuliX IDE. So sorry - no easy solution currently. |
I have done the coding in certain way.
…On Tue, Nov 28, 2023, 8:42 PM Thinh Nguyen ***@***.***> wrote:
Hi @avishekhece <https://github.com/avishekhece>, I think it very hard to
find completely when the text has underscore . You can use VietOCR to find
text first and apply config to sikuli
image.png (view on web)
<https://github.com/RaiMan/SikuliX1/assets/41589802/10cae33e-06c5-4313-b000-7755f4cf6bd9>
—
Reply to this email directly, view it on GitHub
<#606 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGQCGTYW4C67IMKNCOXPFTYGX5O7AVCNFSM6AAAAAA62UXR3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZQGA2DKMZVG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @RaiMan ,
I tried to get the region of a certain text on the screen using
Screen screen = new Screen();
ScreenImage image = screen.capture();
region = image.getRegion();
LoggerUtil.debug("Searching for text on screen. ");
In this case, findText getting failed & I debug the issue and realise that "relocate(wait("\t" + text + "\t", timeout))" the wait method is getting failed, even I tried with image, like Find the text on that image & return the region of the text but still did not worked & on console it is printing empty page !!
Also want to inform you that wherever we use "wait("\t" + text + "\t", timeout)" this, it fails.
Please look into this issue.
If you have any workaround then please inform me
Please find the image below
I have been getting stuck into this issue over 1month & due to this tool is almost stop.
The text was updated successfully, but these errors were encountered: