Python + AutoML Vision = Automated Document Analysis
summary
Prototype builds an automated pipeline using Python, Google AutoML Vision, GCP (Cloud Functions, Cloud Run, Cloud Storage, Firestore), Backblaze for PDFs, and Terraform to retrain and deploy models on demand. The system runs 500 concurrent jobs that each take ~10 minutes to extract pages, read QR codes, convert PNGs and then trigger a model training that can take hours. Surprises include DPI metadata crashes, poor QR legibility solved with BoofCV subpixel QR scanning, and label granularity requiring ~1,000 samples per label; result so far: 11 labels at >99% accuracy and costs cut from $8k to ~$100/month.
AI-written summary · about
chapters (24)
- 0:00Intro
- 1:17Introductions
- 2:50The Problem
- 5:38Requirements
- 8:17AutoML Vision
- 8:44Cloud Functions and Cloud Run
- 10:00Other parts of GCP
- 11:51Training and Classification
- 13:10Training Process
- 16:27Classification
- 19:34Resolution
- 21:27Subpixel Resolution
- 23:07QR Codes
- 23:52Label Granularity
- 25:40The Real Work
- 27:59Python
- 28:18AutoML
- 29:38Terraform
- 30:22Serverless
- 32:04Cost Savings
- 33:33Encryption
- 35:11Workflow
- 36:14Bottom Line
- 38:51Conclusion
