I get data usage reports for my cell phone in png bar graphs with the number and units for each day.
I use convert (from ImageMagic) to crop it to just the numbers and units in two vertical lines.
I then use tesseract to convert it to numbers and units,
tesseract used to create a text file in two lines like:
481 1.20 1.49
MB cB cB
The last month creates a text file like:
481
MB
1.20
cB
1.49
cB
Why would it start creating more than 2 lines?
BTW the cB is GB. :-) MB is always correct but GB is cB or op.
I just do if not MB it is GB.