2
\$\begingroup\$

I usually take a picture of bill or receipt using my mobile phone and store it in a computer. Is there any desktop or Web-based software which can straighten the photo of a paper and flatten it? For example I want to create a rectangular image without any distortion from this image.

enter image description here

\$\endgroup\$
4
  • \$\begingroup\$ I don't think this is really on-topic, but there are a number of phone apps which do just what you want. I use an app called Genius Scan on my iPhone. \$\endgroup\$
    – mattdm
    Commented Mar 26, 2012 at 11:11
  • \$\begingroup\$ Right, even cam scanner does it for Android but I need a desktop app or web based solution \$\endgroup\$
    – Neil
    Commented Mar 27, 2012 at 17:55
  • \$\begingroup\$ This should be moved to stackoverflow, if really an automatic solution is/was required. \$\endgroup\$
    – Unapiedra
    Commented Apr 13, 2012 at 19:08
  • 1
    \$\begingroup\$ Recent versions of Hugin, which is primarily a panorama-stitching program, are pretty good at automatically identifying horizontal and vertical control points. That might be a starting point for a solution. hugin.sourceforge.net hugin.sourceforge.net/tutorials/perspective/en.shtml \$\endgroup\$
    – coneslayer
    Commented Apr 13, 2012 at 19:24

1 Answer 1

2
\$\begingroup\$

Yes. This kind of distortion is known as "keyhole" or "perspective" distortion. Many commercial image processing programs include capabilities to correct it. An illustrated workflow using the GIMP (a free download) is illustrated at http://graphicssoft.about.com/od/gimp/ss/perspective.htm.

\$\endgroup\$
4
  • \$\begingroup\$ The title suggests that an automatic approach is sought. This one requires manual intervention. \$\endgroup\$
    – Unapiedra
    Commented Apr 13, 2012 at 19:06
  • 1
    \$\begingroup\$ Yes, @Una, the title may suggest that, but the question seems to leave it open. Before voting (or suggesting) to close you should at least request a verification from the OP on that point. In fact, why would automatic solutions be off topic here, anyway? \$\endgroup\$
    – whuber
    Commented Apr 13, 2012 at 20:58
  • \$\begingroup\$ I haven't, and I suspect the OP isn't around anymore. I don't believe that this is off topic. The reason, why I would suggest moving it to SO, is that it will get answered there. \$\endgroup\$
    – Unapiedra
    Commented Apr 13, 2012 at 21:03
  • \$\begingroup\$ I'm curious why you think this would get answered over on SO, and not get closed the moment it lands? This is not a programming, language, or platform question...its a software question at worst, and still a photography question at best. Cropping and distortion correction are most definitely within the realm of on-topic here, and I think whuber has offered a decent starting point in his answer. Combined with a little Scriot-Fu, and this could probably be automated quite easily. \$\endgroup\$
    – jrista
    Commented Apr 14, 2012 at 1:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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