I recorded my screen on the Android app to show what's going on. I downloaded the apk from here. Maybe I'm not doing something correctly. It takes nearly 45 seconds to stop loading.
Google Photos Video link
I opened up Postman to see what the API is up to and here's the response with an uploaded png with the key of "image":
https://10.0.0.10:8721/api/upload/
{
"storeName": null,
"receiptTotal": null,
"receiptDate": "null",
"receiptCategory": "grocery"
}
The server is running with instructions from the receipt-parser-server readme on Docker with
docker pull monolidth/receipt-parser:latest
docker run -p 8721:8721 monolidth/receipt-parser
And I had to add a directory in the server Docker container for /app/data/img
to fix an error.
But further inspection of the container shows that it did OCR the images:
root@c1e3b968b0a7:/app# ls data/txt/
receipt_2020-11-30_143843.txt receipt_2020-11-30_144826.txt receipt_2020-11-30_151504.txt
receipt_2020-11-30_144445.txt receipt_2020-11-30_151113.txt snip_20201130145614.txt
As I'm writing my Issue here I'm discovering more.
So I forked the repo and rebuilt the server Docker container with a new config.yml ...
...
It's been a few hours now and I made a few changes to ReceiptManager/receipt-parser now. I found that a regex wasn't matching lines correctly and a normalize()
function needed another string function to properly split lines and not literally every character.
Anyways... The mobile app still didn't add any receipts as shown in the video. It did, however, fill in the name of my grocery store correctly, which was neat. If I'm missing something please let me know!
enhancement