Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
C++ C Java Objective-C Shell C#
branch: master
Failed to load latest commit information.
api Added a function to retrieve the rotation of the page
ccmain Changed dll build to generate a .net compatible assembly.
ccstruct fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
ccutil removed BOM form strngs.h, updated NSIS script and COPYING
classify fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
contrib move bash completion script to a contrib directory instead of litteri…
cube fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
cutil fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
debian Debian packages of Leptonica to allow use of 1.67
dict fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
doc man pages included to install script, improved windows installer scri…
image fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
java more Makefile.in
neural_networks/runtime make single/multiple libraries optional -- this needs testing!!!
po 3.01 code from http://github.com/jimregan/tesseract-ocr with addaptio…
tessdata Last minute fixes for making the tarball
tesseractconsole Added thresholder support, updated readme to list site content licens…
testing Deleted Makefile.in from svn
textord fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
training fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
viewer svpaint.cpp moved from include to source
vs2008 Get Debug configuration to run straight out of the box
vs2010 Get Debug configuration to run straight out of the box
wordrec fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
.gitignore Updated vs2008 solution to build .net version of tesseract.
ABOUT-NLS partially address issue 353
AUTHORS Added virtual destructors to supress compiler warnings on OCRopus.
COPYING removed BOM form strngs.h, updated NSIS script and COPYING
ChangeLog Misc Makefile etc for 3.01
INSTALL Added virtual destructors to supress compiler warnings on OCRopus.
INSTALL.SVN fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
Makefile.am Last minute fixes for making the tarball
NEWS Added virtual destructors to supress compiler warnings on OCRopus.
ReadMe_tesseract-ocr Renamed README filename so it doesn't conflict with my README
ReleaseNotes Last minute fixes for making the tarball
aclocal.m4 Last minute fixes for making the tarball
autogen.sh fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
configure.ac fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
eurotext.tif Automake changes for version 2.00.
makemoredists fixed doxygen path and included doxygen to 'makemoredists' script
phototest.tif Added virtual destructors to supress compiler warnings on OCRopus.
readme.md Update readme.md
tesseract.spec improved script for creating language packages, improved tesseract.spec

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.