Skip to content
This repository
branch: master
Octocat-spinner-32 api Added a function to retrieve the rotation of the page May 28, 2012
Octocat-spinner-32 ccmain Changed dll build to generate a .net compatible assembly. November 01, 2011
Octocat-spinner-32 ccstruct fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 ccutil removed BOM form strngs.h, updated NSIS script and COPYING October 22, 2011
Octocat-spinner-32 classify fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 contrib move bash completion script to a contrib directory instead of litteri… May 29, 2010
Octocat-spinner-32 cube fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 cutil fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 debian Debian packages of Leptonica to allow use of 1.67 November 30, 2010
Octocat-spinner-32 dict fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 doc man pages included to install script, improved windows installer scri… August 08, 2011
Octocat-spinner-32 image fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 java more Makefile.in August 18, 2011
Octocat-spinner-32 neural_networks make single/multiple libraries optional -- this needs testing!!! August 29, 2011
Octocat-spinner-32 po 3.01 code from http://github.com/jimregan/tesseract-ocr with addaptio… November 23, 2010
Octocat-spinner-32 tessdata Last minute fixes for making the tarball October 22, 2011
Octocat-spinner-32 tesseractconsole Added thresholder support, updated readme to list site content licens… November 17, 2011
Octocat-spinner-32 testing Deleted Makefile.in from svn August 18, 2011
Octocat-spinner-32 textord fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 training fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 viewer svpaint.cpp moved from include to source October 16, 2011
Octocat-spinner-32 vs2008 Get Debug configuration to run straight out of the box February 14, 2012
Octocat-spinner-32 vs2010 Get Debug configuration to run straight out of the box February 14, 2012
Octocat-spinner-32 wordrec fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 .gitignore Updated vs2008 solution to build .net version of tesseract. November 15, 2011
Octocat-spinner-32 ABOUT-NLS partially address issue 353 September 15, 2010
Octocat-spinner-32 AUTHORS Added virtual destructors to supress compiler warnings on OCRopus. March 19, 2007
Octocat-spinner-32 COPYING removed BOM form strngs.h, updated NSIS script and COPYING October 22, 2011
Octocat-spinner-32 ChangeLog Misc Makefile etc for 3.01 November 30, 2010
Octocat-spinner-32 INSTALL Added virtual destructors to supress compiler warnings on OCRopus. March 19, 2007
Octocat-spinner-32 INSTALL.SVN fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 Makefile.am Last minute fixes for making the tarball October 22, 2011
Octocat-spinner-32 NEWS Added virtual destructors to supress compiler warnings on OCRopus. March 19, 2007
Octocat-spinner-32 ReadMe_tesseract-ocr Renamed README filename so it doesn't conflict with my README November 03, 2011
Octocat-spinner-32 ReleaseNotes Last minute fixes for making the tarball October 22, 2011
Octocat-spinner-32 aclocal.m4 Last minute fixes for making the tarball October 22, 2011
Octocat-spinner-32 autogen.sh fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 configure.ac fixed "one lib" build on linux; runautoconf renamed to autogen.sh; October 16, 2011
Octocat-spinner-32 eurotext.tif Automake changes for version 2.00. July 18, 2007
Octocat-spinner-32 makemoredists fixed doxygen path and included doxygen to 'makemoredists' script June 25, 2011
Octocat-spinner-32 phototest.tif Added virtual destructors to supress compiler warnings on OCRopus. March 19, 2007
Octocat-spinner-32 readme.md Update readme.md December 08, 2012
Octocat-spinner-32 tesseract.spec improved script for creating language packages, improved tesseract.spec September 26, 2010
readme.md

Warning

This project has been deprecated in favour of https://github.com/charlesw/tesseract.

Overview

A tesseract-ocr .NET wrapper based on tesseractdotnet.

This project can be considered an (unofficial) fork off the tesseract-ocr project that adds a .NET wrapper using C++/CLI. It is based off the excellent work done by the tesseractocrdotnet team.

Code License: Apache License 2.0
Site Content License (Documentation etc): Creative Commons Attribution 3.0 Unported License

Example

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Drawing;
using OCR.TesseractWrapper;

namespace tesseractconsole
{
    public class Program
    {
        const string TessractData = @".\tessdata\";

        public static void Main(string[] args)
        {
            const string language = "eng";
            string imageFile = args[0];

            TesseractProcessor processor = new TesseractProcessor();

            using (var bmp = Bitmap.FromFile(imageFile) as Bitmap) {
                var success = processor.Init(TessractData, language, (int)eOcrEngineMode.OEM_DEFAULT);
                if (!success) {
                    Console.WriteLine("Failed to initialize tesseract.");
                } else {
                    string text = processor.Recognize(bmp);
                    Console.WriteLine("Text:");
                    Console.WriteLine("*****************************");
                    Console.WriteLine(text);
                    Console.WriteLine("*****************************");
                }
            }

            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}
Something went wrong with that request. Please try again.