Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        /*
         * public OCR(string mode, string fontFile)
         * {
         *  //this.fontFile = fontFile;
         *  this.mode = mode;
         *  //ReadOcrClass();
         * }*/

        public OCR()
        {
            image     = new HImage();
            ocrMlp    = new HOCRMlp();
            textModel = new HTextModel();
        }