Example #1
0
File: Ocr.cs Project: nico-izo/KOIB
        public Ocr()
        {
            string sCurrentDir = Directory.GetCurrentDirectory();
            Directory.SetCurrentDirectory("..");
            _events = null;
            LookForLostSquare = false;

            s_runRecCount = 0;    // инициализирую количество вызовов функции RunRecognize

            Initialize();
            Directory.SetCurrentDirectory(sCurrentDir);
        }
Example #2
0
File: Ocr.cs Project: nico-izo/KOIB
 public void SetEventsHandler(IOcrEventHandler eventHandler)
 {
     _events = eventHandler;
 }
Example #3
0
File: Ocr.cs Project: nico-izo/KOIB
 private void Dispose(bool disposing)
 {
     if(!_disposed)
     {
         if(disposing)
         {
         }
         try
         {
             Ocr.OCR_Initialize(null);
             _events = null;
             Ocr.CloseRecognition();
         }
         catch
         {
         }
     }
     _disposed = true;
 }