Automated compilation of Urdu poetry handwritten image datasets for optical character recognition

Optical character recognition (OCR) is vital in digitizing printed data into a digital format, which can be conveniently used for various purposes. A significant amount of work has been done in OCR for well-resourced languages like English. However, languages like Urdu, spoken by a large community, face limitations in OCR due to a lack of resources and the complexity and diversity of handwritten scripts. One of the major hindrances in the development of OCR for low-resource languages like Urdu is the lack of extensive datasets. However, such datasets can be obtained from old handwritten books with reference text available online. This study presents a method to leverage this resource and automatically process Urdu handwritten poetry books with corresponding scripts available online. The images are segmented at the sentence level using automated neighborhood-connected component analysis, followed by manual adjustment. Corresponding Unicode text for each image are obtained by web scraping followed by text similarity analysis. A sample dataset collected comprises purely handwritten Urdu text images for Urdu poetry by Mirza Ghalib and Allama Iqbal, arguably the two most influential poets in Urdu. The dataset comprises 2888 images with Unicode transcriptions from poetry by Mirza Ghalib and Allama Iqbal.•The method automates OCR dataset creation by segmenting handwritten text images and scraping corresponding text from the web for alignment.•Handwritten images are segmented into sentences using a resource-efficient Neighborhood Component Analysis approach.•Possible text samples are scraped from the web, and the corresponding labels are aligned with images based on the minimum edit distance between the scraped text and the predictions by an OCR engine.

Authors

Institutions

Publication Details

Journal
MethodsX
Published
2024-12-21
DOI
https://doi.org/10.1016/j.mex.2024.103130
Primary Topic
Handwritten Text Recognition Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automated compilation of Urdu poetry handwritten image datasets for optical character recognition

Junaid Shuja, Mohammad Ali Humayun, Mohammad N. Alanazi, Meshari Huwaytim Alanazi et al.
MethodsX
Handwritten Text Recognition Techniques
article

Automated compilation of Urdu poetry handwritten image datasets for optical character recognition

Junaid Shuja, Mohammad Ali Humayun, Mohammad N. Alanazi, Meshari Huwaytim Alanazi, Nasser Aljohani, Abdallah Namoun, Irtaza Ijaz
article en

Abstract

Optical character recognition (OCR) is vital in digitizing printed data into a digital format, which can be conveniently used for various purposes. A significant amount of work has been done in OCR for well-resourced languages like English. However, languages like Urdu, spoken by a large community, face limitations in OCR due to a lack of resources and the complexity and diversity of handwritten scripts. One of the major hindrances in the development of OCR for low-resource languages like Urdu is the lack of extensive datasets. However, such datasets can be obtained from old handwritten books with reference text available online. This study presents a method to leverage this resource and automatically process Urdu handwritten poetry books with corresponding scripts available online. The images are segmented at the sentence level using automated neighborhood-connected component analysis, followed by manual adjustment. Corresponding Unicode text for each image are obtained by web scraping followed by text similarity analysis. A sample dataset collected comprises purely handwritten Urdu text images for Urdu poetry by Mirza Ghalib and Allama Iqbal, arguably the two most influential poets in Urdu. The dataset comprises 2888 images with Unicode transcriptions from poetry by Mirza Ghalib and Allama Iqbal.•The method automates OCR dataset creation by segmenting handwritten text images and scraping corresponding text from the web for alignment.•Handwritten images are segmented into sentences using a resource-efficient Neighborhood Component Analysis approach.•Possible text samples are scraped from the web, and the corresponding labels are aligned with images based on the minimum edit distance between the scraped text and the predictions by an OCR engine.

MethodsXVol. 14
Northern Border University (SA), Information Technology University (PK), Southeast Missouri State University (US), University of the Punjab (PK), Imam Mohammad ibn Saud Islamic University (SA), Islamic University of Madinah (SA)
Northern Border University
Quality Education
Openalex Percentile: Top 76%
Handwritten Text Recognition Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.