search XML syndication

Deskewing

Your Guide to Deskewing

JDeskew is a free, open source image deskew program.

It is a port of the code provided by GMSE Imaging: http://www.codeproject.com/KB/graphics/Deskew_an_Image.aspx

To use this code, simply unzip the jdeskew.zip file, and run the following commands:

 

cd target

 

java -jar jdeskew.jar (your input image file) (your deskewed image output file)

 

JDeskew will work with any format that Java's ImageIO supports. If you want to use other (unsupported) formats, you can modify the code and use JAI or Sanselan.

The code is licensed under The Code Project Open License (license included in the zip file).

JDeskew uses the Hough Transform algorithm to detect the skew angle of the image.

 

Listings
An image deskew program fully written in Java. A port of the VB code written at: http://www.codeproject.com/KB/graphics/Deskew_an_Image.aspx
http://www.recognition-software.com/jdeskew.zip
(Clicks: 245; Pagerank: 0; Comments: 0; Listing added: Oct 24, 2009) :: Listing Details