Example #1
0
        public List <Item> ProcessReceiptImage(Bitmap image)
        {
            var receipt  = _ocr.ConvertImage(image);
            var itemList = _dataConverter.ReceiptToItemList(receipt);

            _dataManager.SaveData(itemList);
            return(itemList);
        }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }