Iron Software. C# & .Net Component Library Developers
  • Products
    Read, edit, and sign PDFs Image to text in 127 languages Read and write QR & Barcodes No Office Interop required Extract structured data from websites 40% off Bundles Purchase a license for one product, get the second 40% off Contact our Team
  • About Us
  • Home
  • Licensing
  • Get Started
  • Languages
  • Code Examples
  • Tutorials
  • Support
IronOCR Library for C#
  • Home
  • Licensing
  • Get Started
  • Languages
  • Code Examples
  • Tutorials
  • Support
  • Download Free
IronOCR
IronOCR
Code Examples
  1. IronOCR
  2. Code Examples
  3. Expoting Images of OCR Elements
nuget   download  help
IronOCR
OCR in 1 line of code
PDF OCR Text Extraction
OCR with Barcode & QR Reading
125 International OCR Languages
Fixing Low Quality Scans & Images
Fast OCR Configuration
OCR Image Optimization Filters
OcrResult Class
Create Searchable PDFs by OCR
Tesseract 5 for .NET
Tesseract 4 for .NET
Tesseract 3 Legacy for .NET
Tesseract Detailed Configuration
OcrInput Class
OCR a Region of an Image
TIFF to Serchable PDF Converter
Image Resolution Optimization (DPI)
MultiThreaded Tesseract OCR
OCR for MultiPage TIFF Files
Make any PDF have Searchable, Copyable Text
Using Custom Tesseract Language Files
Multiple Languages for 1 Document
Exporting Images of OCR Elements

Exporting Images of OCR Elements

var Ocr = new IronTesseract();
using (var Input = new OcrInput(@"images\image.png"))
{
    var Result = Ocr.Read(Input);
    foreach (var Page in Result.Pages)
    {
        foreach (var Word in Page.Words)
        {
            Word.ToBitmap(Input).Save($"page{Page.PageNumber}_word{Word.WordNumber}.png", System.Drawing.Imaging.ImageFormat.Png);
        }
    }
}
Dim Ocr = New IronTesseract()
Using Input = New OcrInput("images\image.png")
	Dim Result = Ocr.Read(Input)
	For Each Page In Result.Pages
		For Each Word In Page.Words
			Word.ToBitmap(Input).Save($"page{Page.PageNumber}_word{Word.WordNumber}.png", System.Drawing.Imaging.ImageFormat.Png)
		Next Word
	Next Page
End Using
Read more
Try IronOCR free for development
Download Free
C# Object Reference and Get Started Tutorials
Object Reference
C# Library Licensing
Licensing
.Net Developer Support
Ask a Question

Exporting Images of OCR Elements

This example show how IronTesseract can extract the Image and coordinates for every character, word, line, or paragraph of text in any OCR document.

Previous Example
Next Example

The OCR Solution for your .Net Applications...

.Net Developer Support

Human Support

Talk directly with our development team

Ask a Question
C# Object Reference and Get Started Tutorials

Documentation

Clear online manuals in plain English.

View Documentation
C# Library Licensing

Simple Licensing

Free development license. Commercial from $399.

Browse Options
Install The C# OCR library

Get Started Now

Get started in minutes with NuGet or DLL.

Install & Try Now
Try IronOCR for Free
Get Set Up in 5 Minutes
C# Nuget Library for PDF
Install with NuGet
Version 2020.12.2
Install-Package IronOcr
nuget.org/packages/IronOcr/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronOCR"
  3. Select the package and install
C# PDF DLL
Download DLL
Version 2020.12.2
Download Now
Manually install into your project
  1. Download and unzip IronOCR to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronOCR.dll"
Licenses from $399

Have a question? Get in touch with our development team.

Install with Nuget
C# Software Library Developers

Copyright © 2013-2021
Iron Software

Terms | Privacy

    Iron Software LLC

    205 N. Michigan Ave.
    Chicago, IL 60611
    USA

    +1 (312) 252-3088

    Contact Team Iron

    Products

    • IronPDF
    • IronOCR
    • IronBarcode
    • IronXL
    • IronWebScraper

    Information

    • Ask a Question
    • Documentation
    • Tutorials
    • Object Reference
    • About Us