Let's suppose I have a CAPTCHA image which contains text. Now, if I want to extract the text from the image, how can I do that?
So far, I have come up with the following code below:
library(tesseract)
eng <- tesseract("eng")
text <- tesseract::ocr("https://farm2.sat.gob.gt/saqbe-arancel-publico/Kaptcha.jpg", engine = eng)
cat(text)
The above code helps to extract text from the image, however, it is not a expected output text from image. How is it achievable using R? I would be really thankful if someone could help me in this problem.