The latest update brings a new local OCR option that works on Windows, Mac and Linux.
Javascript OCR vs XModule OCR
The advantage of using the new so called “Javascript OCR” is that it works on Windows, Mac and Linux. The engine provides good OCR results, especially with black text on white backgrounds (e. g. typical websites, receipts, PDF). New OCR languages can be added on short notice. You can request a new OCR language right here in our RPA forum
The advantage of using the existing XModule OCR is that it is provides usually better OCR results, especially for numbers and text on non-white backgrounds (e. g. text in images or video).
Wildcard support
In addition allOCR engines can use the * and ? wildcards now. The * wildcard character matches zero or more characters. The ? wildcard character matches any single character.
This applies to all commands that use text recognition: XClickText, XClickTextRelative, XMoveText, XMoveTextRelative, OCRSearch, OCRExtract and OCRExtractRelative.
New update is not working.
It keeps erroring : OCR feature disabled. Please enable it in the [OCR Settings].
Tried changing between JS OCR and Xmodule, but it does not work.
@Atul_Singh Please try to remove the Ui.Vision extension and then reinstall it. This should solve the issue. But if not, please let us know.
Before you uninstall the extension, please make sure to backup your macros (Settings → Backup → “Run Backup Now” button).
Just to clarify: To fix the issue, you need to uninstall/reinstall the Ui.Vision extension itself, not the XModule app. The XModule app can stay installed.
However it broke OCRSearch, XclickText for multiword texts.
EG OCRSearch | result type | count (original text is result type: Hello world)
This used to work earlier. Same goes for XclickText | Result typ (text to click is Result Type) fails to click.
For it work we have to add * after the text.
I would request to please mention somewhere what might break after an update.
I can also confirm that the reinstallation helped with the issue mentioned above: OCR feature disabled. Please enable it in the [OCR Settings].
I also noticed issues with the existing macros as the other user mentioned as we currently have several macros which no longer work.
It seems that it’s no longer possible to use brackets for an exact match. I have tried with XclickText and also XClick ocr=[text to click] (exact match) with similar results - it does not find anything, no matter what I try to search. Could you please add back the possibility to use exact matches (preferably with the brackets so that we don’t need to fix the existing ones) or explain how to use it with the new update.
This used to work fine: XclickText | Employee’s CV. After the update it does not work, but using XclickText | Employee’s CV instead seems to work (without the '). Was this by design? I checked with the OCR calibrate and it recognizes the text itself correctly as “Employee’s” so that should not be the issue.
You mentioned a very good point: With V9.2.0 we improved the text search and introduced wildcard support (* and ?). This changes the way exact matches are done! => Now the Ui.Vision search behaves like a standard text search on Windows. The default text match mode is exact match:
Example: OCRSearch | day matches “day” but not “today” or “yesterday’s”.
For partial text match use wildcards: OCRSearch | *day* matches “day” and also “today” and “yesterday’s”.
This used to work fine: XclickText | Employee’s CV. After the update it does not work, but using XclickText | Employees CV instead seems to work (without the '). Was this by design? I checked with the OCR calibrate and it recognizes the text itself correctly as “Employee’s” so that should not be the issue.
To add more examples and hopefully clarify also, the idea is to click an element (link) on a web page with text “Employee’s CV and …” (the full text is not visible as it’s a nav. menu item):
Scenarios:
XclickText | Employee’s CV Used to work → not after update.
XclickText | Employee’s CV* Does not work. Shouldn’t this work?
XclickText | Employee?s CV* Does not work.
XclickText | Employees CV Works. Not sure why this works as no * used and it’s not the exact match either?