Optical Character Recognition (OCR) is a technology that converts text from images or scanned documents into digital text.Pieces extended OCR capabilities to transcribe programming code accurately by using Tesseract OCR engine with LSTM-based sequence prediction.Challenges in optimizing OCR for code included addressing dark mode, noisy backgrounds, and low-resolution images.Enhancements like pre-processing, post-processing for layout inference, and tailored evaluation enable production-grade OCR for developers at Pieces.