I'm Also developing Free OCR Project. Can any one got Sample Codes To
Visual Basic 2008

On 1/3/12, Raj Julha <[email protected]> wrote:
> Hi
>
> Since you're using VB have you tried replacing "D:\\ImageCrop\
> \ImageCrop\\tessdata with "D:\ImageCrop\ImageCrop\tessdata" since you
> don't need to escape the backslash as in C#.
>
> Cheers
>
> Raj
>
> On Jan 3, 10:12 am, ankseth <[email protected]> wrote:
>>  Dim bmp As Bitmap
>>
>>         bmp = New Bitmap(picFrm.Image, picFrm.Width, picFrm.Height)
>>
>>         Dim ocr As New tessnet2.Tesseract()
>>         ocr.SetVariable("tessedit_char_whitelist", "0123456789")
>>         ' If digit only
>>         ocr.Init("D:\\ImageCrop\\ImageCrop\\tessdata", "eng", False)
>>         ' To use correct tessdata
>>         Dim result As List(Of tessnet2.Word) = ocr.doOCR(bmp,
>> Rectangle.Empty)
>>         For Each word As tessnet2.Word In result
>>             Console.WriteLine("{0} : {1}", word.Confidence, word.Text)
>>         Next
>>
>> I am Using VB as Programming Lang The Program exit on Init Method
>> without giving any error
>
> --
> You received this message because you are subscribed to the Google
> Groups "tesseract-ocr" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en
>


-- 
Lahiru Himash Madusanka
http://119sinhala.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to