CNN-optimized text recognition with binary embeddings for Arabic expiry date recognition

Mohamed Lotfy, Ghada Soliman
{"title":"CNN-optimized text recognition with binary embeddings for Arabic expiry date recognition","authors":"Mohamed Lotfy, Ghada Soliman","doi":"10.1186/s43067-024-00136-2","DOIUrl":null,"url":null,"abstract":"Recognizing Arabic dot-matrix digits is a challenging problem due to the unique characteristics of dot-matrix fonts, such as irregular dot spacing and varying dot sizes. This paper presents an approach for recognizing Arabic digits printed in dot matrix format. The proposed model is based on convolutional neural networks (CNN) that take the dot matrix as input and generate embeddings that are rounded to generate binary representations of the digits. The binary embeddings are then used to perform Optical Character Recognition (OCR) on the date images. To overcome the challenge of the limited availability of dotted Arabic expiration date images, we developed a True Type Font (TTF) for generating synthetic images of Arabic dot-matrix characters. The model was trained on a synthetic dataset of 3287 images and 658 synthetic images for testing, representing realistic expiration dates from 2019 to 2027 in the format of yyyy/mm/dd and yy/mm/dd. Our model achieved an accuracy of 98.94% on the expiry date recognition with Arabic dot matrix format using fewer parameters and less computational resources than traditional CNN-based models. By investigating and presenting our findings comprehensively, we aim to contribute substantially to the field of OCR and pave the way for advancements in Arabic dot-matrix character recognition. Our proposed approach is not limited to Arabic dot matrix digit recognition but can be also extended to text recognition tasks, such as text classification and sentiment analysis.","PeriodicalId":100777,"journal":{"name":"Journal of Electrical Systems and Information Technology","volume":"164 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-02-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Electrical Systems and Information Technology","FirstCategoryId":"0","ListUrlMain":"https://doi.org/10.1186/s43067-024-00136-2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Recognizing Arabic dot-matrix digits is a challenging problem due to the unique characteristics of dot-matrix fonts, such as irregular dot spacing and varying dot sizes. This paper presents an approach for recognizing Arabic digits printed in dot matrix format. The proposed model is based on convolutional neural networks (CNN) that take the dot matrix as input and generate embeddings that are rounded to generate binary representations of the digits. The binary embeddings are then used to perform Optical Character Recognition (OCR) on the date images. To overcome the challenge of the limited availability of dotted Arabic expiration date images, we developed a True Type Font (TTF) for generating synthetic images of Arabic dot-matrix characters. The model was trained on a synthetic dataset of 3287 images and 658 synthetic images for testing, representing realistic expiration dates from 2019 to 2027 in the format of yyyy/mm/dd and yy/mm/dd. Our model achieved an accuracy of 98.94% on the expiry date recognition with Arabic dot matrix format using fewer parameters and less computational resources than traditional CNN-based models. By investigating and presenting our findings comprehensively, we aim to contribute substantially to the field of OCR and pave the way for advancements in Arabic dot-matrix character recognition. Our proposed approach is not limited to Arabic dot matrix digit recognition but can be also extended to text recognition tasks, such as text classification and sentiment analysis.
采用二进制嵌入的 CNN 优化文本识别,用于阿拉伯文有效期识别
由于点阵字体的独特性,如不规则的点间距和不同的点尺寸,阿拉伯语点阵数字的识别是一个具有挑战性的问题。本文提出了一种识别点阵格式阿拉伯数字的方法。所提出的模型基于卷积神经网络(CNN),该网络将点阵作为输入,并生成嵌入,然后将嵌入四舍五入,生成数字的二进制表示。然后利用二进制嵌入对日期图像进行光学字符识别(OCR)。为了克服阿拉伯文点阵到期日期图像有限这一难题,我们开发了一种 True Type 字体 (TTF),用于生成阿拉伯文点阵字符的合成图像。该模型在一个包含 3287 幅图像的合成数据集上进行了训练,并在 658 幅合成图像上进行了测试,这些图像以 yyyy/mm/dd 和 yy/mm/dd 的格式代表了 2019 年至 2027 年的真实到期日期。与传统的基于 CNN 的模型相比,我们的模型使用更少的参数和更少的计算资源,在阿拉伯点阵格式的到期日期识别上达到了 98.94% 的准确率。通过全面研究和展示我们的发现,我们旨在为光学字符识别领域做出重大贡献,并为阿拉伯点阵字符识别的进步铺平道路。我们提出的方法不仅限于阿拉伯点阵数字识别,还可以扩展到文本识别任务,如文本分类和情感分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信