Won´t scan tickets correctly

Hi, I´m currently testing the OCR with pictures of tickets but it doesn´t scan the products correctly, it scans other parts of the ticket, does anyone have advice on how to filter the products? thanks in advance!

Hi, can you please post a sample image for us to test?

1 Like

I uploaded 3 tickets, if you need more I can send them, thanks!

I did a test with the first image with OCR Engine2, and the product text looks good to me - but the quantity is missing. Single digit OCR is tricky.

→ Just to clarify: Is this (the missing quantity) the issue you are seeing?

nope not exactly, i wanted to extract the data in a json format if possible to only show the products, the quantity and price but it shows everything contained in the ticket; also, some products appear as “empty”, is there something I can do to fix these two issues?

Our OCR API always returns all text in a document/image. If you need only specific data, you can then post-process the OCR result. You could, for example, use regular expressions for this, or feed it into one of the LLM like ChatGPT, Gemini or Mistral.

For this issue, can you please post an example (overlay) screenshot that shows the missing data? There might be a fix for this, once we see the issue.

For the best OCR text recognition you cannow use the new OCR Engine 3 now. It returns the text in all your tickets correctly. It also returns the core receipt part as markdown table - so you can parse it easily and convert it to json or any other format as needed:

Example result for your first receipt:

MARA & CO.
RFC:REAA701204T5B
AV. EPIGENIO GONZALEZ NO.505 COL. TECNOLOGICO
QUERETARO QUERETARO MEXICO CP 76158
TEL:4422174534

MESAA:0SA
MESEO: FERNANDO
PERSONAS:1
ORDEN:A29
FOLIO:A36792
13/05/2025 09:46:14 PM
13/05/2025 11:23:45 PM

ITEM DESCRIPTION PRICE
1 PAPAS A LA FRANCESA $80.00
2 LIMONADA MARA $135.00
3 VASO MICHELADO CLAMA $45.00
4 CERVEZA XX LAGER LAT $120.00
5 BOHEMIA VIENNA $175.00
6 HOT DOG MARA $100.00
7 BURRITO DE COSTILLA $180.00
8 HAMBURGUESA MARA $140.00

TOTAL: $975.00

SON:NOVECIENTOS SETENTA Y CINCO PESOS 00/100 M.N
SUBTOTAL:$840.5200 IVA:$134.4828
ESTE NO ES UN COMPROBANTE FISCAL
MARA & CO.

Si requiere factura, escanee el código QR o ingrese a la siguiente página
https://mefacturo.mx/maraco

CODIGO FACT: 10758764RE25LIS