public void ReadOcrClass() { ocrMlp = new HOCRMlp(); string fontFile = directory + fontName + mlpFileExtension; HOperatorSet.FileExists(fontFile, out HTuple fileExists); // add control on fileexist if (fileExists = 1) { ocrMlp.ReadOcrClassMlp(fontFile); //textModel.CreateTextModelReader(mode, fontFile); } }
/* * public OCR(string mode, string fontFile) * { * //this.fontFile = fontFile; * this.mode = mode; * //ReadOcrClass(); * }*/ public OCR() { image = new HImage(); ocrMlp = new HOCRMlp(); textModel = new HTextModel(); }