Пример #1
0
 private void ApplyChanges()
 {
     LocalBuffer.SetParent();
     ApplyClears();
     LocalBuffer.Clear();
     Dirty        = false;
     ItemsChanged = true;
     RaisePropertyChanged(nameof(Items));
 }
Пример #2
0
        public string GetText(Image image)
        {
            var buffer = new LocalBuffer();

            buffer.SaveImage(image);
            var extractedText = string.Empty;


            using (var pixImage = Pix.LoadFromFile(buffer.LastSavedFile))
            {
                using (var page = _tesseractEngine.Process(pixImage))
                {
                    extractedText = page.GetText();
                }
            }

            buffer.Clear();

            return(extractedText);
        }
Пример #3
0
 public void Clear(string key)
 {
     LocalBuffer.Clear(key);
     _clearedKeys.Add(key);
     Dirty = true;
 }