Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any OCR-library/cliapp that lets me do something like this:

# ./ocrapp -input file.pdf -posx 3.6cm -posy 7.8cm -width 10cm -height 1.5cm -output rawdata.txt

I'm trying to automate reading of Customer ID numbers, sums and such from scanned invoices and bills. I'm looking for a library or a cli-app because I want to create my own document management system from it ;) (platform is not important, just not osx only).

A typical norwegian invoice looks like this:

The information I need to extract is in the bottom. (KID, Beløp and Kontonummer)

Any tips?

share|improve this question

closed as off-topic by bwDraco, Nifle, DavidPostill, Kevin Panko, mdpc Jan 19 '15 at 3:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – bwDraco, Nifle, DavidPostill, Kevin Panko, mdpc
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

I'd suggest you find a command line cropping tool e.g. on ubuntu

You can then write a short script to crop each invoice into small sections which contain the text you want, and run those through any OCR program.

Of course, if you're writing a document management system, this could all be done using common libraries for your chosen programming language (and this question should probably be on stackoverflow)

share|improve this answer
I just did an actual facepalm, because I didn't think of doing it that way myself... :/ – Christian Wattengård Apr 9 '13 at 16:52

Try to use ABBYY Cloud OCR SDK. This is the link for detailed guide how to recognize text fields: I work for ABBYY and if you need additional information I'm ready to help you.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.