public List <Item> ProcessReceiptImage(Bitmap image) { var receipt = _ocr.ConvertImage(image); var itemList = _dataConverter.ReceiptToItemList(receipt); _dataManager.SaveData(itemList); return(itemList); }
public List <Item> ProcessReceiptImage(Bitmap image) { if (image != null) { image = _imageFormating.FormatImage(image); var receipt = _ocr.ConvertImage(image); var itemList = _dataConverter.ReceiptToItemList(receipt); return(itemList); } else { return(null); } }
public Receipt ProcessReceiptImage(Bitmap image) { if (image != null) { image = _imageFormating.FormatImage(image); var receipt = _receiptCreating.FullReceiptCreating(image); receipt.ItemsList = _dataConverter.ReceiptToItemList(receipt); receipt.ItemsList = _itemCategorization.CategorizeItems(receipt.ItemsList); return(receipt); } else { return(null); } }