Proceedings of the 2nd International Conference on Education, Humanities, Health and Agriculture, ICEHHA 2022, 21-22 October 2022, Ruteng, Flores, Indonesia

Research Article

Document Image Enhancement with Perspective Transformation using Python

Download203 downloads
  • @INPROCEEDINGS{10.4108/eai.21-10-2022.2329633,
        author={Indra Bayu Muktyas and Nerru Pranuta Murnaka and Samsul  Arifin and Wikky Fawwaz Al Maki},
        title={Document Image Enhancement with Perspective Transformation using Python},
        proceedings={Proceedings of the 2nd International Conference on Education, Humanities, Health and Agriculture, ICEHHA 2022, 21-22 October 2022, Ruteng, Flores, Indonesia},
        publisher={EAI},
        proceedings_a={ICEHHA},
        year={2023},
        month={5},
        keywords={scanline gradient line perspective transformation measure of central tendency python},
        doi={10.4108/eai.21-10-2022.2329633}
    }
    
  • Indra Bayu Muktyas
    Nerru Pranuta Murnaka
    Samsul Arifin
    Wikky Fawwaz Al Maki
    Year: 2023
    Document Image Enhancement with Perspective Transformation using Python
    ICEHHA
    EAI
    DOI: 10.4108/eai.21-10-2022.2329633
Indra Bayu Muktyas1,*, Nerru Pranuta Murnaka1, Samsul Arifin2, Wikky Fawwaz Al Maki3
  • 1: STKIP Surya, Tangerang, Indonesia
  • 2: Binus University, Jakarta, Indonesia
  • 3: Telkom University, Bandung, Indonesia
*Contact email: indrabayu.muktyas@stkipsurya.ac.id

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.