tesseract-ocr/tesseract has 163,731 source lines of code out of 229,230 total lines across 657 files, counted with tokei from the main ref at commit c21194d06998 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-02 (commit c21194d06998), tesseract-ocr/tesseract contains 229,230 total lines: 163,731 code, 47,791 comments, 17,708 blank, across 657 files in 13 languages (top language: C++ 69.4%). 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 c21194d06998, 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.8%, and the repository averages 249 code lines per file. C++ accounts for 69.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 351 | 152598 | 113612 | 28256 | 10730 |
| C Header | 251 | 68653 | 44861 | 17807 | 5985 |
| CMake | 10 | 2558 | 1982 | 326 | 250 |
| Automake | 11 | 1874 | 1544 | 57 | 273 |
| 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 | 420 | 0 | 295 | 125 |
Top language: C++ 69.4%. 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 163,731 lines of code, plus 47,791 comment lines and 17,708 blank lines, for 229,230 total lines at commit c21194d06998 on November 2, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit c21194d06998, 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 c21194d06998 on November 2, 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 — 163,731 code lines across 13 languages, counted by tokei.