Results 1 to 2 of 2

Thread: MODI OCR error :(

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    26

    Exclamation MODI OCR error :(

    When i try to use Deathader's MODI OCR code.
    I get this error:
    Code:
    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ocr test.exe
    
    Additional information: OCR running error
    Please help me


    I use this code:
    Code:
    Dim md As New MODI.Document()
            md.Create("C:\Users\Administrator\Desktop\Glowing-shiny-shadow-photoshop-text-effect.jpg")
            md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, True, True)
    
            Dim image As MODI.Image = DirectCast(md.Images(0), MODI.Image)
            Dim layout As MODI.Layout = image.Layout
            Dim out As String = ""
    
            For j As Integer = 0 To layout.Words.Count - 1
                Dim word As MODI.Word = DirectCast(layout.Words(j), MODI.Word)
                out += " " & word.Text
            Next
            MsgBox(out)

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    26

    Re: MODI OCR error :(

    buuuuuuuuuuuuuuuuuump

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width