https://github.com/brianprost/re-receipts
Use Bedrock to rename receipt images based on their contents
https://github.com/brianprost/re-receipts
Last synced: about 2 months ago
JSON representation
Use Bedrock to rename receipt images based on their contents
- Host: GitHub
- URL: https://github.com/brianprost/re-receipts
- Owner: brianprost
- Created: 2024-12-05T09:23:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-07T16:53:45.000Z (over 1 year ago)
- Last Synced: 2025-02-26T12:43:19.607Z (over 1 year ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# re-recipts
This script uses Amazon Nova's image analysis capabilities to rename receipt images based on their contents. I built this for keeping track of all of my recipts for re:invent 2024.
## Usage
### Prerequisites
1. Install [Deno](https://deno.com/)
2. ~~Install all of the node modules~~ jk you're using Deno so you don't have to do that.
3. Make sure you have authenticated your CLI to AWS and that you have access to Amazon's New Nova models (we're using **Nova Pro** for this script)
4. Freshly brewed coffee (or Earl Grey tea)
### Instructions
1. Place your receipt images in the receipts directory
2. Run the script:
```shell
deno run -A main.ts
```
The script will:
1. Process all images in the receipts directory
2. Generate appropriate names based on image content
3. Save renamed copies in the renamed-receipts directory
4. Display progress and results in the console
[Supported](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-runtime/Interface/ConverseCommandInput/) Image Formats
- JPEG (`.jpg`, `.jpeg`)
- PNG (`.png`)
- GIF (`.gif`)
- WebP (`.webp`)