OCR - Issues

49 views
Skip to first unread message

kumar Siddappa

unread,
Jan 28, 2014, 12:34:22 PM1/28/14
to seleniu...@googlegroups.com
I have donwloaded the ASpire OCR zipped file and unzipped
Copied the DLL files ( ASpireOCr.dll , DEVIL and iLU DLL to system32 folder)
Added the aspireOCr jar file to eclipse external jar
Now written a script to read the text inside The image 

I have added the Environment Path value as D:/Aspires - this folder consist of unzipped data 
also have added the Environment classpath D:\ASpires\aspriseOCR.jar

Now when i run the script

WebDriver fire = new FirefoxDriver();
String urlOfImage=fire.findElement(By.xpath("//*[@id='post-body-5614451749129773593']/div[1]/div[1]/div/a/img")).getAttribute("src");
System.out.println("image text"+urlOfImage);

URL url = new URL(urlOfImage);
Image i0 = ImageIO.read(url);
String s = new OCR().recognizeEverything((RenderedImage) i0);    // exception got is here 
System.out.println(s); 



 Exception in thread "main" java.lang.UnsatisfiedLinkError: no AspriseOCR in java.library.path


Can any one please help me out in correcting it ?

Shawn McCarthy

unread,
Jan 30, 2014, 5:20:06 PM1/30/14
to seleniu...@googlegroups.com
This doesn't appear to be a selenium issue or question. Try making sure AspriseOCR is in your build path.

Tony

unread,
Dec 3, 2015, 4:05:20 AM12/3/15
to seleniu...@googlegroups.com
You can try this free online ocr to extract text from image
<http://www.online-code.net/ocr.html> .




--
View this message in context: http://selenium.10932.n7.nabble.com/OCR-Issues-tp32811p48293.html
Sent from the Selenium - Users mailing list archive at Nabble.com.

David

unread,
Dec 5, 2015, 1:16:36 AM12/5/15
to Selenium Users
Too bad that free online ocr doesn't offer an API, otherwise be easy to incorporate into test code w/o having to Selenium automate the darn online ocr page to do the ocr.
Reply all
Reply to author
Forward
0 new messages