public async Task <string> GetStringFromImage(Mat image) { await _tesseractEngine.SetImage(image.ToBytes()); var result = Regex.Replace(_tesseractEngine.Text, @"\s+", ""); _tesseractEngine.Clear(); return(result); }