Skip to content

A C++ lib for deskewing images with text (or other horizontal-types lines)

Notifications You must be signed in to change notification settings

TyGuy/deskew_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deskew Text images (using Leptonica)

We just deskewed all over the place.

Installation

brew install leptonica
git clone git@github.com:TyGuy/deskew_text.git

Usage:

make clean && make
# ./deskew <filename_base>
# NOTE: .png file extension is assumed, don't add it
./deskew sample_image

Dev:

real simple, just edit files, run make, then the executable.

TODO:

Make usage easier:

  • don't assume png, make it so you pass in full file name, and just ensure it's a raster image.
  • print more helpful text
  • let user customize it more (right now skew angle assumed between -45 and 45 degrees)

Other Ideas:

  • de-warp
  • use otsu threshold for binarization instead of

External Resources:

Contributors:

Jeff Rafter, Tyler Davis

License:

MIT

About

A C++ lib for deskewing images with text (or other horizontal-types lines)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published