Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub RecognizeCaptchaTessnet2()
- Dim ocr As New tessnet2.Tesseract()
- Dim captchaimage As New Bitmap(Picturebox1.Image())
- ocr.Init(Application.StartupPath & "\tessdata", "eng", False)
- Dim result As List(Of tessnet2.Word) = ocr.DoOCR(captchaimage, Rectangle.Empty)
- For Each word As tessnet2.Word In result
- RichTextBox1.Text = word.Text
- Next
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment