How to convert a textual image (computer typed) into string in java [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to convert a textual image (computer typed) into string in java [closed]



I am new to this site.



Can anyone give me some idea on how I can convert an image (eg. a screenshot) which has only computer typed text in it to a String.



I am not talking about identifying hand-written text here which will require AI and all. It is a standard font. I think it should be possible.



Just share me the necessary resources I would need, I will try to figure the rest out myself.



Thanks.



Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





This is referred to as Optical Character Recognition (OCR). Google that. The program Tesseract github.com/tesseract-ocr/tesseract is an open source OCR engine.
– ditkin
Aug 6 at 15:20





You need some OCR package, like Tesseract, Asprise Java OCR or JavaOCR.
– jdehesa
Aug 6 at 15:20





@jdehesa If I download JavaOCR, can I use the methods like I normally do by importing it into my code, or is there a different way of using these external libraries.
– Chandrachur Mukherjee
Aug 6 at 15:28





Please note that asking for third-party resources is off-topic on StackOverflow. Please read How to Ask and check what is on-topic.
– RealSkeptic
Aug 6 at 15:29






@Learner'sPoint I don't really have experience with these packages, but yes, in principle the links I posted are for libraries that you can use from Java code to integrate into your application. You can also search for standalone OCR applications if you want, there are all sorts of options really.
– jdehesa
Aug 6 at 15:31




1 Answer
1



Once you have converted it into an image, it normally requires some OCR algorithms because font type and sizes may change, the anti-alias might blur the image further, and the background may be different.



Let's say you fixed all those conditions, you can convert the image into a grayscale matrix, and then just search the occurrence of a matching conditions.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered