VIDEOS

How to Use System Drawing Images for OCR Processing in C#

Kannaopat Udonpant
Kannapat Udonpant
December 30, 2024
Share:


In this tutorial, we delve into using Iron OCR to extract text from images with System.Drawing in C#. Starting with setting up Iron OCR and the necessary namespaces, we guide you through initializing the Tesseract object to read a TIFF image file. By converting this file into a bitmap object, we create an OCR image input instance, allowing Iron OCR to process and extract text from the image. The tutorial showcases different methods to handle images, including using Image.FromFile and AnyBitmap from IronSoftware.Drawing, demonstrating the flexibility of Iron OCR in processing images loaded through various techniques. Additionally, the video explains how to perform OCR on specific areas of an image by defining a scan region using coordinates and dimensions. By loading this region into an OCR image input method, we extract and print the text to the console. The tutorial concludes with running the project to explore the console output, providing practical insights into extracting text from System.Drawing objects using Iron OCR in C#. Viewers are encouraged to subscribe for more informative videos and to try out the software using the available trial package linked in the description.

Get stated with IronOCR now.
green arrow pointer

Kannaopat Udonpant
Software Engineer
Before becoming a Software Engineer, Kannapat completed a Environmental Resources PhD from Hokkaido University in Japan. While pursuing his degree, Kannapat also became a member of the Vehicle Robotics Laboratory, which is part of the Department of Bioproduction Engineering. In 2022, he leveraged his C# skills to join Iron Software's engineering team, where he focuses on IronPDF. Kannapat values his job because he learns directly from the developer who writes most of the code used in IronPDF. In addition to peer learning, Kannapat enjoys the social aspect of working at Iron Software. When he's not writing code or documentation, Kannapat can usually be found gaming on his PS5 or rewatching The Last of Us.
< PREVIOUS
How To Read PDFS in OCR C#
NEXT >
How to Read PDFs with IronOCR