DeskewingYour Guide to DeskewingJDeskew 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
|
|