Get text from image with High accuracy

user20 161 Reputation points
2022-12-02T12:39:24.187+00:00

HI Friends
I have code that returns the text in the image by Tesseract OCR.

Dim api = OcrApi.Create()  
Using api  
api.Init(Patagames.Ocr.Enums.Languages.English) ' Languages.English)  
Dim plainText As String = api.GetTextFromImage(PictureBox1.Image) '(bmp)  
Dim lines As String() = plainText.Split(New String() {vbLf}, StringSplitOptions.None)  
TextBox1.Text = lines(0)  
End Using  
 

But the accuracy of the resulting text is not acceptable at all!
I will attach the my photo. return text is :'EPVWUAG2LOSCBPZAANIZZ10 1'
Please guide me how to get the text more accurately

266653-t5.jpg

Developer technologies | VB
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.