RaiMan / SikuliX1

SikuliX version 2.0.0+ (2019+)
https://sikulix.github.io
MIT License
2.77k stars 355 forks source link

[2.0.5] Finding elements on dark background and OCR #450

Open Fe-Bell opened 3 years ago

Fe-Bell commented 3 years ago

Hi all,

My team has been using SikuliX to automate certain applications that often times have dark backgrounds and buttons. However, the api is missing locations onscreen quite frequently, mainly in two scenarios:

For now, we decided to not use SikuliX's image or text recognition in our automation, in favor of "hard coded" locations. Unfortunately, I cannot share samples due to the company's strict policies, but I can provide some environment details:

Do you know if this scenario has been captured or reported before?

Thank you for your hard work maintaining this great project.

Regards.

balmma commented 3 years ago

Have you already tried to set the lightFont option?

OCR.globalOptions().lightFont()

Fe-Bell commented 3 years ago

Hi @balmma ,

We did try that, but it doesn't always work. Often times it will not pick anything up, but for some buttons it will work just fine.

Let me know if you have any other suggestions.

All the best.