Jump to content

basic tesseract test


 Share

Recommended Posts

HI All!

Im new here and interested in  tesseract ocr.

There are many examples in the forum but too difficult to me .

I just want to see how its working in few line cod .

I have installed  tesseract and microsoft office 2003 .

My cod:

$ImageToReadPath = @MyDocumentsDir & "\GDIPlus_Image10.jpg"
$ResultTextPath = @MyDocumentsDir & "\Result"
$OutPutPath = $ResultTextPath & "auto.txt"
;$TesseractExePath = @ProgramsDir & "\Tesseract.exe"
$TesseractExePath =@ProgramFilesDir & "\Tesseract-OCR\tesseract.exe"
ShellExecuteWait($TesseractExePath, '"' & $ImageToReadPath & '" "' & $ResultTextPath & '"', "", "", @SW_HIDE)
If @error Then
    Exit MsgBox(0, "Error", @error)
EndIf

MsgBox(0, "Result", FileRead($OutPutPath))

FileDelete($OutPutPath)

 

Please help me.

my picture:

GDIPlus_Image10.jpg

Edited by newITman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...