Exemple #1
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);
     }
 }
Exemple #2
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);
     }
 }