# ptl

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Kraisorn Arjharnsaranont](https://cerebralvalley.ai/u/kraisorn)
- **GitHub:** https://github.com/kraisorna/phone-to-ledger
- **Demo video:** https://youtu.be/NN6eb5KNLeI
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/879

phone-to-ledger turns a phone photo of a Thai receipt, tax invoice or abbreviated (ABB) slip into an accountant-ready ledger row. Thai small shops run on paper: faded thermal slips, ABB forms and 2-digit Buddhist-era dates, which bookkeepers still retype by hand every month.

Pipeline: photo → ingest (EXIF strip + PII scrub for Thailand's PDPA) → segment (SAM 3.1 finds each slip, several per photo) → extract (Muse Spark fills a strict JSON schema) → validate (rules R1–R14: integer satang, VAT recomputed at 7%, tax-ID and duplicate checks) → export (CSV / XLSX). Anything that fails a money rule or looks doubtful goes to a human review queue with the reason; it is never silently posted.

On 25 hand-transcribed receipts the full pipeline gets grand totals, tax IDs and dates 25/25, and every auto-accepted document was exactly right (14/14). Stdlib-only Python, 444 tests, MIT license.

Built during the hackathon: all code, tests, prompts, gold labels and the evaluation (first commit Oct 28, 2026). The author's own design notes (Aug 29–30) and many of the receipt photos used as test data existed before the event; the README's "Built during the hackathon" section lists them.

## More from Meta Global AI Developer Hackathon

- [Muhammadu Lebbe Hibathul Careem](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/876)
- [Adaptwise](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/877)
- [hereIGo](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/878)
- [Tryzeon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/880)
- [CausalAI](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/881)
- [Argus](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/882)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/879. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
