Usually it is white rectangle on the various backgrounds. So, I need to do three steps:
1. Detect receipt content
2. Align the receipt, to be horizontal
3. Crop the not needed background
The issue that I don't know where is to start. I have read a lot of internet pages, but didn't find anything particular.
I guess there is no completed method, and I need to combine different image processing methods.
Maybe you can give me the point to the right road. I mean tell what articles I should to read, what methods to learn.
My system is Ubuntu 14. And I can install any Image Magick version.
Examples of images. A marked with red rectangle the content that I want to get.


