tesseract-ocr/tesseract has 164,483 source lines of code out of 230,463 total lines across 659 files, counted with tokei from the main ref at commit ddcd04239a19 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-15 (commit ddcd04239a19), tesseract-ocr/tesseract contains 230,463 total lines: 164,483 code, 48,195 comments, 17,785 blank, across 659 files in 13 languages (top language: C++ 69.5%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving tesseract-ocr/tesseract to commit ddcd04239a19, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 71.4% of all lines, comments represent 20.9%, and the repository averages 250 code lines per file. C++ accounts for 69.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 353 | 153673 | 114316 | 28562 | 10795 |
| C Header | 251 | 68774 | 44901 | 17881 | 5992 |
| CMake | 10 | 2558 | 1982 | 326 | 250 |
| Automake | 11 | 1884 | 1552 | 57 | 275 |
| Java | 13 | 2076 | 1144 | 720 | 212 |
| C | 2 | 361 | 205 | 119 | 37 |
| Shell | 3 | 297 | 157 | 95 | 45 |
| YAML | 2 | 98 | 79 | 5 | 14 |
| Autoconf | 4 | 111 | 66 | 30 | 15 |
| Python | 2 | 91 | 54 | 19 | 18 |
| M4 | 2 | 91 | 27 | 60 | 4 |
| Markdown | 5 | 447 | 0 | 319 | 128 |
Top language: C++ 69.5%. Generated on .
tesseract-ocr/tesseract: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
tesseract-ocr/tesseract has 164,483 lines of code, plus 48,195 comment lines and 17,785 blank lines, for 230,463 total lines at commit ddcd04239a19 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit ddcd04239a19, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit ddcd04239a19 on November 15, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for tesseract-ocr/tesseract on this page — 164,483 code lines across 13 languages, counted by tokei.