Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tesseract .NET Process image from memory object

Tags:

.net

tesseract

From what I understand (I could be wrong) Pix.LoadFromFile is the only way to get Pix for processing. is there any other way, such as from a bitmap?

like image 848
Slime recipe Avatar asked Oct 02 '14 13:10

Slime recipe


People also ask

How to add Tesseract to NuGet?

Add the Tesseract NuGet Package by running Install-Package Tesseract from the Package Manager Console. Also, its worth while reading the site thoroughly. Disclaimer, i have never used this library before, just looked up the information Update

How to use pytesseract to read text in images?

Pytesseract or Python-tesseract is an Optical Character Recognition (OCR) tool for python. It will read and recognize the text in images, license plates, etc. Here, we will use the tesseract package to read the text from the given image. Loading an Image saved from the computer or download it using a browser and then loading the same.

What is tesseract SDK?

Tesseract.NET SDK is a class library based on the tesseract-ocr project. It can read a wide variety of image formats and convert them to text in over 60 languages. To develop the sample application, we will need Visual Studio and a basic knowledge of C# programming. I will be using Visual Studio 2015 with .NET Framework 4.5.

What is Tesseract OCR?

The Tesseract optical character recognition engine (OCR) is a technology used to convert scanned paper documents, PDF files, and images into searchable text data. The OCR engine detects the characters in the image and puts those characters into words, enabling developers to search and edit the content of the document.


1 Answers

I am not professional in tesseract, but you can use the following:

Bitmap bmp = (Bitmap)Bitmap.FromFile(MyImgFilePath); 
Pix img = PixConverter.ToPix(bmp);

you can take a look at source code of PixConverter at :
https://github.com/charlesw/tesseract/blob/master/src/Tesseract/PixConverter.cs

like image 112
houssam Avatar answered Sep 28 '22 12:09

houssam