OCR with MODI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David de Passos

    OCR with MODI

    Hi!

    I'm using MODI activex from Microsoft Office 2003 and Microsoft VB.NET to
    get the text from an OCR acquired image.

    Why after OCR the image, the MODI component rotate the image?

    Sometimes the MODI rotates the image 90 degrees and the OCR, obviously, can'
    t do its job. Any ideia why this is happening?

    There is my code:



    Dim miDoc As MODI.Document

    Dim miWord() As MODI.Word

    Dim strWordInfo As String

    Dim i, j As Long

    Dim str As String

    Dim Cont As Long

    Dim IMG As Long

    miDoc = New MODI.Document

    miDoc.Create("C :\MultiPage.tif ")

    str = ""

    Cont = 0

    IMG = miDoc.Images.Co unt - 1



    miDoc.OCR(MiLAN GUAGES.miLANG_E NGLISH, True, True)

    For j = 0 To IMG

    miDoc.Images(j) .rotate(0)

    For i = 0 To miDoc.Images(j) .Layout.Words.c ount - 1

    ReDim Preserve miWord(Cont)

    miWord(Cont) = miDoc.Images(j) .Layout.Words(i )

    Cont += 1

    Next

    Next

    For i = 0 To miWord.Length - 1

    str = str & " " & miWord(i).Text

    Next

    miDoc.Close(Fal se)

    miWord = Nothing


    --


    Cumprimentos,
    David de Passos
    --------------------------------------------------------------
    RCSOFT, Lda.
    E-Mail: passos@rcsoft.p t
    Móvel: +351 966931639
    Telefone: +351 239708708
    Fax: +351 239708701
    Tel. Directo: +351 239708705 ext. 401


  • Herfried K. Wagner [MVP]

    #2
    Re: OCR with MODI

    * "David de Passos" <passos@rcsoft. pt> scripsit:
    [...]

    Please don't multipost.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • David de Passos

      #3
      Re: OCR with MODI

      Sorry but is URGENT!! :(

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:%235WvfvEk EHA.3712@TK2MSF TNGP15.phx.gbl. ..[color=blue]
      > * "David de Passos" <passos@rcsoft. pt> scripsit:
      > [...]
      >
      > Please don't multipost.
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: OCR with MODI

        * "David de Passos" <passos@rcsoft. pt> scripsit:[color=blue]
        > Sorry but is URGENT!! :([/color]

        I assume that every question posted to this group is urgent...

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...