There
are a lot of cases where we need to read the images to get a text from it and used
that for our test case execution or to just validate the text of the images.
In this article, we would be learning how we can read the data from the images.
To Read the data from images we need to use Java-OCR
(Optical character recognition technology) library.
A Java OCR SDK Library API allows us to perform
OCR and bar code recognition on images (JPEG, PNG, TIFF, PDF, etc.) and output
as plain text, XML with full coordinate, searchable PDF or editable RTF.
To Start working with JAVA-OCR we need to follow the below steps:
2) Unzip the downloaded folder and add the JAR file to your project
directory. You can also download the maven dependency from this link.
3) Most important from the downloaded zip folder copy the file
named “aocr.jar” from the folder and place it inside C:\Windows\System32 also make sure
to double click on this jar after we place on the path.
Below is the image I am trying to read
The output of the above code execution is:
I am not able to see the code for this functionality. It would be great if getting the code snippet on this page
ReplyPlease check now..
ReplyHey Ankur, code is not working and throwing error,
Replyjava.io.FileNotFoundException: C:\Users\Demo\AppData\Local\Temp\aocr_x64.dll (The process cannot access the file because it is being used by another process)
please help
Hi Sujit,Error message is very clear and it says that file is currently being used may be its is open some where in background.Please recheck it correctly
ReplyHow to handle those captcha, which ask you to click on car images, bridge images?
Replyany library for that too?
In the event that you need to import mts to finished edition ace x, or import mts documents to imovie easily, you should change over the mts record to polished product genius and imovie well disposed configuration, as mov. AnyConv
ReplyHi Ankur,
ReplyHope you are doing great, I need quick help from your end.
My problem is am unable to read the values from PDF template, But am able to read the PDF template text.
ex:
LastName: srini
Here am able to read the LastName, but unable to rea the srini. Can you please help on this ASAP.
Thanks
Srini
I am not able to see the code for this functionality. keep posting. Anti captcha key
ReplyCode is not working. Giving this error
ReplyPlease do setup first!
Invalid data folder path.