tbom
9 years agoContributor
OCR Recognition help
Hi
I'm trying to decode a simple "captcha" type image, which is pure text, without any added noise. I'm using the latest and greates TC 11.3 (downloaded yesterday)
I have tried different hoops and loops, but to no prevail.
The target is a website running in IE, and I have no control over the target software or image generation.
The following code is what I have experimented so far (Python)
def Test1():
captchaImg = Aliases.browser.pageCommonsaas.formFmLocallogin.Image("vertifyCodeImg").Picture(); Log.Picture(captchaImg, "Captcha image") ocrCaptcha = OCR.CreateObject(captchaImg) OCROptions = ocrCaptcha.CreateOptions() OCROptions.ActiveRecognitionSet = 1 OCROptions.ExactSearch = False font = OCROptions.Fonts.Add() font.Name = "Consolas" font.Sizes.Add(18) font.Sizes.Add(16) font.Sizes.Add(20) capCode = ocrCaptcha.GetText(OCROptions) Log.Message(capCode)
An example image is attached (as taken from the Log.Picture() code line)
Any pointers are mostly welcome.