Tesseract Open Source OCR Engine (main repository)
This report summarizes scanner evidence for tesseract-ocr/tesseract, a C++ project with 76,895 GitHub stars. SynthScan examined 211,643 lines of code across 566 source files, recording 917 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 4.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 909 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 917 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 917 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | autogen.sh | 1 | #!/bin/sh | COMMENT |
| LOW | autogen.sh | 21 | # The whole thing is quite complex... | COMMENT |
| LOW | autogen.sh | 101 | fi | COMMENT |
| LOW | nsis/winpath.cpp | 1 | // Copyright (C) 2024 Stefan Weil | COMMENT |
| LOW | unittest/doubleptr.h | 1 | // Copyright 2012 Google Inc. All Rights Reserved. | COMMENT |
| LOW | unittest/doubleptr.h | 21 | COMMENT | |
| LOW | unittest/include_gunit.h | 1 | // (C) Copyright 2017, Google Inc. | COMMENT |
| LOW | unittest/include_gunit.h | 81 | # define CHECK_GT(test, value) CHECK((test) > (value)) | COMMENT |
| LOW | unittest/lstm_test.h | 1 | // (C) Copyright 2017, Google Inc. | COMMENT |
| LOW | unittest/lstm_test.h | 21 | #include "helpers.h" | COMMENT |
| LOW | unittest/log.h | 1 | /////////////////////////////////////////////////////////////////////// | COMMENT |
| LOW | unittest/capiexample_c_test.c | 1 | /////////////////////////////////////////////////////////////////////// | COMMENT |
| LOW | unittest/cycletimer.h | 1 | // (C) Copyright 2017, Google Inc. | COMMENT |
| LOW | unittest/normstrngs_test.h | 1 | // (C) Copyright 2017, Google Inc. | COMMENT |
| LOW | unittest/util/utf8/unilib.h | 21 | // point to exactly the same memory. | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 21 | #include <iterator> // for bidirectional_iterator_tag, etc | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 41 | // is changed. | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 61 | // UnicodeText tests for interchange-validity, and will substitute a | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 81 | // validity check. They are used internally and by friend-functions | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 101 | // | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 321 | // interchange-valid, a LOG(WARNING) is issued, and each | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 401 | // UnicodeTextRange is a pair of iterators, useful for specifying text | COMMENT |
| LOW | unittest/util/utf8/unicodetext.h | 421 | int byte_capacity) { | COMMENT |
| LOW | unittest/util/utf8/unilib_utf8_utils.h | 21 | // They are also exported from unilib.h for legacy reasons. | COMMENT |
| LOW | unittest/third_party/utf/utf.h | 41 | * utf (7) | COMMENT |
| LOW | unittest/third_party/utf/utf.h | 61 | COMMENT | |
| LOW | unittest/third_party/utf/utf.h | 81 | COMMENT | |
| LOW | unittest/third_party/utf/utf.h | 101 | COMMENT | |
| LOW | unittest/third_party/utf/utf.h | 121 | // byte terminating a string is considered to be part of the string s. | COMMENT |
| LOW | unittest/third_party/utf/utf.h | 161 | COMMENT | |
| LOW | unittest/fuzzers/oss-fuzz-build.sh | 1 | #!/bin/bash -eu | COMMENT |
| LOW | unittest/fuzzers/fuzzer-api.cpp | 1 | #include <allheaders.h> | COMMENT |
| LOW | unittest/syntaxnet/base.h | 21 | #include <string> | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 21 | #include "export.h" // for TESS_API | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 41 | // See tesseract/publictypes.h for the definition of PageIteratorLevel. | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 81 | // object at the given level. Use delete [] to free after use. | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 181 | public: | COMMENT |
| LOW | include/tesseract/ltrresultiterator.h | 201 | // data. If only LSTM traineddata is used the value range is 0.0f - 1.0f. All | COMMENT |
| LOW | include/tesseract/pageiterator.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/pageiterator.h | 161 | * equal to other: 0 | COMMENT |
| LOW | include/tesseract/export.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/export.h | 21 | # if defined(TESS_EXPORTS) | COMMENT |
| LOW | include/tesseract/osdetect.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/renderer.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/publictypes.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/unichar.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/unichar.h | 81 | const char *utf8() const { | COMMENT |
| LOW | include/tesseract/unichar.h | 101 | // char buf[5]; | COMMENT |
| LOW | include/tesseract/resultiterator.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/baseapi.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/capi.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | include/tesseract/capi.h | 21 | #ifdef __cplusplus | COMMENT |
| LOW | java/com/google/scrollview/ScrollView.java | 141 | // true or false -> Boolean. | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | doc/generate_manpages.sh | 1 | #!/bin/bash | COMMENT |
| LOW | src/svpaint.cpp | 1 | // Copyright 2007 Google Inc. All Rights Reserved. | COMMENT |
| LOW | src/svpaint.cpp | 21 | // - A LMB dragging either draws a line, a rectangle or ellipse. | COMMENT |
| LOW | src/svpaint.cpp | 221 | COMMENT | |
| LOW | src/tesseract.cpp | 21 | # include "config_auto.h" | COMMENT |
| 831 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/check-commit.yml | 27 | # ── Whitelist ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 39 | # ── Helper: is this author whitelisted? ──────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 52 | # ── Helper: does the name look like a real person? ───────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 87 | # ── Walk commits in this PR ──────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 102 | # ── Print full author table ──────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 127 | # ── Summary ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/check-commit.yml | 146 | # ── Label-based maintainer override ────────────────────────────────────── | COMMENT |
| MEDIUM | .github/workflows/autotools-macos.yml | 111 | # ============================================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/textord/tablerecog.cpp | 629 | // NOTE: This function assumes the lists are sorted! | COMMENT |
| LOW | src/ccmain/resultiterator.cpp | 146 | // Step 1: Scan for and mark European Number sequences | COMMENT |
| LOW | src/ccmain/resultiterator.cpp | 186 | // Step 2: Convert all remaining types to either L or R. | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 43 | // Step 1: 8x4=32 results are computed, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 44 | // Step 2: 8x4=32 again, total 64, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 45 | // Step 3: 2x4=8 (since 8x4 is too many, so is 4x4), total 72, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 46 | // Step 4: 1x3, total 75. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/wordrec/lm_pain_points.cpp | 3 | // Description: Functions that utilize the knowledge about the properties | COMMENT |
| MEDIUM | src/wordrec/language_model.h | 3 | // Description: Functions that utilize the knowledge about the properties, | COMMENT |
| MEDIUM | src/wordrec/language_model.cpp | 3 | // Description: Functions that utilize the knowledge about the properties, | COMMENT |
| MEDIUM | src/wordrec/lm_pain_points.h | 3 | // Description: Functions that utilize the knowledge about the properties | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/ccmain/resultiterator.cpp | 146 | // Step 1: Scan for and mark European Number sequences | COMMENT |
| LOW | src/ccmain/resultiterator.cpp | 186 | // Step 2: Convert all remaining types to either L or R. | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 43 | // Step 1: 8x4=32 results are computed, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 44 | // Step 2: 8x4=32 again, total 64, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 45 | // Step 3: 2x4=8 (since 8x4 is too many, so is 4x4), total 72, | COMMENT |
| LOW⚡ | src/arch/intsimdmatrix.h | 46 | // Step 4: 1x3, total 75. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/tesseract/ltrresultiterator.h | 72 | // versions, but if new data members are added, don't forget to add them! | COMMENT |