AI Slop Code Risk Monitor

opencv/opencv

SlopCodeMonitor badge for opencv/opencv Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Open Source Computer Vision Library

3.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for opencv/opencv, a C++ project with 91,388 GitHub stars. SynthScan examined 1,926,095 lines of code across 4776 source files, recording 6570 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.5
Adjusted Signal
3.5
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
91.4K
Stars
C++
Language
1.9M
Lines of Code
4.8K
Files
6.6K
Pattern Hits
2026-10-31
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 13.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 5901 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.3/100 · LOW

Are imports declared and package/API names verified? 403 finding(s).

Agent Over-Engineering Ratio 2.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 510 finding(s).

PR Review Velocity Impact 17.7/100 · LOW

Which changes need focused human review? 6570 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 2HIGH 75MEDIUM 262LOW 6231

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 6570 distinct pattern matches across 21 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.

Over-Commented Block5353 hits · 4720 pts
SeverityFileLineSnippetContext
LOW…ndroid/aar-template/OpenCV/src/main/cpp/native-lib.cpp1// This empty .cpp file is used for creating an AAR with empty C++ lib that will be replaced with OpenCV C++ libCOMMENT
LOW…ndroid/aar-template/OpenCV/src/main/cpp/include/temp.h1// This empty .h file is used for creating an AAR with empty C++ lib that will be replaced with OpenCV C++ libCOMMENT
LOW…forms/semihosting/include/aarch64_semihosting_port.hpp1// This file is part of OpenCV project.COMMENT
LOWdocs_sphinx/conf_helpers/translate.py681 disp = (m.group("disp") or "").strip().replace('"', '')COMMENT
LOWdocs_sphinx/conf_helpers/postprocess.py301# identifier in a code block. The example pages, snippet pages, tutorialCOMMENT
LOWdocs_sphinx/conf_helpers/stubs.py1121 # Renders the summary table (or enum synopsis) for one member kind given aCOMMENT
LOWdocs_sphinx/conf_helpers/stubs.py1201 # On every Core-functionality page the synopsis is emittedCOMMENT
LOWdocs_sphinx/conf_helpers/xml_render.py541 r"^((?:class|struct)cv_1_1[A-Za-z0-9_]+?)_1"COMMENT
LOWdocs_sphinx/conf_helpers/state.py541 # The label differs by kind/where it renders:COMMENT
LOWcmake/checks/opencl.cpp1// custom OpenCL headers are located in "CL" subfolder (3rdparty/include/...)COMMENT
LOWcmake/checks/cpu_vsx.cpp1#if defined(__VSX__)COMMENT
LOWcmake/checks/webnn.cpp1#include <webnn/webnn_cpp.h>COMMENT
LOWcmake/checks/cpu_popcnt.cpp1#ifdef _MSC_VERCOMMENT
LOWcmake/checks/cpu_neon.cpp1#include <stdio.h>COMMENT
LOWhal/armpl/include/armpl_hal_core.hpp121#undef cv_hal_SVD32fCOMMENT
LOWhal/armpl/src/armpl_hal_core.cpp1#ifdef HAVE_ARMPLCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp41#define _tegra_hal_H_INCLUDED_COMMENT
LOWhal/carotene/hal/tegra_hal.hpp61 ST * src2_data_, size_t src2_step_,COMMENT
LOWhal/carotene/hal/tegra_hal.hpp161 : CV_HAL_ERROR_NOT_IMPLEMENTED \COMMENT
LOWhal/carotene/hal/tegra_hal.hpp181#define cv_hal_sub8s(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::s8, sub, src1, sz1, src2, sz2, dstCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp201#define cv_hal_max32s(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::s32, max, src1, sz1, src2, sz2, dCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp221#define cv_hal_absdiff8u(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::u8, absDiff, src1, sz1, src2, COMMENT
LOWhal/carotene/hal/tegra_hal.hpp281 ((op) == cv::CMP_LE) ? \COMMENT
LOWhal/carotene/hal/tegra_hal.hpp341COMMENT
LOWhal/carotene/hal/tegra_hal.hpp361#define cv_hal_div8u(src1, sz1, src2, sz2, dst, sz, w, h, scales) TEGRA_BINARYOPSCALE(CAROTENE_NS::u8, div, src1, sz1, sCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp381#define cv_hal_recip16s(src1, sz1, dst, sz, w, h, scales) TEGRA_UNARYOPSCALE(CAROTENE_NS::s16, recip, src1, sz1, dst, szCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp521#define TEGRA_NOT(src1, sz1, dst, sz, w, h) \COMMENT
LOWhal/carotene/hal/tegra_hal.hpp541#undef cv_hal_add32fCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp561#undef cv_hal_max8sCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp581#undef cv_hal_min32sCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp741#undef cv_hal_mul8uCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp761#undef cv_hal_div16sCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp801#define cv_hal_addWeighted16u TEGRA_ADDWEIGHTEDCOMMENT
LOWhal/carotene/hal/tegra_hal.hpp821 const ST * src2_data;COMMENT
LOWhal/carotene/hal/tegra_hal.hpp841 , dst2_data(dst2_data_)COMMENT
LOWhal/carotene/hal/tegra_hal.hpp1841#define cv_hal_cvtBGRtoBGR5x5 TEGRA_CVTBGRTOBGR565COMMENT
LOWhal/carotene/hal/dummy.cpp1// This file is needed for compilation on some platforms e.g. with XCode generatorCOMMENT
LOWhal/carotene/include/carotene/definitions.hpp41#define CAROTENE_DEFINITIONS_HPPCOMMENT
LOWhal/carotene/src/resize.cpp1281COMMENT
LOWhal/carotene/src/channels_combine.cpp61#define VLD1Q_LINE(type, n) v_dst.val[n] = vld1q_##type(src##n + sj);COMMENT
LOWhal/carotene/src/colorconvert.cpp1541 dst[dj + 2] = internal::saturate_cast<u8>(Cb);COMMENT
LOWhal/carotene/src/colorconvert.cpp2441 const u8 * yBase, ptrdiff_t yStride,COMMENT
LOWhal/carotene/src/colorconvert.cpp2461COMMENT
LOWhal/carotene/src/dummy.cpp1// This file is needed for compilation on some platforms e.g. with XCode generatorCOMMENT
LOWhal/carotene/src/common.hpp41#define CAROTENE_SRC_COMMON_HPPCOMMENT
LOWhal/ndsrvp/ndsrvp_hal.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ndsrvp/include/features2d.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ndsrvp/include/core.hpp201};COMMENT
LOWhal/ndsrvp/src/cvutils.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/include/ipp_hal_core.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/include/ipp_hal_core.hpp21 double* _minVal, double* _maxVal, int* _minIdx, int* _maxIdx, uchar* mask, size_t mask_steCOMMENT
LOWhal/ipp/include/ipp_hal_core.hpp101#define cv_hal_log32f ipp_hal_log32fCOMMENT
LOWhal/ipp/include/ipp_utils.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/include/ipp_utils.hpp21#endifCOMMENT
LOWhal/ipp/include/ipp_hal_imgproc.hpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/include/ipp_hal_imgproc.hpp101COMMENT
LOWhal/ipp/include/ipp_hal_imgproc.hpp141int ipp_hal_cvtBGRtoYUV(const uchar * src_data, size_t src_step, uchar * dst_data, size_t dst_step,COMMENT
LOWhal/ipp/include/ipp_hal_imgproc.hpp161#if !IPP_DISABLE_XYZ_RGBCOMMENT
LOWhal/ipp/include/ipp_hal_imgproc.hpp221 double lowThreshold, double highThreshold, bool L2gradient);COMMENT
LOWhal/ipp/src/transforms_ipp.cpp1// This file is part of OpenCV project.COMMENT
5293 more matches not shown…
Unused Imports382 hits · 374 pts
SeverityFileLineSnippetContext
LOWplatforms/apple/cv_build_utils.py6CODE
LOWplatforms/apple/cv_build_utils.py8CODE
LOWplatforms/osx/run_tests.py6CODE
LOWplatforms/osx/run_tests.py7CODE
LOWplatforms/osx/run_tests.py7CODE
LOWplatforms/osx/build_framework.py6CODE
LOWplatforms/osx/build_framework.py7CODE
LOWplatforms/js/build_js.py3CODE
LOWplatforms/ios/build_visionos_framework.py6CODE
LOWplatforms/ios/build_visionos_framework.py7CODE
LOWplatforms/ios/run_tests.py6CODE
LOWplatforms/ios/run_tests.py7CODE
LOWplatforms/ios/run_tests.py7CODE
LOWplatforms/ios/run_tests.py7CODE
LOWplatforms/ios/run_tests.py7CODE
LOWplatforms/ios/run_tests.py7CODE
LOWplatforms/ios/run_tests.py8CODE
LOWplatforms/ios/run_tests.py8CODE
LOWplatforms/ios/build_framework.py34CODE
LOWplatforms/ios/build_framework.py34CODE
LOWplatforms/ios/build_framework.py36CODE
LOWplatforms/android/build_sdk.py12CODE
LOWplatforms/android/build-tests/test_cmake_build.py4CODE
LOWplatforms/winpack_dldt/build_package.py5CODE
LOWplatforms/winpack_dldt/build_package.py6CODE
LOWplatforms/winpack_dldt/build_package.py9CODE
LOWdocs_sphinx/conf.py7CODE
LOWdocs_sphinx/conf.py131CODE
LOWdocs_sphinx/conf_helpers/build.py8CODE
LOWdocs_sphinx/conf_helpers/build.py9CODE
LOWdocs_sphinx/conf_helpers/build.py10CODE
LOWdocs_sphinx/conf_helpers/translate.py8CODE
LOWdocs_sphinx/conf_helpers/translate.py9CODE
LOWdocs_sphinx/conf_helpers/translate.py9CODE
LOWdocs_sphinx/conf_helpers/translate.py10CODE
LOWdocs_sphinx/conf_helpers/postprocess.py8CODE
LOWdocs_sphinx/conf_helpers/stubs.py8CODE
LOWdocs_sphinx/conf_helpers/stubs.py9CODE
LOWdocs_sphinx/conf_helpers/stubs.py9CODE
LOWdocs_sphinx/conf_helpers/stubs.py9CODE
LOWdocs_sphinx/conf_helpers/stubs.py10CODE
LOWdocs_sphinx/conf_helpers/stubs.py11CODE
LOWdocs_sphinx/conf_helpers/patches.py8CODE
LOWdocs_sphinx/conf_helpers/examples.py8CODE
LOWdocs_sphinx/conf_helpers/examples.py10CODE
LOWdocs_sphinx/conf_helpers/xml_render.py8CODE
LOWdocs_sphinx/conf_helpers/xml_render.py10CODE
LOWdocs_sphinx/conf_helpers/xml_render.py10CODE
LOWdocs_sphinx/conf_helpers/xml_render.py11CODE
LOWdocs_sphinx/conf_helpers/state.py8CODE
LOWdocs_sphinx/conf_helpers/state.py9CODE
LOWdocs_sphinx/conf_helpers/state.py9CODE
LOWdocs_sphinx/conf_helpers/state.py112CODE
LOWdocs_sphinx/conf_helpers/state.py241CODE
LOWsamples/python/macbeth_chart_detection.py2CODE
LOWsamples/python/macbeth_chart_detection.py7CODE
LOWsamples/python/_coverage.py8CODE
LOWsamples/python/mouse_and_match.py15CODE
LOWsamples/python/mouse_and_match.py22CODE
LOWsamples/python/mouse_and_match.py25CODE
322 more matches not shown…
Decorative Section Separators117 hits · 343 pts
SeverityFileLineSnippetContext
MEDIUM⚡CMakeLists.txt136# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt138# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt142# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt144# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt539# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt541# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt546# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt548# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt594# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt596# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt600# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt602# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt605# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt607# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1030# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1032# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1040# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1042# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1051# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡CMakeLists.txt1053# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt7# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt122# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt124# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt167# ===================================================COMMENT
MEDIUMCMakeLists.txt448# ===================================================COMMENT
MEDIUMCMakeLists.txt470# ===================================================COMMENT
MEDIUMCMakeLists.txt480# ===================================================COMMENT
MEDIUMCMakeLists.txt673# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt675# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt761# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt763# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt774# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt776# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt803# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt805# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt894# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt896# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1081# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1083# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1170# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1172# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt2053# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt2055# ----------------------------------------------------------------------------COMMENT
MEDIUMplatforms/js/build_js.py225#===================================================================================================COMMENT
MEDIUMplatforms/android/build_sdk.py118#===================================================================================================COMMENT
MEDIUMplatforms/android/build_sdk.py145#===================================================================================================COMMENT
MEDIUMplatforms/android/build_sdk.py419#===================================================================================================COMMENT
MEDIUMplatforms/android/build-tests/test_cmake_build.py44#===================================================================================================STRING
MEDIUMplatforms/winpack_dldt/build_package.py159#===================================================================================================COMMENT
MEDIUMplatforms/winpack_dldt/build_package.py335#===================================================================================================COMMENT
MEDIUMplatforms/winpack_dldt/build_package.py467#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt2#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt6#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt62#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt66#===================================================================================================COMMENT
MEDIUM…gProc/BasicGeometricDrawing/basic_geometric_drawing.py76# -----------------------COMMENT
MEDIUM…gProc/BasicGeometricDrawing/basic_geometric_drawing.py90# ------------------COMMENT
MEDIUMsamples/java/tutorial_code/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
MEDIUMsamples/java/tutorial_code/CMakeLists.txt4# ----------------------------------------------------------------------------COMMENT
57 more matches not shown…
Empty Error Handlers46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHdocs_sphinx/conf.py35except ImportError:CODE
HIGHdocs_sphinx/conf.py189except ValueError: passCODE
HIGHdocs_sphinx/conf.py199except (OSError, NotImplementedError): passCODE
HIGHdocs_sphinx/conf_helpers/build.py52except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py327except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py374except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py405except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py461except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py508except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py146except OSError:CODE
HIGHdocs_sphinx/conf_helpers/build.py226except OSError:CODE
HIGHdocs_sphinx/conf_helpers/postprocess.py286except OSError:CODE
HIGHdocs_sphinx/conf_helpers/postprocess.py590except OSError:CODE
HIGHdocs_sphinx/conf_helpers/postprocess.py526except OSError:CODE
HIGHdocs_sphinx/conf_helpers/stubs.py673except _ET.ParseError:CODE
HIGHdocs_sphinx/conf_helpers/stubs.py688except _ET.ParseError:CODE
HIGHdocs_sphinx/conf_helpers/stubs.py444except OSError:CODE
HIGHdocs_sphinx/conf_helpers/xml_render.py100except _ET.ParseError:CODE
HIGHdocs_sphinx/conf_helpers/state.py375except Exception:CODE
HIGHdocs_sphinx/conf_helpers/state.py454except Exception:CODE
HIGHdocs_sphinx/conf_helpers/state.py575except Exception:CODE
HIGHdocs_sphinx/conf_helpers/state.py629except Exception:CODE
HIGHsamples/python/_doc.py22except Exception:CODE
HIGHsamples/python/video.py179except ValueError: passCODE
HIGHsamples/python/video.py186except: passCODE
HIGHsamples/dnn/common.py154except KeyError:CODE
HIGHsamples/dnn/object_detection.py296except queue.Empty:CODE
HIGHsamples/dnn/object_detection.py361except queue.Empty:CODE
HIGH3rdparty/harfbuzz/hb_extract.py278except OSError:CODE
HIGH3rdparty/clapack/make_clapack.py185except os.error:CODE
HIGH3rdparty/clapack/make_clapack.py189except os.error:CODE
HIGHmodules/python/test/test_misc.py149except cv.error as _e:CODE
HIGHmodules/python/test/test_misc.py169except cv.error as _e:CODE
HIGHmodules/python/test/test_misc.py994except cv.error as _e:CODE
HIGHmodules/python/test/tests_common.py95except KeyError:CODE
HIGHmodules/videoio/misc/python/test/test_videoio.py106except RuntimeError:CODE
HIGHmodules/ts/misc/concatlogs.py40except:CODE
HIGHmodules/ts/misc/run_utils.py195except:CODE
HIGHmodules/ts/misc/table_formatter.py240except AttributeError:CODE
HIGHmodules/ts/misc/table_formatter.py246except AttributeError:CODE
HIGHmodules/ts/misc/table_formatter.py248except KeyError:CODE
HIGHmodules/ts/misc/run_suite.py110except:CODE
HIGHmodules/ts/misc/trace_profiler.py59except ValueError:CODE
HIGHmodules/ts/misc/trace_profiler.py55except ValueError:CODE
HIGHmodules/ts/misc/report.py78except:CODE
HIGHapps/pattern-tools/svgfig.py671except TypeError:CODE
Hyper-Verbose Identifiers219 hits · 218 pts
SeverityFileLineSnippetContext
LOWplatforms/apple/build_xcframework.py87 def get_or_create_build_folder(base_dir, platform):STRING
LOWplatforms/android/build_static_aar.py83def convert_deps_list_to_prefab(linked_libs, opencv_libs, external_libs):CODE
LOWdocs_sphinx/conf_helpers/build.py158def _add_dnn_engine_selection_topic(out_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/build.py331def _write_related_pages_index() -> None:CODE
LOWdocs_sphinx/conf_helpers/build.py414def _write_namespace_list_index() -> None:CODE
LOWdocs_sphinx/conf_helpers/translate.py53def _strip_doxygen_block_comments(text: str) -> str:CODE
LOWdocs_sphinx/conf_helpers/translate.py932 def _linkify_markdown_codespan(m: re.Match) -> str:CODE
LOWdocs_sphinx/conf_helpers/translate.py1124 def _dedent_subpage_descriptions(src: str) -> str:CODE
LOWdocs_sphinx/conf_helpers/translate.py1176 def _normalize_over_indented_markers(src: str) -> str:CODE
LOWdocs_sphinx/conf_helpers/translate.py1455def _linkify_opencv_source_code(src: str) -> str:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py38def _inline_collaboration_svgs(api_dir: pathlib.Path,CODE
LOWdocs_sphinx/conf_helpers/postprocess.py96def _strip_breathe_class_clutter(api_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py275def _drop_moved_stub_search_entries() -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py607def _inject_sidebar_autoscroll(out_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py624def _repair_dangling_toc_anchors(out_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py643def _redirect_orphan_duplicates(app, out_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py704def _linkify_dnn_engine_selection(out_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/postprocess.py827def _inline_coll_graphs_on_finish(app, exception):CODE
LOWdocs_sphinx/conf_helpers/stubs.py2378def _apply_group_doc_override(tree: dict, xml_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/stubs.py2404def _harvest_namespace_into_group(tree: dict, xml_dir: pathlib.Path) -> None:CODE
LOWdocs_sphinx/conf_helpers/patches.py56def _silence_breathe_anon_enum_warning():CODE
LOWdocs_sphinx/conf_helpers/patches.py73def _patch_breathe_operator_signatures():CODE
LOWdocs_sphinx/conf_helpers/patches.py161def _silence_orphan_toctree_warning():CODE
LOWdocs_sphinx/conf_helpers/patches.py176def _patch_sidebar_section_root():CODE
LOWdocs_sphinx/conf_helpers/patches.py235def _patch_sphinx_toctree_ancestors():CODE
LOWdocs_sphinx/conf_helpers/examples.py136def _scan_tutorial_sample_refs() -> dict[str, str]:CODE
LOWdocs_sphinx/conf_helpers/examples.py214def _scan_doxygen_example_decls() -> dict[str, tuple[str, str]]:CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1140def _hoist_spilled_param_prose(cd) -> bool:CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1192def _patch_namespace_xml_for_breathe(xml_dir: pathlib.Path,CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1372def _read_namespace_member_sections(ns_refid: str,CODE
LOWdocs_sphinx/conf_helpers/state.py46def _discover_contrib_modules() -> list[str]:CODE
LOWdocs_sphinx/_static/version.js85function renderDoxygenVersionDropdown() {CODE
LOWsamples/slam/visual_odometry.py29def rotation_matrix_to_quaternion(R):CODE
LOWsamples/python/visualize_mono_calibration.py283def export_scene_to_obj_multi(CODE
LOWsamples/python/camera_calibration_show_extrinsics.py25def inverse_homogeneoux_matrix(M):CODE
LOWsamples/python/camera_calibration_show_extrinsics.py34def transform_to_matplotlib_frame(cMo, X, inverse=False):CODE
LOW⚡…brightness_image/changing_contrast_brightness_image.py31def on_linear_transform_alpha_trackbar(val):CODE
LOW⚡…brightness_image/changing_contrast_brightness_image.py36def on_linear_transform_beta_trackbar(val):CODE
LOW⚡…brightness_image/changing_contrast_brightness_image.py41def on_gamma_correction_trackbar(val):CODE
LOWsamples/dnn/ldm_inpainting.py157def make_ddim_sampling_parameters(alphacums, ddim_timesteps, eta, verbose=True):STRING
LOWsamples/dnn/granite_docling_inference.py62def open_json_config_or_throw(path):CODE
LOWsamples/dnn/granite_docling_inference.py73def get_int_with_text_config_fallback(config, name, fallback):CODE
LOWsamples/dnn/granite_docling_inference.py86def resize_for_vision_encoder(height, width, max_edge):CODE
LOWsamples/dnn/granite_docling_inference.py179def granite_docling_inference(vision_net, embed_net, text_net, pixel_values,CODE
LOWsamples/dnn/paddleocr_vl_inference.py63def open_json_config_or_throw(path):CODE
LOWsamples/dnn/paddleocr_vl_inference.py74def get_int_with_text_config_fallback(config, name, fallback):CODE
LOW…es/dnn/dnn_model_runner/dnn_conversion/common/utils.py54def set_common_reproducibility():CODE
LOW…/dnn_conversion/common/test/cls_model_test_pipeline.py43 def _configure_test_module_params(self):CODE
LOW…nner/dnn_conversion/common/test/model_test_pipeline.py120 def _configure_test_module_params(self):CODE
LOW…conversion/pytorch/classification/py_to_py_resnet50.py76def get_opencv_dnn_prediction(opencv_net, preproc_img, imagenet_labels):CODE
LOW…conversion/pytorch/classification/py_to_py_resnet50.py94def get_pytorch_dnn_prediction(original_net, preproc_img, imagenet_labels):CODE
LOWdoc/tools/html_functions.py85def insert_python_fn_signature(soup, table, variants, symbol):CODE
LOWdoc/tools/html_functions.py92def create_python_fn_description(soup, variants):CODE
LOW3rdparty/harfbuzz/hb_extract.py226def prune_unreferenced_headers(out_src_dir):STRING
LOW3rdparty/harfbuzz/src/hb-unicode.h354typedef hb_unicode_combining_class_t (*hb_unicode_combining_class_func_t) (hb_unicode_funcs_t *ufuncs,CODE
LOW3rdparty/harfbuzz/src/hb-unicode.h372typedef hb_unicode_general_category_t (*hb_unicode_general_category_func_t) (hb_unicode_funcs_t *ufuncs,CODE
LOWmodules/calib/misc/python/test/test_calibration.py18 def test_fisheye_calibration_point_layout(self):CODE
LOW…les/flann/misc/python/test/test_flann_based_matcher.py12 def test_all_parameters_can_be_passed(self):CODE
LOWmodules/python/test/test_numpy_byte_order.py9 def test_numpy_non_native_byte_order_input(self):CODE
LOWmodules/python/test/test_numpy_byte_order.py26 def test_numpy_non_native_byte_order_normalize(self):CODE
159 more matches not shown…
Excessive Try-Catch Wrapping91 hits · 176 pts
SeverityFileLineSnippetContext
LOWplatforms/apple/build_xcframework.py179 except Exception as e:STRING
LOWplatforms/ios/run_tests.py39 except Exception as e:CODE
MEDIUMplatforms/ios/run_tests.py36def run(self):CODE
LOWplatforms/ios/build_framework.py199 except Exception as e:CODE
MEDIUMplatforms/ios/build_framework.py196def build(self, outdir):CODE
LOWplatforms/android/build_sdk.py66 except Exception as e:CODE
MEDIUMplatforms/android/build_sdk.py22def execute(cmd, shell=False):CODE
LOWdocs_sphinx/conf_helpers/state.py375 except Exception:CODE
LOWdocs_sphinx/conf_helpers/state.py454 except Exception:CODE
LOWdocs_sphinx/conf_helpers/state.py575 except Exception:CODE
LOWdocs_sphinx/conf_helpers/state.py629 except Exception:CODE
MEDIUMsamples/python/aruco_detect_board_charuco.py87 print("Error: unable to open video/image source")CODE
MEDIUM⚡samples/python/audio_spectrogram.py717 print("Error: ", args.inputType, " input method doesnt exist")CODE
MEDIUM⚡samples/python/audio_spectrogram.py720 print("Error: ", args.draw, " draw type doesnt exist")CODE
MEDIUM⚡samples/python/audio_spectrogram.py723 print("Error: ", args.graph, " type of graph doesnt exist")CODE
MEDIUM⚡samples/python/audio_spectrogram.py726 print("Error: ", args.windowType, " type of window doesnt exist")CODE
MEDIUM⚡samples/python/audio_spectrogram.py729 print("Error: windLen = ", args.windLen, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py732 print("Error: overlap = ", args.overlap, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py735 print("Error: rows = ", args.rows, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py738 print("Error: cols = ", args.cols, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py741 print("Error: xmarkup = ", args.xmarkup, " - incorrect value. Must be >= 2")CODE
MEDIUM⚡samples/python/audio_spectrogram.py744 print("Error: ymarkup = ", args.ymarkup, " - incorrect value. Must be >= 2")CODE
MEDIUM⚡samples/python/audio_spectrogram.py747 print("Error: zmarkup = ", args.zmarkup, " - incorrect value. Must be >= 2")CODE
MEDIUM⚡samples/python/audio_spectrogram.py750 print("Error: microTime = ", args.microTime, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py753 print("Error: frameSizeTime = ", args.frameSizeTime, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py756 print("Error: updateTime = ", args.updateTime, " - incorrect value. Must be > 0")CODE
MEDIUM⚡samples/python/audio_spectrogram.py759 print("Error: waitTime = ", args.waitTime, " - incorrect value. Must be >= 0")CODE
MEDIUMsamples/python/audio_spectrogram.py111 print("Error : Can't read audio file: '", self.audio, "' with audioStream = ", self.audioStream)CODE
MEDIUMsamples/python/audio_spectrogram.py112 print("Error: problems with audio reading, check input arguments")CODE
MEDIUMsamples/python/audio_spectrogram.py150 print("Error: Can't open microphone")CODE
MEDIUMsamples/python/audio_spectrogram.py151 print("Error: problems with audio reading, check input arguments")CODE
MEDIUMsamples/python/audio_spectrogram.py178 print("Error: Grab error")CODE
LOWsamples/python/_doc.py22 except Exception:CODE
MEDIUMsamples/python/qrcode.py181 print("Error exception: ", e)CODE
LOWsamples/python/demo.py123 except Exception as e:CODE
MEDIUM…ython/tutorial_code/core/AddingImages/adding_images.py23 print("Error loading src1")CODE
MEDIUM…ython/tutorial_code/core/AddingImages/adding_images.py26 print("Error loading src2")CODE
MEDIUM…screte_fourier_transform/discrete_fourier_transform.py24 print('Error opening image')CODE
MEDIUM…es/python/tutorial_code/imgProc/Smoothing/smoothing.py25 print ('Error opening image')CODE
MEDIUM…ples/python/tutorial_code/imgProc/Pyramids/pyramids.py21 print ('Error opening image!')STRING
MEDIUM…imgProc/morph_lines_detection/morph_lines_detection.py30 print ('Error opening image: ' + argv[0])CODE
MEDIUM…/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py24 print ('Error opening image!')CODE
MEDIUM…les/python/tutorial_code/ImgTrans/Filter2D/filter2D.py21 print ('Error opening image!')CODE
MEDIUM…/python/tutorial_code/ImgTrans/LaPlace/laplace_demo.py23 print ('Error opening image')CODE
MEDIUM…/python/tutorial_code/ImgTrans/SobelDemo/sobel_demo.py31 print ('Error opening image: ' + argv[0])CODE
MEDIUM…python/tutorial_code/ImgTrans/HoughLine/hough_lines.py21 print ('Error opening image!')CODE
MEDIUM…hon/tutorial_code/ImgTrans/HoughCircle/hough_circle.py16 print ('Error opening image!')CODE
LOWsamples/dnn/super_resolution.py101 except Exception as e:CODE
MEDIUMsamples/dnn/super_resolution.py102 print(f"Error loading model: {e}")CODE
LOWsamples/dnn/object_tracker.py125 except Exception as e:STRING
LOWsamples/dnn/download_models.py106 except Exception as e:CODE
LOWsamples/dnn/download_models.py168 except Exception as e:CODE
MEDIUMsamples/dnn/speech_recognition.py419 print("Error : Can't read audio file:", file, "with audioStream = ", audioStream)CODE
MEDIUMsamples/dnn/speech_recognition.py444 print("Error: Can't open microphone")CODE
MEDIUMsamples/dnn/speech_recognition.py445 print("Error: problems with audio reading, check input arguments")CODE
MEDIUMsamples/dnn/speech_recognition.py460 print("Error: Grab error")CODE
LOWsamples/dnn/text_detection.py178 except Exception as e:CODE
MEDIUMsamples/dnn/auto_white_balance.py164 print(f"Error loading model: {e}", file=sys.stderr)CODE
MEDIUMsamples/dnn/auto_white_balance.py186 print("Error: model output of size not equal to 3 (should output 3 illuminants in RGB order)")CODE
MEDIUMsamples/dnn/person_reid.py207 print("Error reading the video")CODE
31 more matches not shown…
Deep Nesting173 hits · 166 pts
SeverityFileLineSnippetContext
LOWplatforms/ios/build_framework.py96CODE
LOWplatforms/ios/build_framework.py462CODE
LOWplatforms/ios/build_framework.py561CODE
LOWplatforms/android/build_static_aar.py66CODE
LOWplatforms/android/build_static_aar.py83CODE
LOWplatforms/android/build_sdk.py385CODE
LOWplatforms/android/build_sdk.py350CODE
LOWplatforms/winpack_dldt/build_package.py93CODE
LOWplatforms/winpack_dldt/build_package.py100CODE
LOWdocs_sphinx/conf_helpers/translate.py285CODE
LOWdocs_sphinx/conf_helpers/translate.py484CODE
LOWdocs_sphinx/conf_helpers/translate.py962CODE
LOWdocs_sphinx/conf_helpers/translate.py1176CODE
LOWdocs_sphinx/conf_helpers/translate.py973CODE
LOWdocs_sphinx/conf_helpers/stubs.py299CODE
LOWdocs_sphinx/conf_helpers/stubs.py593CODE
LOWdocs_sphinx/conf_helpers/stubs.py952CODE
LOWdocs_sphinx/conf_helpers/stubs.py1607CODE
LOWdocs_sphinx/conf_helpers/stubs.py1788CODE
LOWdocs_sphinx/conf_helpers/stubs.py2459CODE
LOWdocs_sphinx/conf_helpers/stubs.py1139CODE
LOWdocs_sphinx/conf_helpers/patches.py73CODE
LOWdocs_sphinx/conf_helpers/patches.py176CODE
LOWdocs_sphinx/conf_helpers/patches.py80CODE
LOWdocs_sphinx/conf_helpers/patches.py189CODE
LOWdocs_sphinx/conf_helpers/examples.py136CODE
LOWdocs_sphinx/conf_helpers/examples.py214CODE
LOWdocs_sphinx/conf_helpers/xml_render.py55CODE
LOWdocs_sphinx/conf_helpers/xml_render.py119CODE
LOWdocs_sphinx/conf_helpers/xml_render.py181CODE
LOWdocs_sphinx/conf_helpers/xml_render.py316CODE
LOWdocs_sphinx/conf_helpers/xml_render.py337CODE
LOWdocs_sphinx/conf_helpers/xml_render.py951CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1192CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1340CODE
LOWdocs_sphinx/conf_helpers/xml_render.py60CODE
LOWdocs_sphinx/conf_helpers/xml_render.py378CODE
LOWdocs_sphinx/conf_helpers/xml_render.py592CODE
LOWdocs_sphinx/conf_helpers/xml_render.py636CODE
LOWdocs_sphinx/conf_helpers/xml_render.py679CODE
LOWdocs_sphinx/conf_helpers/xml_render.py713CODE
LOWdocs_sphinx/conf_helpers/xml_render.py433CODE
LOWdocs_sphinx/conf_helpers/state.py58CODE
LOWdocs_sphinx/conf_helpers/state.py657CODE
LOWdocs_sphinx/conf_helpers/state.py695CODE
LOWsamples/gdb/mat_pretty_printer.py60CODE
LOWsamples/python/macbeth_chart_detection.py71CODE
LOWsamples/python/aruco_detect_board_charuco.py24CODE
LOWsamples/python/visualize_mono_calibration.py283CODE
LOWsamples/python/visualize_mono_calibration.py443CODE
LOWsamples/python/mouse_and_match.py32CODE
LOWsamples/python/audio_spectrogram.py40CODE
LOWsamples/python/audio_spectrogram.py534CODE
LOWsamples/python/audio_spectrogram.py624CODE
LOWsamples/python/plane_tracker.py146CODE
LOWsamples/python/qrcode.py62CODE
LOWsamples/python/stitching_detailed.py276CODE
LOWsamples/python/grabcut.py59CODE
LOWsamples/python/grabcut.py101CODE
LOWsamples/python/demo.py49CODE
113 more matches not shown…
Self-Referential Comments48 hits · 142 pts
SeverityFileLineSnippetContext
MEDIUMdocs_sphinx/conf.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/build.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/translate.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/postprocess.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/__init__.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/stubs.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/patches.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/examples.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/xml_render.py1# This file is part of OpenCV project.COMMENT
MEDIUMdocs_sphinx/conf_helpers/state.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/install/linux_install_b.sh2# This file contains documentation snippets for Linux installation tutorialCOMMENT
MEDIUMsamples/install/linux_install_a.sh2# This file contains documentation snippets for Linux installation tutorialCOMMENT
MEDIUMsamples/install/linux_quick_install_contrib.sh2# This file contains documentation snippets for Linux installation tutorialCOMMENT
MEDIUMsamples/install/linux_quick_install.sh2# This file contains documentation snippets for Linux installation tutorialCOMMENT
MEDIUMsamples/python/visualize_mono_calibration.py1# This file is part of OpenCV project.COMMENT
MEDIUM…les/python/snippets/chromatic_aberration_correction.py2# This file is part of OpenCV project.COMMENT
MEDIUM…ython/tutorial_code/video/optical_flow/optical_flow.py32# Create a mask image for drawing purposesCOMMENT
MEDIUM…ion/good_features_to_track/goodFeaturesToTrack_Demo.py51# Create a window and a trackbarCOMMENT
MEDIUM…e/TrackingMotion/corner_subpixels/cornerSubPix_Demo.py63# Create a window and a trackbarCOMMENT
MEDIUM…de/TrackingMotion/harris_detector/cornerHarris_Demo.py48# Create a window and a trackbarCOMMENT
MEDIUM…es/python/tutorial_code/imgProc/threshold/threshold.py40# Create a window to display resultsCOMMENT
MEDIUM…imgProc/morph_lines_detection/morph_lines_detection.py58 # Create the images that will use to extract the horizontal and vertical linesCOMMENT
MEDIUM…/ImgTrans/distance_transformation/imageSegmentation.py36# Create a kernel that we will use to sharpen our imageCOMMENT
MEDIUM…/ImgTrans/distance_transformation/imageSegmentation.py89# Create the CV_8U version of the distance imageCOMMENT
MEDIUM…/ImgTrans/distance_transformation/imageSegmentation.py96# Create the marker image for the watershed algorithmCOMMENT
MEDIUM…/ImgTrans/distance_transformation/imageSegmentation.py125# Create the result imageCOMMENT
MEDIUM…escriptors/point_polygon_test/pointPolygonTest_demo.py6# Create an imageCOMMENT
MEDIUM…escriptors/point_polygon_test/pointPolygonTest_demo.py10# Create a sequence of points to make a contourCOMMENT
MEDIUMsamples/python/tutorial_code/imgcodecs/animations.py7 # Create an Animation instance to saveCOMMENT
MEDIUMsamples/dnn/ldm_inpainting.py533 # Create a copy of the image to show instructionsSTRING
MEDIUMsamples/dnn/classification.py129 # Create a 4D blob from a frame.COMMENT
MEDIUMsamples/dnn/bert_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/granite_docling_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/gemma3_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/auto_white_balance.py2# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/paddleocr_vl_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/vlm_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/albert_inference.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/qwen3_tts.py2# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/object_detection.py304 # Create a 4D blob from a frame.COMMENT
MEDIUMsamples/dnn/segmentation.py168 # Create a 4D blob from a frame.COMMENT
MEDIUMmodules/python/test/test_chromatic_aberration.py2# This file is part of OpenCV project.COMMENT
MEDIUM…/python/src2/typing_stubs_generation/api_refinement.py422 # Create a union of current type and ScalarCOMMENT
MEDIUMmodules/dnn/misc/python/test/test_onnx_conformance.py2# This file is part of OpenCV project.COMMENT
MEDIUM…les/dnn/misc/python/test/test_onnx_conformance_list.py2# This file is part of OpenCV project.COMMENT
MEDIUM…omatic-aberration-calibration/chromatic_calibration.py1# This file is part of OpenCV project.COMMENT
MEDIUMapps/multiview-calibration/multiview_calibration.py3# This file is part of OpenCV project.COMMENT
MEDIUMapps/multiview-calibration/multiview_calibration.py626 # Define the x and y coordinate vectorsCOMMENT
Cross-Language Confusion19 hits · 110 pts
SeverityFileLineSnippetContext
HIGHplatforms/osx/build_framework.py124 print_error("--macos_archs and --catalyst_archs are undefined; nothing will be built.")CODE
HIGHplatforms/ios/build_visionos_framework.py108 print_error("--visionos_archs and --visionsimulator_archs are undefined; nothing will be built.")CODE
HIGHplatforms/ios/build_framework.py651 print_error("--iphoneos_archs and --iphonesimulator_archs are undefined; nothing will be built.")CODE
HIGHsamples/dnn/speech_recognition.py11 Download and unzip : `$ wget --content-disposition https://api.ngc.nvidia.com/v2/models/nvidia/jasper_pyt_onnx_fp16_STRING
HIGHmodules/python/src2/gen2.py88 if(!src || src == Py_None)CODE
HIGHmodules/python/src2/gen2.py113 ok = tmp && pyopencv_to_safe(tmp, dst.$propname, ArgInfo("$propname", 0));CODE
HIGHmodules/python/src2/gen2.py1044 code_parse = "if(PyObject_Size(py_args) == 0 && (!kw || PyObject_Size(kw) == 0))"STRING
HIGHmodules/java/generator/gen_java.py785 j_prologue.append( "List<Mat> %(n)s_tmplm = new ArrayList<Mat>((%(n)s != null) ? %(n)s.sCODE
HIGHmodules/java/generator/gen_java.py832 j_epilogue.append('if(%(n)s!=null) %(n)s[0] = (%(t)s)%(n)s_out[0];' % {'n':a.name,'t':type_dCODE
HIGHmodules/java/generator/gen_java.py848 j_epilogue.append( "if("+a.name+"!=null){ " + "; ".join(set_vals) + "; } ")CODE
HIGHmodules/ts/misc/table_formatter.py532 vars.push(decodeURIComponent(hash[0]))CODE
HIGH⚡modules/ts/misc/table_formatter.py555 if (re.exec($(row.get(colIdx)).text()) == null)CODE
HIGH⚡modules/ts/misc/table_formatter.py556 return falseCODE
HIGH⚡modules/ts/misc/table_formatter.py564 if (!val || val >= 1 || val > 1+percent)CODE
HIGH⚡modules/ts/misc/table_formatter.py565 return falseCODE
HIGH⚡modules/ts/misc/table_formatter.py571 if (!val || val < percent)CODE
HIGH⚡modules/ts/misc/table_formatter.py572 return falseCODE
HIGH⚡modules/ts/misc/table_formatter.py580 if (!val || val < percent)CODE
HIGH⚡modules/ts/misc/table_formatter.py581 return falseCODE
AI Slop Vocabulary27 hits · 74 pts
SeverityFileLineSnippetContext
LOWplatforms/android/build_static_aar.py176 # full dependency list for all ABIs. So we just add empty .a library if this ABI doesn't have this depenCOMMENT
MEDIUM…3d/real_time_pose_estimation/src/main_registration.cpp125 //Instantiate robust matcher: detector, extractor, matcherCOMMENT
MEDIUM3rdparty/mlas/lib/flashattn.cpp145 // TODO: leverage advanced instruction setsCOMMENT
MEDIUM3rdparty/clapack/src/dgeev.c3839//> It is (1) more robust against overflow and underflow andCOMMENT
MEDIUM3rdparty/clapack/src/dgeev.c12482//> substitution, with scaling to make the the code robust againstCOMMENT
MEDIUM…arty/flatbuffers/include/flatbuffers/vector_downward.h34// Essentially, this supports 2 std::vectors in a single buffer.COMMENT
MEDIUMmodules/core/include/opencv2/core/cuda.hpp668 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUMmodules/core/include/opencv2/core/cuda.hpp711 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUMmodules/core/include/opencv2/core/cuda.hpp729 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUM…ules/ptcloud/include/opencv2/ptcloud/detail/submap.hpp12//TODO: remove it when it is rewritten to robust pose graphCOMMENT
MEDIUMmodules/imgproc/src/hough.cpp2150 // be small and the arc can be big, or vice versa. Weighted area is more robust.COMMENT
MEDIUMmodules/imgproc/src/hough.cpp2152 // It seems to be more robust to compare circle areas (without "pi" scale)COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp732 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp788 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp890 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/geometry/include/opencv2/geometry/segment.hpp17//! type of the robust estimation algorithmCOMMENT
MEDIUMmodules/geometry/include/opencv2/geometry/3d.hpp371//! type of the robust estimation algorithmCOMMENT
MEDIUMmodules/geometry/src/ptsetreg.cpp785 // The robust framework ensures consensus on larger sets; a closed-form LS refitCOMMENT
MEDIUMmodules/geometry/src/ptsetreg.cpp1010 // run robust methodCOMMENT
MEDIUMmodules/geometry/src/ptsetreg.cpp1148 // run robust estimationCOMMENT
MEDIUMmodules/geometry/src/ptsetreg.cpp1293 // Create robust estimators with the same semantics as affine functions.COMMENT
MEDIUMmodules/geometry/src/usac/bundle.cpp167 // Compute weight from robust loss function (used in the IRLS)COMMENT
MEDIUMmodules/highgui/src/window_QT.h274//if (obj->metaObject ()->className () == "CvWindow") does not give me robust resultCOMMENT
LOWmodules/ts/misc/xls-report.py119 # We can't just use a dictionary instead, since we want to preserve the sorted order of the keys.COMMENT
MEDIUMmodules/ts/include/opencv2/ts/ts_gtest.h9748// This implementation is *not* meant to be as highly tuned or robustCOMMENT
MEDIUMmodules/ts/include/opencv2/ts/ts_gtest.h9821// In practice, this can be used to test functions that utilize theCOMMENT
MEDIUMmodules/photo/include/opencv2/photo.hpp72 https://www.learnopencv.com/seamless-cloning-using-opencv-python-cppCODE
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…oneXamlDirect3DApp1/Resources/AppResources.Designer.cs3// This code was generated by a tool.COMMENT
HIGH…oneXamlDirect3DApp1/Resources/AppResources.Designer.cs3// This code was generated by a tool.COMMENT
HIGH…enCVXaml/OpenCVXaml/Resources/AppResources.Designer.cs3// This code was generated by a tool.COMMENT
HIGHmodules/geometry/src/usac/utils.cpp702 // skip neighbor which has the same index as requested pointCOMMENT
Redundant / Tautological Comments22 hits · 30 pts
SeverityFileLineSnippetContext
LOWsamples/python/snippets/houghcircles.py32 if circles is not None: # Check if circles have been found and only then iterate over these and add them to the imagCODE
LOW…ples/python/tutorial_code/imgProc/Pyramids/pyramids.py19 # Check if image is loaded fineSTRING
LOW…imgProc/morph_lines_detection/morph_lines_detection.py28 # Check if image is loaded fineCOMMENT
LOW…/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py22 # Check if image is loaded fineCOMMENT
LOW…les/python/tutorial_code/ImgTrans/Filter2D/filter2D.py19 # Check if image is loaded fineCOMMENT
LOW…/python/tutorial_code/ImgTrans/LaPlace/laplace_demo.py21 # Check if image is loaded fineCOMMENT
LOW…/python/tutorial_code/ImgTrans/SobelDemo/sobel_demo.py29 # Check if image is loaded fineCOMMENT
LOW…python/tutorial_code/ImgTrans/HoughLine/hough_lines.py19 # Check if image is loaded fineCOMMENT
LOW…hon/tutorial_code/ImgTrans/HoughCircle/hough_circle.py14 # Check if image is loaded fineCOMMENT
LOW…ial_code/ml/introduction_to_pca/introduction_to_pca.py68# Check if image is loaded successfullyCOMMENT
LOWmodules/core/include/opencv2/core/persistence.hpp79-# Close the file using FileStorage::release. FileStorage destructor also closes the file.CODE
LOWmodules/core/include/opencv2/core/persistence.hpp176-# Open the file storage using FileStorage::FileStorage constructor or FileStorage::open method.CODE
LOWmodules/python/src2/gen2.py655 # Check if there is params structure in argumentsSTRING
LOW…ules/python/src2/typing_stubs_generation/generation.py595 # Check if typing module is required due to @overload decorator usageCOMMENT
LOW…ules/python/src2/typing_stubs_generation/generation.py775 # Check if alias is already registeredCOMMENT
LOW…ules/python/src2/typing_stubs_generation/generation.py784 # Check if collection contains a link to another aliasCOMMENT
LOW…/python/src2/typing_stubs_generation/api_refinement.py198 # Check if library is built with enabled highgui moduleCOMMENT
LOW…/python/src2/typing_stubs_generation/api_refinement.py409 # Check if it's already a union or if it already includes ScalarCOMMENT
LOW…/python/src2/typing_stubs_generation/api_refinement.py411 # Check if Scalar is already in the unionCOMMENT
LOW…ython/src2/typing_stubs_generation/types_conversion.py237 # Check if argument requires type substitutionCOMMENT
LOWmodules/js/generator/embindgen.py861 # Check if the method is an external constructorCOMMENT
LOWmodules/ts/misc/run_long.py107# Print result to the stdoutCOMMENT
AI Structural Patterns25 hits · 24 pts
SeverityFileLineSnippetContext
LOWsamples/python/common.py199CODE
LOWsamples/python/snippets/dis_opt_flow.py57CODE
LOWsamples/python/snippets/opt_flow.py57CODE
LOWsamples/dnn/ldm_inpainting.py235CODE
LOWsamples/dnn/ldm_inpainting.py386CODE
LOWsamples/dnn/human_parsing.py51CODE
LOWsamples/dnn/speech_recognition.py68CODE
LOWsamples/dnn/text_detection.py92CODE
LOWsamples/dnn/virtual_try_on.py397CODE
LOWsamples/dnn/optical_flow.py38CODE
LOWsamples/dnn/optical_flow.py63CODE
LOW…n_model_runner/dnn_conversion/pytorch/pytorch_model.py82CODE
LOWmodules/core/src/opencl/runtime/generator/common.py131CODE
LOWmodules/python/test/test_misc.py121CODE
LOWmodules/ptcloud/misc/python/test_raster.py34CODE
LOWmodules/java/generator/gen_java.py193CODE
LOWmodules/java/generator/gen_java.py197CODE
LOWmodules/java/generator/gen_java.py201CODE
LOWmodules/java/generator/gen_java.py205CODE
LOWmodules/java/generator/gen_java.py209CODE
LOWapps/pattern-tools/svgfig.py724CODE
LOWapps/pattern-tools/svgfig.py3178CODE
LOWapps/pattern-tools/svgfig.py3273CODE
LOWapps/pattern-tools/svgfig.py3328CODE
LOWapps/pattern-tools/svgfig.py3381CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALmodules/java/generator/gen_java.py381 jcleaner = "long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () CODE
CRITICALmodules/java/generator/gen_java.py966 tail = ";\n long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () -> deletCODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsamples/dnn/granite_docling_inference.py0setinput() for a graph input the model may not declare. returns true if it took.STRING
HIGHsamples/dnn/gemma3_inference.py0setinput() for a graph input the model may not declare. returns true if it took.STRING
HIGHsamples/dnn/paddleocr_vl_inference.py0setinput() for a graph input the model may not declare. returns true if it took.STRING
HIGHsamples/dnn/qwen_inference.py0setinput() for a graph input the model may not declare. returns true if it took.STRING
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOW…irect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DBase.cpp35 // Don't forget to declare your application's minimum required feature level in itsCOMMENT
LOW…irect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DBase.cpp35 // Don't forget to declare your application's minimum required feature level in itsCOMMENT
LOW3rdparty/openjpeg/openjp2/t2.c584 /* don't forget to release pi */COMMENT
MEDIUMmodules/core/include/opencv2/core/mat.hpp226Here is how you can use a function that takes InputArray :CODE
LOWmodules/core/include/opencv2/core/hal/intrin_cpp.hpp146don't forget to check the CV_SIMD256 preprocessor definition:CODE
LOWmodules/core/include/opencv2/core/hal/intrin_cpp.hpp163don't forget to check the CV_SIMD512 preprocessor definition.CODE
LOWmodules/core/include/opencv2/core/hal/intrin_cpp.hpp166cv::v_float64x2 is not implemented in NEON variant, if you want to use this type, don't forget toCODE
MEDIUMmodules/imgcodecs/src/rgbe.cpp57// feel free to modify it to suit your needs.COMMENT
LOWmodules/dnn/src/net_impl.hpp151 // if you change DEFAULT_C0/defaultC0, don't forget to updateCOMMENT
Structural Annotation Overuse8 hits · 14 pts
SeverityFileLineSnippetContext
LOW…ulations/MediaExtensions/OcvTransform/OcvTransform.cpp249 // NOTE: This method should succeed even when there is no media type on theCOMMENT
LOW…ulations/MediaExtensions/OcvTransform/OcvTransform.cpp296 // NOTE: This method should succeed even when there is no media type on theCOMMENT
LOW…t/ImageManipulations/MediaExtensions/Common/LinkList.h364 // NOTE: This method invalidates the POSITION object.COMMENT
LOWmodules/core/include/opencv2/core/types.hpp1504 // Step 1: lo + hiCOMMENT
LOWmodules/core/include/opencv2/core/types.hpp1518 // Step 2: sum + midCOMMENT
LOWmodules/core/src/utils/datafile.cpp211 // Step 0: check current directory or absolute path at firstCOMMENT
LOW⚡modules/objdetect/src/aruco/aruco_detector.cpp754 /// Step 0: equation (2) from paper [1]COMMENT
LOW⚡modules/objdetect/src/aruco/aruco_detector.cpp759 /// Step 1: create image pyramid. Section 3.4. in [1]COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…dules/python/src2/typing_stubs_generation/ast_utils.py77Traverses down nodes hierarchy to the direct parent of the node referred by `symbol_name`. Args: root (STRING
HIGH…dules/python/src2/typing_stubs_generation/ast_utils.py344Traverses up nodes hierarchy to find closest enclosing namespace of the passed node Args: node (ASTNodeSTRING
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOWmodules/core/include/opencv2/core/types.hpp1504 // Step 1: lo + hiCOMMENT
LOWmodules/core/include/opencv2/core/types.hpp1518 // Step 2: sum + midCOMMENT
LOWmodules/core/src/utils/datafile.cpp211 // Step 0: check current directory or absolute path at firstCOMMENT
LOW⚡modules/objdetect/src/aruco/aruco_detector.cpp754 /// Step 0: equation (2) from paper [1]COMMENT
LOW⚡modules/objdetect/src/aruco/aruco_detector.cpp759 /// Step 1: create image pyramid. Section 3.4. in [1]COMMENT
TODO Padding6 hits · 9 pts
SeverityFileLineSnippetContext
LOWmodules/imgproc/src/smooth.dispatch.cpp659 // TODO: implement ocl_sepFilter2D_BitExact -- how to deal with bdepth?COMMENT
LOWmodules/features/3rdparty/annoy/mman.h47 //TODO: implementCOMMENT
LOWmodules/dnn/perf/perf_einsum.cpp40 // TODO: Add tests with one input after ellips mergeCOMMENT
LOWmodules/dnn/src/layers/recurrent2_layers.cpp673 // TODO: implementCOMMENT
LOWmodules/dnn/src/layers/region_layer.cpp162 // TODO: implement a logistic activation to classification scores.COMMENT
LOWmodules/videoio/src/cap_msmf.cpp1314 // TODO: implement read by chunksCOMMENT
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdocs_sphinx/conf_helpers/examples.py431__all__ = [CODE
LOWdocs_sphinx/conf_helpers/xml_render.py1410__all__ = [CODE
LOWdocs_sphinx/conf_helpers/state.py1067__all__ = [CODE
LOWsamples/dnn/download_models.py20__all__ = ["downloadFile"]CODE
LOW…dules/core/misc/python/package/mat_wrapper/__init__.py1__all__ = []CODE
LOW…/python/src2/typing_stubs_generation/api_refinement.py1__all__ = [CODE
LOW…dules/python/src2/typing_stubs_generation/ast_utils.py402 def update_full_export_name(class_node: ClassNode) -> None:CODE
LOWmodules/python/package/cv2/__init__.py8__all__ = []CODE