Source-code OCR

An early computer-vision project for extracting editable source code from images while preserving indentation, punctuation, and similar-looking characters.

At a glance

Question
How can an OCR pipeline retain the syntax that makes source code usable?
My contribution
Built an early computer-vision project focused on indentation, punctuation, and similar-looking characters.
Result & scope
An early engineering project, retained as part of the development of my software and vision work.

An early exploration (high-school era) of OCR applied specifically to source code — images of code that need to become editable text while preserving indentation and special characters that generic OCR tools mangle.

The goal was to handle the failure modes that make code OCR hard: preserving whitespace structure, disambiguating similar glyphs (0 vs O, 1 vs l vs I), and passing curly braces and punctuation through untouched.

Repo: github.com/rohit-ravi2/Code-OCR