Hi Jefferson,
I'm afraid, currently, the TestComplete OCR engine doesn't support the strikeout fonts. It supports only the regular, bold, italic and underlined font styles and their combinations.
Is there an alternative to OCR, i.e. some other way of extracting text from image without using OCR |
From your code, I see that you want to get a text from an object in an application. If this object isn't actually a
graphics image but rather a
custom control (e.g. a rich text editor) that TestComplete doesn't identify out-of-the-box, there're more efficient alternatives to OCR.
For example, if your tested application is
Open to TestComplete so that you have access to native properties and methods of the application objects, you should be able to get the object text using a native property or method. Examine your object in the Object Browser to see what methods and properties are available for it.
If your tested application is non-Open,
Text Recognition,
MSAA and
UI Automation are the recommended alternatives that can provide better object identification. You can find more info and tips in the following articles:
OCR vs. Text RecognitionWays to Interact With Application ObjectsAbout Improving Object RecognitionIf the object in question is an actual image/picture, the workaround I could suggest is to use a third-party OCR utility to get the text from the image and integrate this utility into your test.
I hope this answers your question. Let me know if I should give you more details or if you have additional questions about this issue.