Abstract

Extracting texts from images with complex backgrounds is a major challenge today. Many existing Optical Character Recognition (OCR) systems could not handle this problem. As reported in the literature, some existing methods that can handle the problem still encounter major difficulties with extracting texts from images with sharp varying contours, touching word and skewed words from scanned documents and images with such complex backgrounds. There is, therefore, a need for new methods that could easily and efficiently extract texts from these images with complex backgrounds, which is the primary reason for this work. This study collected image data and investigated the processes involved in image processing and the techniques applied for data segmentation. It employed an adaptive thresholding algorithm to the selected images to properly segment text characters from the image’s complex background. It then used Tesseract, a machine learning product, to extract the text from the image file. The images used were coloured images sourced from the internet with different formats like jpg, png, webp and different resolutions. A custom adaptive algorithm was applied to the images to unify their complex backgrounds. This algorithm leveraged on the Gaussian thresholding algorithm. The algorithm differs from the conventional Gaussian algorithm as it dynamically generated the blocksize to apply threshing to the image. This ensured that, unlike conventional image segmentation, images were processed area-wise (in pixels) as specified by the algorithm at each instance. The system was implemented using Python 3.6 programming language. Experimentation involved fifty different images with complex backgrounds. The results showed that the system was able to extract English character-based texts from images with complex backgrounds with 69.7% word-level accuracy and 81.9% character-level accuracy. The proposed method in this study proved to be more efficient as it outperformed the existing methods in terms of the character level percentage accuracy.

Highlights

  • The dynamics of today’s technological domain, that has seen images play an important role in communication, calls for continuous improvements on the processing of such images, as images do not just convey the structure of places or faces, but carries meaning but in interpretation and in the fact that more often than not, text is printed on them

  • Screen readers and most Optical Character Recognition (OCR) systems only perform well when such images contain texts printed on plain backgrounds, an OCR system that can perform well on images with texts on complex background becomes a fundamental necessity in addressing this problem

  • This work has attempted to address the issue by designing an algorithm that leverages on tesseract, an already existing OCR system to improve on its performance on interesting images

Read more

Summary

Introduction

The dynamics of today’s technological domain, that has seen images play an important role in communication, calls for continuous improvements on the processing of such images, as images do not just convey the structure of places or faces, but carries meaning but in interpretation and in the fact that more often than not, text is printed on them. This study, moves from the conventional application of OCR to scanned image files or printed digital files like PDFs to the more general and more complex application to conventional photographs and other digital documents with complex backgrounds. The algorithm used leveraged on the Gaussian thresholding algorithm and its different from the conventional Gaussian algorithm as it dynamically generated the blocksize to apply threshing to the image. This ensured that, unlike conventional image segmentation, images were processed area-wise (in pixels) as specified by the algorithm at each instance, which is a major contribution of this work

Objectives
Methods
Results
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call