ByteScout Text Recognition SDK - VB.NET - Use Text Auto Corrections - ByteScout

ByteScout Text Recognition SDK – VB.NET – Use Text Auto Corrections

  • Home
  • /
  • Articles
  • /
  • ByteScout Text Recognition SDK – VB.NET – Use Text Auto Corrections

How to use text auto corrections in VB.NET using ByteScout Text Recognition SDK

Write code in VB.NET to use text auto corrections with this step-by-step tutorial

These sample source codes on this page below are demonstrating how to use text auto corrections in VB.NET. ByteScout Text Recognition SDK can use text auto corrections. It can be used from VB.NET. ByteScout Text Recognition SDK is the software development kit for automatic text recognition and OCR from pdf documents and images. Can recognize English and non-English languages.

This code snippet below for ByteScout Text Recognition SDK works best when you need to quickly use text auto corrections in your VB.NET application. In your VB.NET project or application you may simply copy & paste the code and then run your app! Enjoy writing a code with ready-to-use sample VB.NET codes.

Trial version of ByteScout Text Recognition SDK can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

Try ByteScout Text Recognition SDK today: Get 60 Day Free Trial or sign up for Web API

Module1.vb
      
Imports Bytescout.TextRecognition Module Module1 Sub Main() Dim inputDocument As String = ".\bad-quality.png" Dim outputDocument As String = ".\result.txt" ' Create and activate TextRecognizer instance Using textRecognizer As TextRecognizer = New TextRecognizer("demo", "demo") Try ' Load document (image or PDF) textRecognizer.LoadDocument(inputDocument) ' Set the location of OCR language data files textRecognizer.OCRLanguageDataFolder = "c:\Program Files\ByteScout Text Recognition SDK\ocrdata_fast\" ' Set OCR language. ' "eng" for english, "deu" for German, "fra" for French, "spa" for Spanish, etc. - according to files in "ocrdata" folder ' Find more language files at https://github.com/bytescout/ocrdata textRecognizer.OCRLanguage = "eng" ' Add error corrections that will be applied after the recognition. textRecognizer.Corrections.Add("Tut ", "Test ") textRecognizer.Corrections.Add("Recog\w{1,}on", "Recognition", True) ' Recognize text from all pages and save it to file textRecognizer.SaveText(outputDocument) ' Open the result file in default associated application (for demo purposes) Process.Start(outputDocument) Catch exception As Exception Console.WriteLine(exception) End Try End Using End Sub End Module

Try ByteScout Text Recognition SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Text Recognition SDK page

Explore ByteScout Text Recognition SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next