Jump to content

Real OCR in AU3 - in a few lines.


Recommended Posts

ptrex seriously, this is very simple and it is OCR that you can rely on.
I used to use Tesseract but after trying modi...

Thanks for sharing this.

Edit: BTW Modi is not included in MS Office Professional Plus 2010.
You will have to install Ms office sharepoint designer 2007 and then enable to run all from your computer to be able to run the codes in this thread.

Edited by AutID
Link to comment
Share on other sites

  • 5 years later...

hi, just wanna say this is a great  script you have posted and altough it was posted some time ago it still helped greatly in a project i had recently.

just wanted to add a small remark...

the last section of the code...

For $oWord in $miDoc.Images(0).Layout.Words

    $str = $str & $oWord.text & @CrLf 

     ConsoleWrite($oWord.text & @CRLF)

    $sArray [$i] = $oWord.text 

    $i += 1


_ArrayDisplay($sArray,"OCR Result")

Can be replaced with a much simpler

MsgBox("","OCR Result",$miDoc.Images(0).Layout.Text)

that could also be used if your code is used inside a function as

return $miDoc.Images(0).Layout.Text


Edited by monteiron
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...