Vaccine Card Scanner
Iβm an AI enthusiast. When I read about the NYC Covid Safe cat-gate scandal
(here and here), I wanted to know if I could make something a little bit better. Below is my 2-weekend attempt using a few low-cost AWS tools.
If you upload a non-Photoshopped image
that fools the scanner, I'll buy you a beer (or coffee or tea).
Background story here.
1. Upload an image
2. View image
- File size: < 5mb ish (jpg or png)
- Not bullet proof! Just better than this.
- No photoshopping please! Just pics from your camera
- Only πΊπΈ US vaccine cards are recognized π’
- All uploaded images go to a non-public s3 bucket, and are purged every 24 hours
- URL's are pre-signed with expirations β so they self-destruct. I'm not keeping tabs on you π β I promise!
How it Works
Attach an image 5MB or less (png or jpg)
The app does some validation, then dispatches a GET request that sends back a pre-signed S3 URL that allows you to (temporarily) upload a specific file to a specific bucket. Pre-signed URLs are super handy. They come with expiration dates, and are generally a safe way to expose S3 bucket functionality to anonymous users.
When youβre ready, click the upload button. The app dispatches a PUT request, and the file is uploaded to the bucket. When the upload completes, two things happen:
A second pre-signed GET url is generated β this one allows you to view your uploaded image in the context of the web page (temporarily) β this too will expire
A lambda function is triggered which sends a Slack notification to yours truly
Finally, the app dispatches a POST request β this is the one that actually scans the uploaded image in the bucket. When the scan completes, the json response is displayed to the user.
This is a follow-up effort to this.