TesseractEngine3.dll
tesseract-ocr .net for tesseract 3.01 release r638
DLL)
VC100 & .Net 4.0 Client Profile
Data)
downlaod tessdata:
https://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.01-1.exe
Sample)
using OCR.TesseractWrapper;
// init
var processor = new TesseractProcessor();
bool inited = processor.Init(); -- or -- processor.Init(@".\", "eng", 3);
// load img
Image image = Image.FromFile(filename);
// recognize
processor.Clear();
processor.ClearAdaptiveClassifier();
string result = processor.Recognize(image);
Site)
https://code.google.com/p/tesseract-ocr
https://code.google.com/p/tesseractdotnet/
https://code.google.com/p/tesseract-ocr/downloads/detail?name=chi_sim.traineddata.gz&can=2&q=
(Chinese (Simplified) language data for Tesseract (3.00 and up))
TessactOcr.dll
Sample)
using OCR.TesseractWrapper;
using TessactOcr;
Bitmap bitmap = new Bitmap(text); //text:Image path
TessNet ocr = new TessNet();
ocr.ePageSegMode = (int)ePageSegMode.PSM_SINGLE_WORD;
ocr.eOcrEngineMode = (int)eOcrEngineMode.OEM_TESSERACT_CUBE_COMBINED;
ocr.lang ="eng"; //"chi_sim" Chinese (Simplified) language
ocr.SetTessractData(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)+ @"\tessdata\tessdata");
ocr.SetVariable("tessedit_char_whitelist","abcdefghijklmnopqrstuvwxyz");
string iden = ocr.ToCR(bitmap);
- 1
- 2
- 3
- 4
- 5
- 6
前往页