opencv/opencv

opencv/opencv has 1,584,615 source lines of code out of 2,126,530 total lines across 5,157 files, counted with tokei from the 5.x ref at commit 1e21d6ed7d44 on October 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

opencv/opencv: 1,584,615 code lines at commit 1e21d6ed7d44, counted with tokei-14.0.0 on 2026-10-10. Saved result d28d9cbe219d505134cf18343a25f1853db9924540671a2e5e86ad95b86f6f15.

OctoCounts produced this report by resolving opencv/opencv to commit 1e21d6ed7d44, 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.

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
GNU Style Assembly221160188231842936
CUDA32815858148881456
Autoconf947776522413771175
JavaScript2440473487146414
JSON372728272701
XAML21350121121217172
Visual Studio Project101857185070
Bitbake82100184716984
CSS320881757166165
Swift121430111481235
HTML2611251091529
FlatBuffers Schema11341847290204
MSBuild12863808514
C#151427792442193
GLSL689370125167
Shell17905624138143
Visual Studio Solution956255309
Protocol Buffers91605493880232
Batch65694502594
PowerShell13832775254
.NET Resource33992221770
BASH42411448116
Kotlin2165126732
Scala4158944123
HLSL4128782624
Objective-C1138752736
Dockerfile26042315
Clojure2302433
Prolog1211803
VBScript1151203
Makefile112705
Module-Definition14400
SVG11100
Markdown33331402680634
Plain Text389565085461019

Top language: C++ 36.5%. Generated on .

Counting rules and retention

opencv/opencv: counting rules unknown; engine tokei-14.0.0.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does opencv/opencv have?

opencv/opencv has 1,584,615 lines of code, plus 303,428 comment lines and 238,487 blank lines, for 2,126,530 total lines at commit 1e21d6ed7d44 on October 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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 October 10, 2026.

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 47 languages, counted by tokei.