VIDEOS

How to Use Input Images for OCR Processing in C#

Kannaopat Udonpant
Kannapat Udonpant
January 30, 2025
Share:


In this video tutorial, viewers learn how to perform Optical Character Recognition (OCR) in C using the Iron OCR library. The tutorial begins by setting up the necessary environment, including installing the Iron OCR package and setting the license key. It guides users through the process of importing required namespaces and instantiating an Iron Tesseract object, which is crucial for performing OCR on images. The tutorial demonstrates how to read text from an image file named 'label.png' by using an OCR image input class. It explains the read method, which processes the image and extracts text, subsequently printing it to the console. The tutorial also shows how to handle images stored as byte arrays, which is useful when images are sourced from streams or other non-file inputs. It further discusses performing OCR on a specific region of an image by defining the area with coordinates and dimensions, enabling selective text extraction. The video concludes with a demonstration of the tutorial's examples, showing outputs of extracted text from full images, byte arrays, and specified regions. Viewers are encouraged to integrate these techniques into their projects to enhance OCR capabilities. The tutorial ends with a call to action, inviting viewers to download the Iron OCR package and explore its features.

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 extract text from an image file
NEXT >
How To Read PDFS in OCR C#