Project to help me automate fuel tracking and play around with Intelligent Document Processing.
Given that you can link directly to an S3 bucket upload page:
https://s3.console.aws.amazon.com/s3/upload/<MY_S3_BUCKET>?iam_user=true&account=<ACCOUNT_NAME>®ion=ap-southeast-2&prefix=<my/bucket/prefix/>
I have something like this bookmarked in Chrome to easily upload TWO photos I take when tracking my fuel.
- Photo of the odometer
- Photo of the receipt
This project should help me automate this flow to collect this information:
- Transaction date
- Odometer reading
- Litres of fuel purchased (I always refill to the top)
- Type of fuel purchased (E10, ULP91, ULP95, ULP98)
- Total cost of fuel purchased
With this information I can deduce:
- Distance (from odometer readings)
- Price per Litre (Cost / Litres)
- Time between refuels (transaction date)
- Fuel Economy L / 100km (Litres and Odometer)
rm -rfv .venv
make init
make lock
make dev
make fix
#OR
make all
.venv/bin/python3 -m idp_fuel_tracker
# OR
make run
- group pairs of images by "Content Created Date" metadata
- https://stackoverflow.com/questions/23064549/get-date-and-time-when-photo-was-taken-from-exif-data-using-pil
- Process results of textract
- Get metadata about files
- get transaction date
- get odometer
- get litres of fuel
- get cost of fuel (and only fuel, no other purchases on receipt)
- get type of fuel
- Migrate code to AWS SAM