Python - Tesseract read and split data as dataframe

Viewed 44

I'm new to Tesseract and trying to convert the attached image into data splited as item name, % and price, and save it to a datafile for future use.

After a bit of trying i'm able to get the following as a single str variable and is working to convert it into a dataframe


Ambergris,102,1597

Lead Ore,99,550

Broad Bean,101,67

Lemon Balm,104,156

Fennel,96,463

Grape,94,99


Is there a way to do all this when Tesseract read the image as i know the data are shown in a specific pattern (i.e. [Item Name, which is all char], [%, 2 or 3 digit and end with '%'], [price, digits with ',']?

Thanks!

enter image description here

0 Answers
Related