prajwalmylar / skew_correction

Deskewing images with slanted content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

skew_correction

De-skewing images with slanted content by finding the deviation using Canny Edge Detection.

To Run:

  • In python 3.6,

from deskew import Deskew

deskew = Deskew(input_file_path='path-to-input-image', display_image=True, output_file_path='path-to-output-image', rot_angle = 0)

deskew.run()

  • In config.json, toggle debug key between 1/0 to print the following details:

    Image File

    Average Deviation from pi/4

    Estimated Angle

    Angle bins

About

Deskewing images with slanted content

License:MIT License


Languages

Language:Python 100.0%