AI Slop Code Risk Monitor

opencv/opencv_contrib

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

Repository for OpenCV's extra modules

3.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for opencv/opencv_contrib, a C++ project with 10,222 GitHub stars. SynthScan examined 1,109,085 lines of code across 3081 source files, recording 3114 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 3.0 (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.0
Adjusted Signal
3.0
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
10.2K
Stars
C++
Language
1.1M
Lines of Code
3.1K
Files
3.1K
Pattern Hits
2026-10-31
Scan Date
0.01
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 12.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 1.1/100 · LOW

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

PR Review Velocity Impact 13.9/100 · LOW

Which changes need focused human review? 3114 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 0HIGH 16MEDIUM 65LOW 3033

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 3114 distinct pattern matches across 17 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 Block2776 hits · 2776 pts
SeverityFileLineSnippetContext
LOWmodules/superres/test/test_precomp.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/test/test_precomp.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/test/test_precomp.hpp41//M*/COMMENT
LOWmodules/superres/test/test_main.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/test/test_main.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/test/test_superres.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/test/test_superres.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/include/opencv2/superres.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/include/opencv2/superres.hpp21// this list of conditions and the following disclaimer.COMMENT
LOW…les/superres/include/opencv2/superres/optical_flow.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOW…les/superres/include/opencv2/superres/optical_flow.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/perf/perf_precomp.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/perf/perf_precomp.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/perf/perf_precomp.hpp41//M*/COMMENT
LOWmodules/superres/perf/perf_superres.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/perf/perf_superres.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/perf/perf_main.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/perf/perf_main.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/precomp.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/precomp.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/precomp.hpp41//M*/COMMENT
LOWmodules/superres/src/precomp.hpp61#include "opencv2/core/private.cuda.hpp"COMMENT
LOWmodules/superres/src/precomp.hpp81# include "opencv2/cudaoptflow.hpp"COMMENT
LOWmodules/superres/src/optical_flow.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/optical_flow.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/input_array_utility.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/input_array_utility.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/btv_l1_cuda.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/btv_l1_cuda.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/btv_l1.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/btv_l1.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/input_array_utility.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/input_array_utility.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/frame_source.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/frame_source.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/super_resolution.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/super_resolution.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/superres/src/ring_buffer.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/superres/src/ring_buffer.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/rapid/test/test_precomp.hpp1// This file is part of OpenCV project.COMMENT
LOWmodules/cudalegacy/test/TestHypothesesFilter.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/TestHypothesesFilter.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/TestHaarCascadeApplication.h1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/TestHaarCascadeApplication.h21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/test_labeling.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/test_labeling.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/TestHaarCascadeLoader.h1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/TestHaarCascadeLoader.h21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/main_nvidia.cpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/main_nvidia.cpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/NCVTest.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/NCVTest.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/NCVTest.hpp41//M*/COMMENT
LOWmodules/cudalegacy/test/test_precomp.hpp1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/test_precomp.hpp21// this list of conditions and the following disclaimer.COMMENT
LOWmodules/cudalegacy/test/test_precomp.hpp41//M*/COMMENT
LOWmodules/cudalegacy/test/test_precomp.hpp61COMMENT
LOWmodules/cudalegacy/test/test_precomp.hpp81#include "TestTranspose.h"COMMENT
LOWmodules/cudalegacy/test/TestResize.h1/*M///////////////////////////////////////////////////////////////////////////////////////COMMENT
LOWmodules/cudalegacy/test/TestResize.h21// this list of conditions and the following disclaimer.COMMENT
2716 more matches not shown…
Unused Imports126 hits · 126 pts
SeverityFileLineSnippetContext
LOW…ctured_light/misc/python/test/test_structured_light.py4CODE
LOW…ctured_light/misc/python/test/test_structured_light.py6CODE
LOW…dules/cudafilters/misc/python/test/test_cudafilters.py2CODE
LOW…dules/cudafilters/misc/python/test/test_cudafilters.py6CODE
LOWmodules/xphoto/samples/color_balance_benchmark.py2CODE
LOWmodules/xphoto/samples/color_balance_benchmark.py5CODE
LOWmodules/xphoto/samples/learn_color_balance.py2CODE
LOWmodules/shape/misc/python/test/test_shape.py4CODE
LOW…s/cudaobjdetect/misc/python/test/test_cudaobjdetect.py4CODE
LOWmodules/cudabgsegm/misc/python/test/test_cudabgsegm.py2CODE
LOWmodules/cudabgsegm/misc/python/test/test_cudabgsegm.py6CODE
LOWmodules/face/samples/etc/crop_face.py34CODE
LOW…dules/cudaimgproc/misc/python/test/test_cudaimgproc.py2CODE
LOW…dules/cudaimgproc/misc/python/test/test_cudaimgproc.py6CODE
LOW…/xfeatures2d/misc/python/test/test_cuda_xfeatures2d.py4CODE
LOW…features2d/misc/python/test/test_sift_compatibility.py4CODE
LOW…features2d/misc/python/test/test_sift_compatibility.py6CODE
LOW…dules/xfeatures2d/misc/python/test/test_descriptors.py4CODE
LOW…dules/xfeatures2d/misc/python/test/test_descriptors.py6CODE
LOW…dules/cudawarping/misc/python/test/test_cudawarping.py2CODE
LOW…dules/cudawarping/misc/python/test/test_cudawarping.py6CODE
LOWmodules/cudastereo/misc/python/test/test_cudastereo.py2CODE
LOWmodules/cudastereo/misc/python/test/test_cudastereo.py6CODE
LOW…orm/misc/python/test/test_intensity_transform_bimef.py4CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_onnx.py3CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py3CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py5CODE
LOWmodules/gapi/misc/python/test/test_gapi_ot.py3CODE
LOWmodules/gapi/misc/python/test/test_gapi_kernels.py3CODE
LOWmodules/gapi/misc/python/test/test_gapi_kernels.py5CODE
LOWmodules/gapi/misc/python/test/test_gapi_types.py3CODE
LOWmodules/gapi/misc/python/test/test_gapi_types.py5CODE
LOWmodules/optflow/samples/optical_flow_benchmark.py2CODE
LOWmodules/optflow/samples/optical_flow_benchmark.py3CODE
LOWmodules/optflow/src/learn_prior.py4CODE
LOW…cudaoptflow/misc/python/test/test_nvidiaopticalflow.py3CODE
LOWmodules/ximgproc/samples/edge_drawing.py29CODE
LOWmodules/ximgproc/samples/find_ellipses.py12CODE
LOWmodules/ximgproc/samples/find_ellipses.py14CODE
LOWmodules/xstereo/samples/sample_quasi_dense.py1CODE
LOWmodules/viz/samples/viz_sample_01.py1CODE
LOWmodules/ml/misc/python/test/test_digits.py26CODE
LOWmodules/ml/misc/python/test/test_digits.py29CODE
LOWmodules/ml/misc/python/test/test_ml.py2CODE
LOWmodules/ml/misc/python/test/test_ml.py4CODE
LOWmodules/ml/misc/python/test/test_goodfeatures.py4CODE
LOWmodules/ml/misc/python/test/test_goodfeatures.py7CODE
LOWmodules/ml/misc/python/test/test_letter_recog.py24CODE
LOWmodules/ml/misc/python/test/test_gaussian_mix.py4CODE
LOWmodules/ml/samples/python/digits_video.py12CODE
LOWmodules/ml/samples/python/digits_video.py23CODE
LOWmodules/ml/samples/python/digits_video.py25CODE
LOWmodules/ml/samples/python/letter_recog.py29CODE
LOWmodules/ml/samples/python/digits_adjust.py21CODE
LOWmodules/ml/samples/python/digits.py28CODE
LOWmodules/ml/samples/python/digits.py34CODE
LOWmodules/ml/samples/python/digits.py39CODE
LOWmodules/ml/samples/python/tst_scene_render.py5CODE
LOWmodules/ml/samples/python/tst_scene_render.py10CODE
LOWmodules/ml/samples/python/video.py33CODE
66 more matches not shown…
AI Slop Vocabulary26 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMmodules/superres/src/btv_l1_cuda.cpp43// S. Farsiu , D. Robinson, M. Elad, P. Milanfar. Fast and robust multiframe super resolution.COMMENT
MEDIUMmodules/superres/src/btv_l1.cpp43// S. Farsiu , D. Robinson, M. Elad, P. Milanfar. Fast and robust multiframe super resolution.COMMENT
MEDIUMmodules/surface_matching/src/icp.cpp316 // use robust weighting for outlier treatmentCOMMENT
MEDIUM…/zxing/common/binarizer/global_histogram_binarizer.cpp270 // This proved to be more robust on the blackbox tests than sampling aCOMMENT
MEDIUMmodules/face/samples/facerec_video.cpp124 // in your scenario, LBPH should always be a contender for robust face recognition.COMMENT
MEDIUMmodules/xfeatures2d/src/surf.hpp11//! Speeded up robust features, port from CUDA module.COMMENT
MEDIUMmodules/sfm/test/test_robust.cpp37#include "opencv2/sfm/robust.hpp"COMMENT
MEDIUMmodules/sfm/include/opencv2/sfm/robust.hpp48//! @addtogroup robustCOMMENT
MEDIUMmodules/sfm/src/robust.cpp43#include <opencv2/sfm/robust.hpp>COMMENT
MEDIUM…m/src/libmv_light/libmv/multiview/fundamental_kernel.h101// a robust estimation context) and most robust of the above kernels.COMMENT
MEDIUM…fm/src/libmv_light/libmv/multiview/robust_estimation.h101 // In this robust estimator, the scorer always works on all the data pointsCOMMENT
MEDIUM⚡…/sfm/src/libmv_light/libmv/multiview/two_view_kernel.h79// between two views) that shows the "kernel" part of a robust fittingCOMMENT
MEDIUM⚡…/sfm/src/libmv_light/libmv/multiview/two_view_kernel.h88// All the robust fitting algorithm sees is that there is some number ofCOMMENT
MEDIUM⚡…/sfm/src/libmv_light/libmv/multiview/two_view_kernel.h92// The Kernel objects must follow the following concept so that the robustCOMMENT
MEDIUM…libmv_light/libmv/correspondence/nRobustViewMatching.h45 // Add also a Template function to make the match robust..COMMENT
MEDIUMmodules/gapi/test/streaming/gapi_streaming_tests.cpp1332 // Runs 100 times with no deadlock - assumed stable (robust) enoughCOMMENT
MEDIUMmodules/gapi/test/streaming/gapi_streaming_tests.cpp1345 // Runs 100 times with no deadlock - assumed stable (robust) enoughCOMMENT
MEDIUM…ules/gapi/test/streaming/gapi_streaming_utils_test.cpp332 // utilize main thread as wellCOMMENT
MEDIUMmodules/gapi/include/opencv2/gapi/gproto.hpp109 // FIXME: Someday utilize a generic tuple_to_vec<> routineCOMMENT
MEDIUMmodules/gapi/src/backends/oak/goakbackend.cpp946// Is there a way to extract API from somewhereelse/utilize structsCOMMENT
MEDIUM…reaming/onevpl/demux/async_mfp_demux_data_provider.cpp730 // utilize consumed bitstream portion allocated at prev stepCOMMENT
MEDIUMmodules/gapi/src/compiler/gcompiler.cpp530 // FIXME: This may be hazardous if our backend are not very robustCOMMENT
MEDIUMmodules/gapi/src/compiler/passes/kernels.cpp238 // FIXME: Essentially the same problem as in the above resolveKernelsCOMMENT
MEDIUMmodules/optflow/src/rlof/rlof_localflow.cpp529 // for robust modelsCOMMENT
MEDIUMmodules/optflow/src/rlof/rlof_localflow.cpp617 // use none robust tracker for global motion estimation since it is fasterCOMMENT
MEDIUMmodules/xstereo/src/descriptor.hpp56 //!Mean Variation is a robust kernel that compares a pixelCOMMENT
Hyper-Verbose Identifiers84 hits · 82 pts
SeverityFileLineSnippetContext
LOWmodules/xphoto/samples/learn_color_balance.py23def learn_regression_tree_ensemble(img_features, gt_illuminants, num_trees, max_tree_depth):CODE
LOW…dules/cudawarping/misc/python/test/test_cudawarping.py8def create_affine_transform_matrix(size,angle):CODE
LOW…dules/cudawarping/misc/python/test/test_cudawarping.py10def create_perspective_transform_matrix(size,angle):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer.py70 def test_age_gender_infer_roi(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer.py109 def test_age_gender_infer_roi_list(self):CODE
LOW…es/gapi/misc/python/test/test_gapi_sample_pipelines.py241 def test_different_output_opaque_kinds(self):CODE
LOW…es/gapi/misc/python/test/test_gapi_sample_pipelines.py506 def test_opaq_with_custom_type(self):CODE
LOW…es/gapi/misc/python/test/test_gapi_sample_pipelines.py542 def test_array_with_custom_type(self):CODE
LOW…es/gapi/misc/python/test/test_gapi_sample_pipelines.py654 def test_pipeline_with_custom_kernels(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_render.py125 def render_primitives_bgr_ref(self, img):CODE
LOWmodules/gapi/misc/python/test/test_gapi_render.py145 def test_render_primitives_on_bgr_graph(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_render.py163 def test_render_primitives_on_bgr_function(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_ov.py26 def skip_if_openvino_not_available():CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_ov.py85 def test_age_gender_infer_image(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_ov.py118 def test_age_gender_infer_tensor(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_ov.py147 def test_age_gender_infer_batch(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_infer_ov.py189 def test_age_gender_infer_planar(self):CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py65 def test_stateful_kernel_single_instance(self):CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py79 def test_stateful_kernel_multiple_instances(self):CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py97 def test_stateful_throw_setup(self):CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py143 def test_stateful_multiple_inputs(self):CODE
LOW…les/gapi/misc/python/test/test_gapi_stateful_kernel.py174 def test_stateful_multiple_inputs_throw(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_streaming.py183 def test_video_good_features_to_track(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py318 def test_compile_streaming_empty(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py324 def test_compile_streaming_args(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py330 def test_compile_streaming_descr_of(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py337 def test_compile_streaming_descr_of_and_args(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py345 def test_compile_streaming_meta(self):CODE
LOW⚡modules/gapi/misc/python/test/test_gapi_streaming.py352 def test_compile_streaming_meta_and_args(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_streaming.py458 def test_gst_multiple_sources(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_streaming.py491 def test_gst_multiple_sources_accuracy(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_streaming.py542 def test_python_custom_stream_source(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_kernels.py23 def test_fluid_imgproc_package(self):CODE
LOWmodules/gapi/misc/python/test/test_gapi_imgproc.py28 def test_good_features_to_track(self):CODE
LOW⚡…/pipeline_modeling_tool/test_pipeline_modeling_tool.py16def test_error_no_config_specified():CODE
LOW⚡…/pipeline_modeling_tool/test_pipeline_modeling_tool.py21def test_error_no_config_exists():CODE
LOW⚡…/pipeline_modeling_tool/test_pipeline_modeling_tool.py29def test_error_work_time_not_positive():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py47def test_error_pipelines_node_not_map():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py57def test_error_config_not_contain_pl():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py80def test_error_source_no_name():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py92def test_error_source_no_latency():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py105def test_error_source_no_output():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py119def test_error_source_output_no_dims():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py134def test_error_source_output_no_precision():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py167def test_error_nodes_not_sequence():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py223def test_error_node_unknown_type():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py243def test_error_node_dummy_no_time():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py263def test_error_node_dummy_not_positive_time():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py284def test_error_node_dummy_no_output():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py305def test_error_node_infer_no_model_path():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py332def test_error_node_infer_no_input_layers():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py355def test_error_node_infer_input_layers_are_empty():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py380def test_error_node_infer_no_output_layers():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py405def test_error_node_infer_output_layers_are_empty():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py456def test_error_edges_not_sequence():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py536def test_error_edges_from_not_exists():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py564def test_error_edges_from_port_not_exists():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py592def test_error_edges_to_not_exists():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py620def test_error_edges_to_port_not_exists():CODE
LOW…/pipeline_modeling_tool/test_pipeline_modeling_tool.py648def test_error_connect_to_source():CODE
24 more matches not shown…
Cross-File Repetition12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHsamples/python2/common.py0this module contains some common routines used by other samples.STRING
HIGHmodules/ml/samples/python/common.py0this module contains some common routines used by other samples.STRING
HIGHmodules/xobjdetect/samples/python/common.py0this module contains some common routines used by other samples.STRING
HIGHsamples/python2/common.py0make a grid from images. w -- number of grid columns imgs -- images (must have same size and format)STRING
HIGHmodules/ml/samples/python/common.py0make a grid from images. w -- number of grid columns imgs -- images (must have same size and format)STRING
HIGHmodules/xobjdetect/samples/python/common.py0make a grid from images. w -- number of grid columns imgs -- images (must have same size and format)STRING
HIGHsamples/python2/video.py0video capture sample. sample shows how videocapture class can be used to acquire video frames from a camera of a movie fSTRING
HIGHmodules/ml/samples/python/video.py0video capture sample. sample shows how videocapture class can be used to acquire video frames from a camera of a movie fSTRING
HIGHmodules/xobjdetect/samples/python/video.py0video capture sample. sample shows how videocapture class can be used to acquire video frames from a camera of a movie fSTRING
HIGHsamples/python2/video.py0source: <int> or '<int>|<filename>|synth [:<param_name>=<value> [:...]]'STRING
HIGHmodules/ml/samples/python/video.py0source: <int> or '<int>|<filename>|synth [:<param_name>=<value> [:...]]'STRING
HIGHmodules/xobjdetect/samples/python/video.py0source: <int> or '<int>|<filename>|synth [:<param_name>=<value> [:...]]'STRING
Excessive Try-Catch Wrapping20 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMmodules/xphoto/samples/color_balance_benchmark.py115 print("Error: unsupported statistic " + stat)CODE
MEDIUMmodules/xphoto/samples/color_balance_benchmark.py220 print("Error: " + args.input_folder + (" does not exist. Please, correctly "CODE
MEDIUMmodules/xphoto/samples/color_balance_benchmark.py225 print("Error: " + args.ground_truth + (" does not exist. Please, correctly "CODE
MEDIUMmodules/xphoto/samples/color_balance_benchmark.py236 print("Error: Please specify the -r parameter in form <first_image_index>,<last_image_index>")CODE
MEDIUMmodules/xphoto/samples/learn_color_balance.py148 print("Error: unknown ground-truth format, only formats of Gehler-Shi and NUS 8-camera datasets are supported")CODE
MEDIUM⚡modules/xphoto/samples/learn_color_balance.py215 print("Error: " + args.input_folder + (" does not exist. Please, correctly "CODE
MEDIUM⚡modules/xphoto/samples/learn_color_balance.py220 print("Error: " + args.ground_truth + (" does not exist. Please, correctly "CODE
MEDIUM⚡modules/xphoto/samples/learn_color_balance.py226 print("Error: Please specify the -r parameter in form <first_image_index>,<last_image_index>")CODE
MEDIUM⚡modules/xphoto/samples/learn_color_balance.py235 print("Error: Only .hpp and .yml are supported as output formats")CODE
LOWmodules/gapi/misc/python/test/test_gapi_streaming.py399 except Exception as e:CODE
MEDIUMmodules/gapi/misc/python/test/test_gapi_streaming.py396def open_VideoCapture_gstreamer(self, gstpipeline):CODE
MEDIUMmodules/optflow/samples/optical_flow_benchmark.py220 print("Error: " + args.bin_path + " does not exist")CODE
MEDIUMmodules/optflow/samples/optical_flow_benchmark.py224 print("Error: " + args.dataset_folder + (" does not exist. Please, correctly "CODE
MEDIUMmodules/optflow/samples/optical_flow_benchmark.py236 print("Error: unsupported dataset " + dataset)CODE
MEDIUMmodules/optflow/samples/optical_flow_benchmark.py239 print("Error: " + os.path.join(args.dataset_folder, dataset) + (" does not exist. "CODE
MEDIUMmodules/ximgproc/samples/edge_drawing.py103 print("Error loading image")CODE
LOWmodules/matlab/generator/parse_tree.py115 except Exception as e:CODE
LOWmodules/dnn_objdetect/scripts/pascal_preprocess.py7 except Exception as E:CODE
MEDIUMmodules/dnn_objdetect/scripts/pascal_preprocess.py4def rescale(root_new, root_old, img_path, ann_path, out_shape):CODE
LOWmodules/dnn_objdetect/scripts/k_means.py97 except Exception as E:CODE
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM…les/dnn_superres/misc/python/test/test_dnn_superres.py17 # Create an SR objectCOMMENT
MEDIUM…pi/include/opencv2/gapi/pysrc/python_stream_source.hpp41 * # Create a G-API source from a Python classCOMMENT
MEDIUM…pi/include/opencv2/gapi/pysrc/python_stream_source.hpp44 * # Define a simple graph: input → copy → outputCOMMENT
MEDIUMmodules/ximgproc/samples/radon_transform_demo.py1# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/gen/parse_tree.py3# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/gen/gen_all.py3# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/gen/gen3_julia_cxx.py3# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/gen/gen3_cpp.py3# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/gen/gen3_julia.py3# This file is part of OpenCV project.COMMENT
MEDIUMmodules/julia/package/OpenCV/Manifest.toml1# This file is machine-generated - editing it directly is not advisedCOMMENT
MEDIUMmodules/cannops/misc/python/test/test_cannops.py1# This file is part of OpenCV project.COMMENT
MEDIUMmodules/cannops/samples/image_processing.py1# This file is part of OpenCV project.COMMENT
Decorative Section Separators10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMmodules/matlab/CMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡modules/matlab/CMakeLists.txt24# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡modules/matlab/CMakeLists.txt26# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡modules/matlab/CMakeLists.txt28# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt103# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt105# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt222# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt224# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt309# ----------------------------------------------------------------------------COMMENT
MEDIUMmodules/matlab/CMakeLists.txt311# ----------------------------------------------------------------------------COMMENT
Deep Nesting24 hits · 24 pts
SeverityFileLineSnippetContext
LOWmodules/xphoto/samples/color_balance_benchmark.py43CODE
LOWmodules/cudacodec/misc/python/test/test_cudacodec.py16CODE
LOWmodules/gapi/misc/python/package/gapi/__init__.py184CODE
LOWmodules/gapi/misc/python/package/gapi/__init__.py245CODE
LOWmodules/gapi/misc/python/package/gapi/__init__.py257CODE
LOWmodules/optflow/samples/optical_flow_benchmark.py31CODE
LOWmodules/optflow/samples/optical_flow_benchmark.py124CODE
LOWmodules/ximgproc/samples/fourier_descriptors_demo.py33CODE
LOWmodules/matlab/generator/parse_tree.py371CODE
LOWmodules/matlab/generator/parse_tree.py106CODE
LOWmodules/julia/gen/parse_tree.py317CODE
LOWmodules/julia/gen/parse_tree.py432CODE
LOWmodules/julia/gen/parse_tree.py132CODE
LOWmodules/julia/gen/parse_tree.py177CODE
LOWmodules/julia/gen/parse_tree.py267CODE
LOWmodules/julia/gen/gen3_julia_cxx.py170CODE
LOWmodules/julia/gen/gen3_cpp.py229CODE
LOWmodules/julia/gen/gen3_cpp.py143CODE
LOWmodules/julia/gen/gen3_cpp.py178CODE
LOWmodules/julia/gen/gen3_cpp.py206CODE
LOWmodules/julia/gen/gen3_julia.py39CODE
LOW…dules/xobjdetect/misc/python/test/test_peopledetect.py22CODE
LOWmodules/xobjdetect/misc/python/test/test_facedetect.py25CODE
LOWmodules/xobjdetect/samples/python/peopledetect.py33CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHmodules/ml/samples/python/video.py179except ValueError: passCODE
HIGHmodules/ml/samples/python/video.py186except: passCODE
HIGHmodules/xobjdetect/samples/python/video.py179except ValueError: passCODE
HIGHmodules/xobjdetect/samples/python/video.py186except: passCODE
TODO Padding8 hits · 12 pts
SeverityFileLineSnippetContext
LOWmodules/sfm/test/test_conditioning.cpp60 //TODO: implement meCOMMENT
LOWmodules/sfm/src/reconstruct.cpp156 // TODO: implement meCOMMENT
LOWmodules/sfm/src/reconstruct.cpp185 // TODO: implement meCOMMENT
LOWmodules/sfm/src/reconstruct.cpp229 // TODO: implement meCOMMENT
LOWmodules/sfm/src/reconstruct.cpp255 // TODO: implement meCOMMENT
LOWmodules/gapi/src/backends/fluid/gfluidbackend.cpp1390 //TODO: implement ?COMMENT
LOWmodules/matlab/generator/parse_tree.py164 #TODO: implement operators: http://www.mathworks.com.au/help/matlab/matlab_oop/implementing-operators-for-your-cCOMMENT
LOWmodules/bioinspired/src/retina_ocl.cpp1170 // TODO: implement me!COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWmodules/xphoto/samples/color_balance_benchmark.py14CODE
LOWmodules/optflow/samples/optical_flow_benchmark.py14CODE
LOWmodules/ml/samples/python/common.py199CODE
LOWmodules/matlab/generator/parse_tree.py281CODE
LOWmodules/xobjdetect/samples/python/common.py199CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmodules/surface_matching/src/icp.cpp356 // Step 2: Picky ICPCOMMENT
LOWmodules/gapi/src/backends/render/ft_render.cpp83 // We need to check if the glyph goes beyond the last position of the penCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…es/gapi/misc/python/test/test_gapi_sample_pipelines.py582CODE
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWmodules/ximgproc/samples/edge_drawing.py76 if lines is not None: # Check if the lines have been found and only then iterate over these and add them to the imaCODE
LOWmodules/ximgproc/samples/edge_drawing.py84 if ellipses is not None: # Check if circles and ellipses have been found and only then iterate over these and add tCODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmodules/surface_matching/src/icp.cpp356 // Step 2: Picky ICPCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmodules/gapi/misc/python/package/gapi/__init__.py1__all__ = ['op', 'kernel']CODE