< GSoC‎ | 2022‎ | StatusReports


New DigiKam Plugin to Process Optical Character Recognition(OCR)

The goal of this project is to implement a new generic DPlugin to process images in batches with Tesseract. Tesseract is an open-source OCR engine. Even though it can be painful to implement and modify sometimes, only a few free and powerful OCR alternatives are available on the current market. Tesseract is compatible with many programming languages and frameworks through wrappers that can be found here. Tesseract can be used with the existing layout analysis to recognize text within a large document, or it can be used in conjunction with an external text detector to recognize text from an image of a single text line.

Thanks to the help of the OCR plugin in Digikam. The users will be able to select optional parameters to improve the quality of record detected text in image metadata. The output text will be saved in XML files, recorded in the exif of jfif, or the user was asked to store output text under the text file in the locale where they want. Furthermore, Digikam users will be able to review them and correct (spell checking) any OCR errors.

Mentors : Gilles Caulier, Maik Qualmann, Thanh Trung Dinh

Project Proposal

Digikam Plugin to Process Optical Character Recognition(OCR)

GitLab development branch



Email: [email protected]

Github: quochungtran

Invent KDE: quochungtran

LinkedIn: https://www.linkedin.com/in/tran-quoc-hung-6362821b3/

Project goals

27/06/2022 :

Researching preprocessing for improving the quality of the output. These results can be applied for building preprocessing of image engine to improve the quality of plugin.

30/08/2022 :

A new optional Generic Tesseract-based DPlugin is available in DigiKam and Showfoto to run OCR automatically. Recognized text can be stored in a text file and XMP metadata for users to review and generate them.

Links to Blogs and other writing

Main merge request

KDE repository for OCR researching

Issue tracker

My blog for GSoC

My entire blog :

June 13 to June 27 (Week 1 - 2) - Tesseract Page Segmentation Modes (PSMs) Explained and their relations


June 27 to July 10 (Week 3 - 4) - Preprocessing for improving the quality of the output


June 11 to July 25 (Week 5 - 6) - Preprocessing for improving the quality of the output


July 26 to August 8 (Week 7 - 8) - OCR batch processing based on internal-multi threading


August 9 to August 16 (Week 9) - Storing OCR result


August 17 to September 4 (Week 10 - 12) - Code refactoring and demo application



During the significant coding period of GSoC 2022, we successfully implemented the tool to convert documented image data to Text format using Tesseract, an open-source Optical Characters Recognition engine. Besides, we are totally able to improve the quality of OCR accuracy by embedding preprocessing methods.

At the end of the coding period, thanks to the mentor's dedicated help, the implementation of the plugin was completed successfully with a better layout.

OCR Text converter tool.png Text edit plugin.png

This page was last edited on 11 September 2022, at 19:16. Content is available under Creative Commons License SA 4.0 unless otherwise noted.