Giter VIP home page Giter VIP logo

doc_rotator's Introduction

              +----------------------+
              |      doc_rotator     |
              +----------------------+

Build Status

A simple tool for rectifying tilted scanned images.

License : see the LICENSE file. Authors : see the AUTHORS file. How to build the program: see the INSTALL file.

It first detects the lines segments in the document. These lines can be made by text characters, drawings, etc. The method used is the Hough transform for line segments, cf the Wikipedia page about it. http://en.wikipedia.org/wiki/Hough_transform

However, not all lines correspond to the text lines, there also are some outliers, such as a frame around the page, or simply false detections. To determine the predominant orientation, a RANSAC filter is applied on the bunch of line segments (cf the RANSAC Wikipedia page for details: http://en.wikipedia.org/wiki/RANSAC ).

The most "popular" orientation is then used to rectify the document.

This application was coded in C++ using OpenCV. The source code is online at https://sites.google.com/site/rameyarnaud/media/books/scanned-doc-rotater .


How to use the program


To display the help, just launch the program in a terminal. It will display the help of the program.

Note: this can also be done with ImageMagick: $ mkdir deskewed --parents ; for F in ls *.jpeg; do echo $F ; convert $F -deskew 40% "deskewed/$F" ; done :)

doc_rotator's People

Contributors

arnaud-ramey avatar

Stargazers

Eric avatar

Watchers

 avatar James Cloos avatar

Forkers

anubhavrohatgi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.