Document Image Enhancement with Perspective Transformation using Python

Muktyas, Indra and Murnaka, Nerru and Arifin, Samsul and Maki, Wikky Al (2022) Document Image Enhancement with Perspective Transformation using Python. In: Proceedings of the 2nd International Conference on Education, Humanities, Health and Agriculture, ICEHHA 2022, 21-22 October 2022, Ruteng, Flores, Indonesia.

[thumbnail of 53867.pdf] PDF
53867.pdf

Download (1MB)

Abstract

Many people need soft files of their important documents. One of the technological sophistications that are currently developing is to use a smartphone camera to photograph a document. However, the results from the photo are not like the results with a precision-shaped scanner. Based on this, we developed a program that can improve the quality of a distorted (imprecise) document image to become a scanned-like rectangle image. In addition, the purpose of this study is to find out some of the mathematical theories behind it. The method we use is a literature study on line gradients, perspective transformations, and central tendency. Then we apply it to the python program. The results of this study are gradients can be used to determine the boundaries of the rectangular area of the document image. The perspective transformation can be used to change a shape from an arbitrary quadrangle to a rectangle. Central tendency (mean, median, and mode) can be used to fill in the gaps in the perspective transformed image.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: scanline, gradient line, perspective transformation, measure of central tendency, python
Date Deposited: 04 Mar 2026 16:14
Last Modified: 03 Dec 2026 12:43
URI: https://eprints.eai.eu/id/eprint/42872

Actions (login required)

View Item
View Item