ByteScout PDF Suite - VB.NET - Read text from noisy image with pdf extractor sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Suite – VB.NET – Read text from noisy image with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Suite – VB.NET – Read text from noisy image with pdf extractor sdk

How to read text from noisy image with pdf extractor sdk in VB.NET with ByteScout PDF Suite

How to write a robust code in VB.NET to read text from noisy image with pdf extractor sdk with this step-by-step tutorial

Read text from noisy image with pdf extractor sdk is simple to apply in VB.NET if you use these source codes below. ByteScout PDF Suite can read text from noisy image with pdf extractor sdk. It can be applied from VB.NET. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.

Want to save time? You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout PDF Suite for read text from noisy image with pdf extractor sdk below and use it in your application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Use of ByteScout PDF Suite in VB.NET is also described in the documentation included along with the product.

Our website gives trial version of ByteScout PDF Suite for free. It also includes documentation and source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
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 https://github.com/bytescout/ocrdata ' 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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Suite Home Page

Explore ByteScout PDF Suite Documentation

Explore Samples

Sign Up for ByteScout PDF Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next