jlipps / appium-ocr-plugin

Tesseract-based OCR plugin for Appium
35 stars 8 forks source link

getOcrText http request detect "q" letter as "g" letter #10

Closed chauhaidang closed 1 year ago

chauhaidang commented 1 year ago

For some reason, the "q" letter on the screen is being detect as "g" and returned back from getOcrText command http request.

Appium inspector capture: image

Response from getOcrText image

Appium server log image

jlipps commented 1 year ago

This is apparently how tesseract recognizes that character. The only thing I can recommend is to fiddle with the various tesseract settings to see if you can get it to work better. Perhaps not downsampling the screen would mean there's enough pixels for tesseract to better differentiate between 'g' and 'q'.

At any rate, there's nothing the plugin can do to help here.