Build a Trained Data of Tesseract OCR engine for Tifinagh Script Recognition

Authors

  • Ali Benaissa ENSAH, Laboratory of Applied Science - Data Science and Competitive Intelligence Team (DSCI), Abdelmalek Essaadi University (UAE), Tetouan, Morocco Author https://orcid.org/0009-0000-8944-5708
  • Abdelkhalak Bahri ENSAH, Laboratory of Applied Science - Data Science and Competitive Intelligence Team (DSCI), Abdelmalek Essaadi University (UAE), Tetouan, Morocco Author
  • Ahmad El Allaoui Faculty of Sciences and Techniques Errachidia, Engineering Sciences and Techniques Laboratory - Decisional Computing and Systems Modelling Team, Moulay Ismail University of Meknes, Morocco Author
  • My Abdelouahab Salahddine The National School of Management Tangier, Governance and Performance of Organizations laboratory - Finance and Governance of Organizations team, Abdelmalek Essaadi University, Tangier, Morocco Author https://orcid.org/0009-0001-0997-6099

DOI:

https://doi.org/10.56294/dm2023185

Keywords:

Tifinagh Script, Optical Character Recognition (OCR), Tesseract OCR Engine, Trained Data

Abstract

This article introduces a methodology for constructing a trained dataset to facilitate Tifinagh script recognition using the Tesseract OCR engine. The Tifinagh script, widely used in North Africa, poses a challenge due to the lack of built-in recognition capabilities in Tesseract. To overcome this limitation, our approach focuses on image generation, box generation, manual editing, charset extraction, and dataset compilation. By leveraging Python scripting, specialized software tools, and Tesseract's training utilities, we systematically create a comprehensive dataset for Tifinagh script recognition. The dataset enables the training and evaluation of machine learning models, leading to accurate character recognition. Experimental results demonstrate high accuracy, precision, recall, and F1 score, affirming the effectiveness of the dataset and its potential for practical applications. The results highlight the robustness of the OCR system, achieving an outstanding accuracy rate of 99,97 %. The discussion underscores its superior performance in Tifinagh character recognition, exceeding the findings in the field. This methodology contributes significantly to enhancing OCR technology capabilities and encourages further research in Tifinagh script recognition, unlocking the wealth of information contained in Tifinagh documents

References

1. Audichya MK. A Study to Recognize Printed Gujarati Characters Using Tesseract OCR. Int J Res Appl Sci Eng Technol 2017;V:1505–10. https://doi.org/10.22214/ijraset.2017.9219.

2. Kaur J, Goyal V, Kumar M. Tesseract OCR for Hindi Typewritten Documents. 2021 Sixth Int. Conf. Image Inf. Process. ICIIP, Shimla, India: IEEE; 2021, p. 450–4. https://doi.org/10.1109/ICIIP53038.2021.9702659.

3. Mudiarta IMDR, Atmaja IMDS, Suharsana IK, Antara IWGS, Bharaditya IWP, Suandirat GA, et al. Balinese character recognition on mobile application based on tesseract open source OCR engine. J Phys Conf Ser 2020;1516:012017. https://doi.org/10.1088/1742-6596/1516/1/012017.

4. Kadri O, Benyahia A, Abdelhadi A. Tifinagh Handwriting Character Recognition Using a CNN Provided as a Web Service: Int J Cloud Appl Comput 2022;12:1–17. https://doi.org/10.4018/IJCAC.297093.

5. Erritali M, Chouni Y, Ouadid Y. Search-Based Classification for Offline Tifinagh Alphabets Recognition: In: Sarfraz M, editor. Adv. Comput. Intell. Robot., IGI Global; 2020, p. 255–67. https://doi.org/10.4018/978-1-7998-4444-0.ch013.

6. Ouadid Y, Elbalaoui A, Fakir M, Minaoui B. Tifinagh Character Recognition: A Survey. 2018 Int. Conf. Comput. Sci. Eng. ICCSE, Kuwait City: IEEE; 2018, p. 1–6. https://doi.org/10.1109/ICCSE1.2018.8374225.

7. Zhang TY, Suen CY. A fast parallel algorithm for thinning digital patterns. Commun ACM 1984;27:236–9. https://doi.org/10.1145/357994.358023.

8. Ouadid Y, Elbalaoui A, Boutaounte M, Fakir M, Minaoui B. Handwritten tifinagh character recognition using simple geometric shapes and graphs. Indones J Electr Eng Comput Sci 2019;13:598. https://doi.org/10.11591/ijeecs.v13.i2.pp598-605.

9. Corallo L, Varde AS. Optical Character Recognition and Transcription of Berber Signs from Images in a Low-Resource Language Amazigh 2023.

10. Auza-Santiváñez JC, Díaz JAC, Cruz OAV, Robles-Nina SM, Escalante CS, Huanca BA. Bibliometric Analysis of the Worldwide Scholarly Output on Artificial Intelligence in Scopus. Gamification and Augmented Reality 2023;1:11–11. https://doi.org/10.56294/gr202311.

11. Castillo JIR. Aumented reality im surgery: improving precision and reducing ridk. Gamification and Augmented Reality 2023;1:15–15. https://doi.org/10.56294/gr202315.

12. Castillo-Gonzalez W, Lepez CO, Bonardi MC. Augmented reality and environmental education: strategy for greater awareness. Gamification and Augmented Reality 2023;1:10–10. https://doi.org/10.56294/gr202310.

13. Aveiro-Róbalo TR, Pérez-Del-Vallín V. Gamification for well-being: applications for health and fitness. Gamification and Augmented Reality 2023;1:16–16. https://doi.org/10.56294/gr202316.

14. Mokrane K, Malika S, Nassima G-B. Recognition of Tifinagh characters using Extreme Learning Machine. 2022 First Int. Conf. Comput. Commun. Intell. Syst. I3CIS, Jijel, Algeria: IEEE; 2022, p. 13–8. https://doi.org/10.1109/I3CIS56626.2022.10075958.

15. Biniz M, El Ayachi R. Recognition of Tifinagh Characters Using Optimized Convolutional Neural Network. Sens Imaging 2021;22:28. https://doi.org/10.1007/s11220-021-00347-1.

16. Es Saady Y, Rachidi A, El Yassa M, Mammass D. AMHCD: A Database for Amazigh Handwritten Character Recognition Research. Int J Comput Appl 2011;27:44–8. https://doi.org/10.5120/3286-4475.

17. Benaddy M, El Meslouhi O, Es-saady Y, Kardouchi M. Handwritten Tifinagh Characters Recognition Using Deep Convolutional Neural Networks. Sens Imaging 2019;20:9. https://doi.org/10.1007/s11220-019-0231-5.

Downloads

Published

2023-12-09

Issue

Section

Original

How to Cite

1.
Benaissa A, Bahri A, El Allaoui A, Abdelouahab Salahddine M. Build a Trained Data of Tesseract OCR engine for Tifinagh Script Recognition. Data and Metadata [Internet]. 2023 Dec. 9 [cited 2024 Sep. 19];2:185. Available from: https://dm.ageditor.ar/index.php/dm/article/view/112