A scanned attachment goes through OCR and comes out as structured rows.
The supplier’s email lands in your inbox and your rule catches it. But the invoice number, the total and the due date sit inside a scanned PDF, and to a normal parser that file is only a picture. To parse scanned email attachments, you need one extra step first: optical character recognition (OCR), which turns the picture into text that software can read.
That step got cheaper on 25 November 2026. Amini released Soma-1X Lite, a compact open-weight model that reads images of paper records and returns the text, the layout and the reading order. It runs on a single GPU, and the weights are free to download. This guide follows on from our AI email parsing guide. It shows where a model like this fits, what to check before you trust it, and where ExtractMails does the work for you.
TL;DR:To parse scanned email attachments, run OCR before field extraction. Soma-1X Lite is a free OCR model of about 2 billion parameters that you can host yourself. Amini reports a score of 84.7 on olmOCR-Bench and about $0.22 per 1,000 pages in GPU compute. Check the licence, test it on your own documents, and keep a human review for money fields. No GPU or engineers? ExtractMails reads the attachment and sends the data to your sheet or CRM.
Why scanned attachments break normal email parsing
A PDF made by accounting software holds real characters. A parser can read them the same way it reads the email body. A scan or a phone photo holds only pixels. There is no text layer, so you cannot parse scanned email attachments with body rules alone.
These are the files that cause the trouble:
- Scanned supplier invoices and purchase orders
- Signed forms and contracts sent back as a photo or a scan
- Delivery notes with stamps or handwritten remarks
- Photographed receipts for expense claims
- ID documents sent for customer or employee onboarding
The result is familiar. Your parser captures the sender, the subject and the body, and the fields that matter stay blank. Then someone types the numbers into a sheet by hand, which is slow and invites mistakes.
How to parse scanned email attachments in four steps
OCR email attachments first, then pull out the fields. The pipeline has four steps.
Left to right: email, scanned page, OCR model, extracted fields, sheet or CRM.
- Capture the attachment.Route the email to your parser and pull out the PDF, JPG, PNG or TIFF file. A multi-page PDF is rendered as one image per page.
- Run OCR.A model converts each page image into text. Good models also keep the layout, so a table stays a table and the lines come back in the order a person would read them.
- Extract the fields.Rules or an AI model map the text to named fields such as invoice_number, total and due_date.
- Validate and send.Check dates and amounts, compare them with the email body, flag conflicts, and push clean rows to your sheet or CRM.
Why OCR comes before field extraction
When you parse scanned email attachments, every later step depends on the text that OCR produces. If a 0 is read as an 8 in a total, the extraction step will pass that wrong number along with full confidence. Keeping the two steps separate also lets you swap the OCR model later without rebuilding your field rules.
Step four matters too. An email body may say one amount while the attached invoice says another. Set a rule, such as “the attachment wins, and the row is flagged for review.” If the basics are new to you, our explainer on what email parsing is covers rules, templates and fields in plain terms.
What Soma-1X Lite is and what Amini claims
Amini was founded in 2022 by Kate Kallot and builds AI infrastructure for countries in the Global South. Soma, which means “read” in Swahili, grew out of work to digitize government archives, land registries and handwritten ledgers. The table below sums up the figures Amini has published.
| Item | What Amini reports |
|---|---|
| Model size | About 2 billion parameters, fine-tuned from Qwen3.5-2B |
| Output | One block per page element in reading order, each with a label, a bounding box and its content; tables in HTML, math in LaTeX |
| Benchmark | 84.7 overall on olmOCR-Bench |
| Speed | Up to about 15,000 pages an hour on a single NVIDIA RTX PRO 6000 GPU |
| Estimated compute cost | About $0.22 per 1,000 pages, based on about $3.36 an hour for an on-demand AWS GPU server |
| Languages | Strong in English, French and Spanish; lowest average error rate of five open models across ten African languages |
| Where to get it | Hugging Face: AminiTech/Soma-1X-lite-1120-preview |
Amini says the 84.7 score puts the model ahead of Gemini 3.8 Flash, GPT-5.5 and Claude Sonnet 5 on that benchmark. Treat this as a vendor’s own result for now. The Soma announcement gives no scores for the other models in its text, and the repository name still carries the word “preview.” Amini is releasing the weights, inference instructions and evaluation code, so other teams can repeat the tests.
Two details matter for email work. The block labels include tables and signatures, which helps with invoice line items and signed forms. And the bounding boxes show where on the page a value came from, which speeds up a human check.
When an open source OCR model helps, and when it doesn’t
Soma-1X Lite is an open-weight release, which is what most people mean when they search for an open source OCR model. Hosting one yourself makes sense in two cases:
- Privacy.The model runs inside your own infrastructure, so IDs, contracts and bank details never leave it.
- Volume.At thousands of pages a day, paying for GPU time can cost less than paying per page.
It is a poor fit in other cases. If you parse scanned email attachments only a few dozen times a week, a GPU server is more than you need. OCR is also only step two. You still have to build the capture, the field extraction, the checks and the delivery around it. Amini’s cost figure covers GPU compute only, not staff time, storage or monitoring.
| Option | What it reads | What you manage | Cost basis | Best for |
|---|---|---|---|---|
| Plain email parsing | Email body and text-based files | Parsing rules | Parser plan | Emails with the data in the body |
| Self-hosted open OCR model (Soma-1X Lite) | Scanned pages and photos | GPU, model server, extraction and delivery | GPU time; Amini estimates about $0.22 per 1,000 pages | High volume or strict data rules |
| Cloud AI model API | Scanned pages and photos | API calls, prompts, extraction and delivery | Usage pricing set by the provider | Quick trials and low volume |
| Managed parser with OCR (ExtractMails) | Email body and attachments | Field setup and review | Subscription plan | Teams that want the data without the infrastructure |
Licence and accuracy checks to make first
Before you parse scanned email attachments in a live workflow, run through these checks.
- Read the licence.The announcement calls the model open-weight and names no licence. The Hugging Face model card states the Apache License 2.0, which permits commercial use. Read it again before you deploy, because a preview release can change.
- Test on your own files.Run a sample of real attachments from your inbox, including skewed scans, faint print and angled photos.
- Measure fields, not pages.A page can look fine and still have the wrong total. Count how often the invoice number, date and amount come out exactly right.
- Expect weak spots.Amini lists handwritten, faded and low-quality records, merged table cells, and forms that mix text with fields as areas it is still working on.
- Mind privacy law.IDs and signed forms are personal data. GDPR applies in the EU and UK, state laws such as the CCPA apply in the US, and the Privacy Act applies in Australia.
- Keep a person in the loop.Send low-confidence rows and every payment amount to a reviewer before the data reaches your books.
Where ExtractMails fits
ExtractMails is our email parser. It extracts data from incoming emails automatically, and the same platform parses documents. It includes OCR data extraction, table extraction and a PDF parser that pulls text, fields and tables. So you can parse scanned email attachments in one place: the email arrives, the attachment is read, and the fields you chose are filled in.
From there the data goes where you work. ExtractMails connects to Google Sheets and Excel, to Zapier and Make, and to your own systems through a webhook and REST API, which is how the rows reach a CRM. There is no GPU for you to run.
How do you choose? If you have engineers, heavy volume or strict rules on where data lives, a self-hosted model such as Soma-1X Lite is worth a trial. Otherwise, use a managed tool. Our comparison of email parsing software shows what to look for.
Conclusion
To parse scanned email attachments, run OCR first, then extract fields, then validate before anything reaches your sheet or CRM. Soma-1X Lite makes the OCR step cheap to run yourself, as long as you check the licence, test it on your real documents and plan for the engineering around it. Amini’s technical write-up has the full benchmark method if you want to dig deeper.
Prefer to skip the setup? Forward a few of your scanned invoices to ExtractMails and see the fields arrive in your sheet. Get started on extractmails.com, or book a demo and bring your hardest attachment.
Share on media