Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

API Call for Tesseract

$
0
0
Several years back someone wrote an API for Tesseract

http://www.autoitscript.com/forum/topic/89542-tesseract-screen-ocr-udf/page__hl__%20tesseract

As great as that UDF is it is just a screen scraping UDF (that I'm pretty sure has memory leaks).  I have very high resolution images (that I am hoping will help increase the accuracy) that I would like to read but I would like to read them directly from a file.  Effectivly my program will save a .tiff (or some other format, will play around to see what has higher accuracy) open up Tesseract and read the .txt file that it creates.

I believe you can call Tesseract via an API call with the image path in the parameter.  Tesseract than creates a .txt file in the same directory (with the same name).  I looked over the UDF and this seems to be happening but I am unable to get this thing to run.

I have never really used parameters in execuables like this and was hoping someone could lend me a hand figuring it out.. I was hoping it would be as easy as...


ShellExecuteWait(@ProgramFilesDir & "\tesseract\tesseract.exe", "C:\OCRTEST.TIF C:\OCRTEST")



But alas it is not.

Thanks!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>