ByteScout PDF Extractor SDK - VB.NET - Read Text From Noisy Image - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Read Text From Noisy Image

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Read Text From Noisy Image

repair text in VB.NET with ByteScout PDF Extractor SDK

Tutorial: how to do repair text in VB.NET

Here you may find thousands pre-made source code pieces for easy implementation in your own programming VB.NET projects. ByteScout PDF Extractor SDK was made to help with repair text in VB.NET. ByteScout PDF Extractor SDK is the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction.

This rich sample source code in VB.NET for ByteScout PDF Extractor SDK includes the number of functions and options you should do calling the API to implement repair text. To do repair text in your VB.NET project or application you may simply copy & paste the code and then run your app! You can use these VB.NET sample examples in one or many applications.

Visit our website provides for free trial version of ByteScout PDF Extractor SDK. Free trial includes lots of source code samples to help you with your VB.NET project.

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

Imports Bytescout.PDFExtractor Module Program Sub Main() Try Using extractor As New TextExtractor() ' Load noisy image document extractor.LoadDocumentFromFile("sample.png") ' Set the font repairing OCR mode extractor.OCRMode = OCRMode.TextFromImagesAndVectorsAndRepairedFonts ' Set the location of OCR language data files extractor.OCRLanguageDataFolder = "c:\Program Files\Bytescout PDF Extractor SDK\ocrdata\" ' Set OCR language extractor.OCRLanguage = "eng" ' "eng" For english, "deu" For German, "fra" For French, "spa" For Spanish etc - according To files In "ocrdata" folder ' Find more language files at ' Set PDF document rendering resolution extractor.OCRResolution = 300 ' You can also apply various preprocessing filters ' to improve the recognition on low-quality scans. Console.WriteLine("Please wait while PDF Extractor SDK is processing noisy image to read data...") ' Automatically deskew skewed scans extractor.OCRImagePreprocessingFilters.AddDeskew() ' Remove vertical Or horizontal lines (sometimes helps to avoid OCR engine's page segmentation errors) ' extractor.OCRImagePreprocessingFilters.AddVerticalLinesRemover(); ' extractor.OCRImagePreprocessingFilters.AddHorizontalLinesRemover(); ' Repair broken letters extractor.OCRImagePreprocessingFilters.AddDilate() ' Remove noise extractor.OCRImagePreprocessingFilters.AddMedian() ' Apply Gamma Correction extractor.OCRImagePreprocessingFilters.AddGammaCorrection() ' Add Contrast ' extractor.OCRImagePreprocessingFilters.AddContrast(20) ' (!) You can use New OCRAnalyser class to find an optimal set of image preprocessing ' filters for your specific document. ' See "OCR Analyser" example. ' Read all text Dim allText = extractor.GetText() Console.Clear() Console.WriteLine("Extracted Text: ") Console.WriteLine(allText) End Using Catch ex As Exception Console.Clear() Console.WriteLine("Exception: " + ex.Message) End Try Console.WriteLine("Press any key to exit...") Console.ReadLine() End Sub End Module

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



Get 60 Day Free Trial or Visit ByteScout PDF Extractor SDK page

Explore ByteScout PDF Extractor SDK documentation


Sign Up for free Web API key

Explore Web API Documentation