opencv/opencv

opencv/opencv has 1,584,615 source lines of code out of 2,126,530 total lines across 5,157 files, counted from the 5.x ref at commit 1e21d6ed7d44 by the OctoCounts tokei engine on 2026-10-10. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-10 (commit 1e21d6ed7d44), opencv/opencv contains 2,126,530 total lines: 1,584,615 code, 303,428 comments, 238,487 blank, across 5,157 files in 47 languages (top: C++ 36.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-10 (commit 1e21d6ed7d44), opencv/opencv contains 2,126,530 total lines: 1,584,615 code, 303,428 comments, 238,487 blank, across 5,157 files in 47 languages (top: C++ 36.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving opencv/opencv to commit 1e21d6ed7d44, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

Repository size insights

This is a very large codebase by counted code lines. Code represents 74.5% of all lines, comments represent 14.3%, and the repository averages 307 code lines per file. C++ accounts for 36.5% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++14797392435787496761492880
C++ Header10004160453019446776746334
C5203538492481767097834695
C Header6242690311808595846629706
XML655182751403284140
Python305612684882741058336
YAML1132913328184847
OpenCL110324912564027904061
CMake290325192541234473660
Assembly93361612460355566002
Java131192711439319932885
Objective-C++661270295539882161

Top language (C++ 36.5%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does opencv/opencv have?

opencv/opencv has 2,126,530 total lines, including 1,584,615 code lines, 303,428 comment lines, and 238,487 blank lines.

How was the opencv/opencv line count measured?

OctoCounts resolved the public GitHub repository to commit 1e21d6ed7d44, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for opencv/opencv?

This OctoCounts report was generated from 5.x at commit 1e21d6ed7d44 on 2026-10-10T02:00:15.337486166+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for opencv/opencv on this page — 1,584,615 code lines across 12 languages, counted by tokei.