Guest User

Untitled

a guest
Feb 14th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.41 KB | None | 0 0
  1.  Sub RecognizeCaptchaTessnet2()
  2.         Dim ocr As New tessnet2.Tesseract()
  3.         Dim captchaimage As New Bitmap(Picturebox1.Image())
  4.  
  5.  
  6.         ocr.Init(Application.StartupPath & "\tessdata", "eng", False)
  7.         Dim result As List(Of tessnet2.Word) = ocr.DoOCR(captchaimage, Rectangle.Empty)
  8.         For Each word As tessnet2.Word In result
  9.             RichTextBox1.Text = word.Text
  10.         Next
  11.  
  12.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment