예제 #1
0
파일: Ocr.cs 프로젝트: nico-izo/KOIB
        public Ocr()
        {
            string sCurrentDir = Directory.GetCurrentDirectory();
            Directory.SetCurrentDirectory("..");
            _events = null;
            LookForLostSquare = false;

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

            Initialize();
            Directory.SetCurrentDirectory(sCurrentDir);
        }
예제 #2
0
파일: Ocr.cs 프로젝트: nico-izo/KOIB
 public void SetEventsHandler(IOcrEventHandler eventHandler)
 {
     _events = eventHandler;
 }
예제 #3
0
파일: Ocr.cs 프로젝트: nico-izo/KOIB
 private void Dispose(bool disposing)
 {
     if(!_disposed)
     {
         if(disposing)
         {
         }
         try
         {
             Ocr.OCR_Initialize(null);
             _events = null;
             Ocr.CloseRecognition();
         }
         catch
         {
         }
     }
     _disposed = true;
 }