How to use the deskew.Deskew function in deskew

To help you get started, we’ve selected a few deskew examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kakul / Alyn / deskew.py View on Github external
def run(self):

		if self.input_file:
			self.deskew()

if __name__ == '__main__':

	parser = optparse.OptionParser()

	parser.add_option('-i', '--input', default = None, dest = 'input_file', help = 'Input file name')
	parser.add_option('-d', '--display', default = None, dest = 'display_image', help = "display the rotated image")
	parser.add_option('-o', '--output', default = None, dest = 'output_file', help = 'Output file name')
	parser.add_option('-r', '--rotate', default = 0, dest = 'r_angle', help = 'Rotate the image to desired axis', type = int)
	options, args = parser.parse_args()
	deskew_obj = Deskew(options.input_file, options.display_image, options.output_file, options.r_angle)
	deskew_obj.run()
github prajwalmylar / skew_correction / deskew.py View on Github external
default=None,
        dest='display_image',
        help="display the rotated image")
    parser.add_option(
        '-o', '--output',
        default=None,
        dest='output_file_path',
        help='Output file name')
    parser.add_option(
        '-r', '--rotate',
        default=0,
        dest='rot_angle',
        help='Rotate the image to desired axis',
        type=int)
    options, args = parser.parse_args()
    deskew_obj = Deskew(
        options.input_file_path,
        options.display_image,
        options.output_file_path,
        options.rot_angle)

    deskew_obj.run()

deskew

Skew detection and correction in images containing text

MIT
Latest version published 10 months ago

Package Health Score

65 / 100
Full package analysis

Similar packages