Optimizing OCR Performance for Programming Videos: The Role of Image Super-Resolution and Large Language Models
Description
Replication Package for the paper that has been submitted to the MDPI (Mathmatics).
The rapid evolution of video programming tutorials as a key educational resource has highlighted the need for effective code extraction methods. These tutorials, varying widely in video quality, present a challenge for accurately transcribing embedded source code, crucial for learning and software development. This study investigates the impact of video quality on the performance of Optical Character Recognition (OCR) engines and the potential of Large Language Models (LLMs) to enhance code extraction accuracy. Our comprehensive empirical analysis utilizes a rich dataset of programming screencasts, involving manual transcription of source code and application of both traditional OCR engines, like Tesseract and Google Vision, and advanced LLMs, including GPT-4V and Gemini.
We investigate the efficacy of Image Super-Resolution (SR) techniques, namely Enhanced Deep Super-Resolution (EDSR) and Multi-scale Deep Super-Resolution (MDSR), in improving the quality of low-resolution video frames. The findings reveal significant improvements in OCR accuracy with the use of SR, particularly at lower resolutions such as 360p. LLMs demonstrate superior performance across all video qualities, indicating their robustness and advanced capabilities in diverse scenarios. This research contributes to the field of software engineering by offering a benchmark for code extraction from video tutorials and demonstrating the substantial impact of SR techniques and LLMs in enhancing the readability and reusability of code from these educational resources.
Files
all_default_and_SR.zip
Additional details
Dates
- Accepted
-
2024-03-16