Repository Analysis

opencv/opencv

Open Source Computer Vision Library

2.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of opencv/opencv, a C++ project with 89,892 GitHub stars. SynthScan v2.0 examined 2,505,981 lines of code across 5367 source files, recording 6930 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 2.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
89.9K
Stars
C++
Language
2.5M
Lines of Code
5.4K
Files
6.9K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 25MEDIUM 248LOW 6655

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 6930 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block5784 hits · 5527 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
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.hpp81COMMENT
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/src/transforms_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/transforms_ipp.cpp81// if(src.isSubmatrix()) // already have physical borderCOMMENT
LOWhal/ipp/src/deriv_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/color_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/filter_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/distancetransform_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/warp_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/box_filter_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/matchtemplate_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/ipp/src/threshold_ipp.cpp1// This file is part of OpenCV project.COMMENT
LOWhal/openvx/hal/openvx_hal.hpp81 int width, int height, int depth, int cn, double thresh, double maxValue, int thresholdType);COMMENT
LOWhal/openvx/hal/openvx_hal.hpp101#define cv_hal_absdiff16s ovx_hal_absdiff<short>COMMENT
5724 more matches not shown…
Unused Imports417 hits · 410 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
LOWsamples/python/dft.py12CODE
LOWsamples/python/browse.py16CODE
LOWsamples/python/laplace.py16CODE
LOWsamples/python/laplace.py18CODE
LOWsamples/python/facedetect.py11CODE
LOWsamples/python/facedetect.py13CODE
LOWsamples/python/inpaint.py19CODE
LOWsamples/python/hist.py19CODE
LOWsamples/python/contours.py13CODE
LOWsamples/python/digits_video.py12CODE
LOWsamples/python/digits_video.py23CODE
LOWsamples/python/digits_video.py25CODE
LOWsamples/python/fitline.py26CODE
LOWsamples/python/gaussian_mix.py4CODE
LOWsamples/python/video_v4l2.py18CODE
LOWsamples/python/video_v4l2.py20CODE
LOWsamples/python/edge.py14CODE
LOWsamples/python/texture_flow.py14CODE
LOWsamples/python/letter_recog.py29CODE
LOWsamples/python/dis_opt_flow.py17CODE
LOWsamples/python/opt_flow.py17CODE
LOWsamples/python/houghcircles.py12CODE
LOWsamples/python/gabor_threads.py18CODE
LOWsamples/python/deconvolution.py34CODE
LOWsamples/python/deconvolution.py40CODE
LOWsamples/python/coherence.py13CODE
LOWsamples/python/_coverage.py8CODE
LOWsamples/python/mouse_and_match.py15CODE
LOWsamples/python/mouse_and_match.py22CODE
LOWsamples/python/mouse_and_match.py25CODE
LOWsamples/python/essential_mat_reconstr.py2CODE
LOWsamples/python/essential_mat_reconstr.py2CODE
LOWsamples/python/digits_adjust.py17CODE
LOWsamples/python/digits_adjust.py29CODE
357 more matches not shown…
Decorative Section Separators117 hits · 343 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt186# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt188# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt192# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt194# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt571# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt573# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt578# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt580# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt626# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt628# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt632# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt634# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt637# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt639# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1083# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1085# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1093# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1095# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1104# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1106# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt7# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt172# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt174# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt216# ===================================================COMMENT
MEDIUMCMakeLists.txt488# ===================================================COMMENT
MEDIUMCMakeLists.txt510# ===================================================COMMENT
MEDIUMCMakeLists.txt520# ===================================================COMMENT
MEDIUMCMakeLists.txt705# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt707# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt793# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt795# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt806# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt808# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt831# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt833# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt936# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt938# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1133# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1135# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1222# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt1224# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt2076# ----------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt2078# ----------------------------------------------------------------------------COMMENT
MEDIUMplatforms/js/build_js.py228#===================================================================================================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.py468#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt2#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt6#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt63#===================================================================================================COMMENT
MEDIUMsamples/CMakeLists.txt67#===================================================================================================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…
Hyper-Verbose Identifiers211 hits · 210 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
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
LOW…es/dnn/dnn_model_runner/dnn_conversion/common/utils.py55def 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
LOW…dnn_conversion/tf/classification/py_to_py_mobilenet.py74def get_opencv_dnn_prediction(opencv_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
LOW…les/flann/misc/python/test/test_flann_based_matcher.py12 def test_all_parameters_can_be_passed(self):CODE
LOWmodules/python/test/test_fs_cache_dir.py18 def get_cache_dir_imread_interop(self, ext):CODE
LOWmodules/python/test/test_fs_cache_dir.py31 def test_get_cache_dir_imread_interop_png(self):CODE
LOWmodules/python/test/test_fs_cache_dir.py34 def test_get_cache_dir_imread_interop_jpeg(self):CODE
LOWmodules/python/test/test_fs_cache_dir.py37 def test_get_cache_dir_imread_interop_tiff(self):CODE
LOWmodules/python/test/test_misc.py345 def test_parse_to_bool_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py352 def test_parse_to_bool_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py360 def test_parse_to_bool_not_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py366 def test_parse_to_int_convertible(self):CODE
LOWmodules/python/test/test_misc.py376 def test_parse_to_int_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py385 def test_parse_to_int_not_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py425 def test_parse_to_size_t_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py435 def test_parse_to_size_t_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py444 def test_parse_to_size_t_not_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py450 def test_parse_to_float_convertible(self):CODE
LOWmodules/python/test/test_misc.py478 def test_parse_to_float_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py485 def test_parse_to_float_not_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py493 def test_parse_to_double_convertible(self):CODE
LOWmodules/python/test/test_misc.py515 def test_parse_to_double_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py522 def test_parse_to_double_not_convertible_extra(self):CODE
LOWmodules/python/test/test_misc.py530 def test_parse_to_cstring_convertible(self):CODE
LOWmodules/python/test/test_misc.py538 def test_parse_to_cstring_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py544 def test_parse_to_string_convertible(self):CODE
LOWmodules/python/test/test_misc.py552 def test_parse_to_string_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py558 def test_parse_to_rect_convertible(self):CODE
LOWmodules/python/test/test_misc.py620 def test_parse_to_rotated_rect_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py626 def test_parse_to_term_criteria_convertible(self):CODE
LOWmodules/python/test/test_misc.py636 def test_parse_to_term_criteria_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py642 def test_parse_to_range_convertible_to_all(self):CODE
LOWmodules/python/test/test_misc.py650 def test_parse_to_range_convertible(self):CODE
LOWmodules/python/test/test_misc.py659 def test_parse_to_range_not_convertible(self):CODE
LOWmodules/python/test/test_misc.py665 def test_reserved_keywords_are_transformed(self):CODE
LOWmodules/python/test/test_misc.py823 def test_class_from_submodule_has_global_alias(self):CODE
LOWmodules/python/test/test_misc.py833 def test_inner_class_has_global_alias(self):CODE
LOWmodules/python/test/test_misc.py842 def test_export_class_with_different_name(self):CODE
LOWmodules/python/test/test_misc.py890 def test_named_arguments_without_parameters(self):CODE
LOWmodules/python/test/test_misc.py896 def test_named_arguments_without_output_argument(self):CODE
LOWmodules/python/test/test_misc.py904 def test_named_arguments_with_output_argument(self):CODE
LOWmodules/python/test/test_misc.py914 def test_arithm_op_without_saturation(self):CODE
LOWmodules/python/test/test_misc.py177 def test_overload_resolution_can_choose_correct_overload(self):CODE
LOWmodules/python/test/test_misc.py197 def test_overload_resolution_fails(self):CODE
LOWmodules/python/test/test_misc.py216 def test_properties_with_reserved_keywords_names_are_transformed(self):CODE
LOWmodules/python/test/test_misc.py309 def test_unsupported_numpy_data_types_string_description(self):CODE
LOWmodules/python/test/test_misc.py322 def test_numpy_writeable_flag_is_preserved(self):CODE
LOWmodules/python/test/test_misc.py332 def test_parse_to_bool_convertible(self):CODE
151 more matches not shown…
Excessive Try-Catch Wrapping86 hits · 168 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
MEDIUMsamples/python/aruco_detect_board_charuco.py87 print("Error: unable to open video/image source")CODE
MEDIUMsamples/python/audio_spectrogram.py717 print("Error: ", args.inputType, " input method doesnt exist")CODE
MEDIUMsamples/python/audio_spectrogram.py720 print("Error: ", args.draw, " draw type doesnt exist")CODE
MEDIUMsamples/python/audio_spectrogram.py723 print("Error: ", args.graph, " type of graph doesnt exist")CODE
MEDIUMsamples/python/audio_spectrogram.py726 print("Error: ", args.windowType, " type of window doesnt exist")CODE
MEDIUMsamples/python/audio_spectrogram.py729 print("Error: windLen = ", args.windLen, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py732 print("Error: overlap = ", args.overlap, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py735 print("Error: rows = ", args.rows, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py738 print("Error: cols = ", args.cols, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py741 print("Error: xmarkup = ", args.xmarkup, " - incorrect value. Must be >= 2")CODE
MEDIUMsamples/python/audio_spectrogram.py744 print("Error: ymarkup = ", args.ymarkup, " - incorrect value. Must be >= 2")CODE
MEDIUMsamples/python/audio_spectrogram.py747 print("Error: zmarkup = ", args.zmarkup, " - incorrect value. Must be >= 2")CODE
MEDIUMsamples/python/audio_spectrogram.py750 print("Error: microTime = ", args.microTime, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py753 print("Error: frameSizeTime = ", args.frameSizeTime, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/python/audio_spectrogram.py756 print("Error: updateTime = ", args.updateTime, " - incorrect value. Must be > 0")CODE
MEDIUMsamples/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.py190 print("Error exception: ", e)CODE
LOWsamples/python/tracker.py100 except Exception as e:CODE
LOWsamples/python/demo.py137 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/download_models.py106 except Exception as e:CODE
LOWsamples/dnn/download_models.py166 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
LOW…/dnn_conversion/tf/detection/py_to_py_ssd_mobilenet.py18 except Exception:CODE
LOW…torch_tf_detection/tf_det_model_conversion_tutorial.md70except Exception:CODE
LOW…_segmentation/tf_sem_segm_model_conversion_tutorial.md50 except Exception:CODE
MEDIUMmodules/python/test/test_misc.py150def test_redirectError(self):CODE
MEDIUMmodules/python/test/test_misc.py250def _try_to_convert(self, conversion, value):CODE
LOWmodules/python/test/test_misc.py222 except Exception as e:CODE
LOWmodules/python/test/test_misc.py253 except Exception as e:CODE
LOWmodules/python/src2/typing_stubs_generator.py50 except Exception:CODE
MEDIUMmodules/python/src2/hdr_parser.py638 print("Error at %d. no terminating ) in CVAPI() macro: %s" % (self.lineno, decl_str))CODE
MEDIUMmodules/python/src2/hdr_parser.py643 print("Error at %d: no args in '%s'" % (self.lineno, decl_str))CODE
26 more matches not shown…
Deep Nesting139 hits · 135 pts
SeverityFileLineSnippetContext
LOWplatforms/ios/build_framework.py96CODE
LOWplatforms/ios/build_framework.py456CODE
LOWplatforms/ios/build_framework.py555CODE
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
LOWsamples/gdb/mat_pretty_printer.py60CODE
LOWsamples/python/hist.py56CODE
LOWsamples/python/video_v4l2.py23CODE
LOWsamples/python/aruco_detect_board_charuco.py24CODE
LOWsamples/python/mouse_and_match.py32CODE
LOWsamples/python/feature_homography.py53CODE
LOWsamples/python/lk_track.py47CODE
LOWsamples/python/audio_spectrogram.py40CODE
LOWsamples/python/audio_spectrogram.py534CODE
LOWsamples/python/audio_spectrogram.py624CODE
LOWsamples/python/plane_tracker.py154CODE
LOWsamples/python/plane_ar.py58CODE
LOWsamples/python/qrcode.py71CODE
LOWsamples/python/peopledetect.py33CODE
LOWsamples/python/find_obj.py29CODE
LOWsamples/python/stitching_detailed.py274CODE
LOWsamples/python/squares.py25CODE
LOWsamples/python/tracker.py56CODE
LOWsamples/python/lk_homography.py58CODE
LOWsamples/python/grabcut.py59CODE
LOWsamples/python/grabcut.py101CODE
LOWsamples/python/demo.py56CODE
LOW…l_code/core/mat_mask_operations/mat_mask_operations.py22CODE
LOW…rial_code/imgProc/opening_closing_hats/morphology_2.py16CODE
LOW…ples/python/tutorial_code/imgProc/Pyramids/pyramids.py5CODE
LOW…torial_code/imgProc/erosion_dilatation/morphology_1.py38CODE
LOW…/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py10CODE
LOW…ples/python/tutorial_code/ImgTrans/remap/Remap_Demo.py7CODE
LOWsamples/dnn/download_models.py33CODE
LOWsamples/dnn/download_models.py273CODE
LOWsamples/dnn/virtual_try_on.py144CODE
LOWsamples/dnn/tf_text_graph_ssd.py63CODE
LOWsamples/dnn/tf_text_graph_ssd.py140CODE
LOWsamples/dnn/tf_text_graph_ssd.py162CODE
LOWsamples/dnn/tf_text_graph_faster_rcnn.py6CODE
LOWsamples/dnn/common.py6CODE
LOWsamples/dnn/common.py88CODE
LOWsamples/dnn/tf_text_graph_efficientdet.py36CODE
LOWsamples/dnn/tf_text_graph_common.py1CODE
LOWsamples/dnn/tf_text_graph_common.py38CODE
LOWsamples/dnn/tf_text_graph_common.py286CODE
LOWsamples/dnn/tf_text_graph_common.py313CODE
LOWsamples/dnn/tf_text_graph_common.py178CODE
LOWsamples/dnn/tf_text_graph_common.py204CODE
LOWsamples/dnn/tf_text_graph_common.py207CODE
LOWsamples/dnn/object_detection.py98CODE
LOWsamples/dnn/object_detection.py258CODE
LOWdoc/tools/html_functions.py40CODE
LOWmodules/video/misc/python/test/test_lk_track.py56CODE
LOWmodules/video/misc/python/test/test_lk_homography.py46CODE
LOWmodules/core/src/opencl/runtime/generator/common.py68CODE
79 more matches not shown…
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.py645 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.py1043 code_parse = "if(PyObject_Size(py_args) == 0 && (!kw || PyObject_Size(kw) == 0))"STRING
HIGHmodules/java/generator/gen_java.py771 j_prologue.append( "List<Mat> %(n)s_tmplm = new ArrayList<Mat>((%(n)s != null) ? %(n)s.sCODE
HIGHmodules/java/generator/gen_java.py818 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.py834 j_epilogue.append( "if("+a.name+"!=null){ " + "; ".join(set_vals) + "; } ")CODE
HIGHmodules/ts/misc/table_formatter.py540 vars.push(decodeURIComponent(hash[0]))CODE
HIGHmodules/ts/misc/table_formatter.py563 if (re.exec($(row.get(colIdx)).text()) == null)CODE
HIGHmodules/ts/misc/table_formatter.py564 return falseCODE
HIGHmodules/ts/misc/table_formatter.py572 if (!val || val >= 1 || val > 1+percent)CODE
HIGHmodules/ts/misc/table_formatter.py573 return falseCODE
HIGHmodules/ts/misc/table_formatter.py579 if (!val || val < percent)CODE
HIGHmodules/ts/misc/table_formatter.py580 return falseCODE
HIGHmodules/ts/misc/table_formatter.py588 if (!val || val < percent)CODE
HIGHmodules/ts/misc/table_formatter.py589 return falseCODE
Self-Referential Comments31 hits · 93 pts
SeverityFileLineSnippetContext
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
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/text_detection.py23# Import required modulesCOMMENT
MEDIUMsamples/dnn/text_detection.py155 # Create a new named windowCOMMENT
MEDIUMsamples/dnn/text_detection.py179 # Create a 4D blob from frame.COMMENT
MEDIUMsamples/dnn/text_detection.py210 # Create a 4D blob from cropped imageCOMMENT
MEDIUMsamples/dnn/classification.py84 # Create a 4D blob from a frame.COMMENT
MEDIUMsamples/dnn/tf_text_graph_ssd.py1# This file is a part of OpenCV project.COMMENT
MEDIUMsamples/dnn/tf_text_graph_efficientdet.py1# This file is a part of OpenCV project.COMMENT
MEDIUMsamples/dnn/mask_rcnn.py88 # Create a 4D blob from a frame.COMMENT
MEDIUMsamples/dnn/object_detection.py281 # Create a 4D blob from a frame.COMMENT
MEDIUMsamples/dnn/shrink_tf_graph_weights.py1# This file is part of OpenCV project.COMMENT
MEDIUMsamples/dnn/segmentation.py101 # Create a 4D blob from a frame.COMMENT
MEDIUM…/python/src2/typing_stubs_generation/api_refinement.py417 # Create a union of current type and ScalarCOMMENT
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
AI Slop Vocabulary32 hits · 89 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
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.hpp660 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUMmodules/core/include/opencv2/core/cuda.hpp703 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUMmodules/core/include/opencv2/core/cuda.hpp721 setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPoolCODE
MEDIUMmodules/imgproc/src/hough.cpp2127 // be small and the arc can be big, or vice versa. Weighted area is more robust.COMMENT
MEDIUMmodules/imgproc/src/hough.cpp2129 // It seems to be more robust to compare circle areas (without "pi" scale)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/dnn/misc/python/test/test_dnn.py359 # Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp667 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp723 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_misc.cpp825 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/dnn/test/test_darknet_importer.cpp603 // Run asynchronously. To make test more robust, process inputs in the reversed order.COMMENT
MEDIUMmodules/highgui/src/window_QT.h271//if (obj->metaObject ()->className () == "CvWindow") does not give me robust resultCOMMENT
LOWmodules/ts/misc/xls-report.py121 # 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.hpp71 https://www.learnopencv.com/seamless-cloning-using-opencv-python-cppCODE
MEDIUMmodules/calib3d/include/opencv2/calib3d.hpp550//! type of the robust estimation algorithmCOMMENT
MEDIUMmodules/calib3d/src/ptsetreg.cpp786 // The robust framework ensures consensus on larger sets; a closed-form LS refitCOMMENT
MEDIUMmodules/calib3d/src/ptsetreg.cpp1171 // run robust methodCOMMENT
MEDIUMmodules/calib3d/src/ptsetreg.cpp1257 // run robust estimationCOMMENT
MEDIUMmodules/calib3d/src/ptsetreg.cpp1351 // Create robust estimators with the same semantics as affine functions.COMMENT
MEDIUMmodules/calib3d/src/usac/bundle.cpp167 // Compute weight from robust loss function (used in the IRLS)COMMENT
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/calib3d/src/usac/utils.cpp639 // skip neighbor which has the same index as requested pointCOMMENT
Redundant / Tautological Comments22 hits · 30 pts
SeverityFileLineSnippetContext
LOWsamples/python/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.py193 # Check if library is built with enabled highgui moduleCOMMENT
LOW…/python/src2/typing_stubs_generation/api_refinement.py404 # Check if it's already a union or if it already includes ScalarCOMMENT
LOW…/python/src2/typing_stubs_generation/api_refinement.py406 # 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.py108# Print result to the stdoutCOMMENT
AI Structural Patterns26 hits · 25 pts
SeverityFileLineSnippetContext
LOWsamples/python/dis_opt_flow.py57CODE
LOWsamples/python/opt_flow.py57CODE
LOWsamples/dnn/human_parsing.py76CODE
LOWsamples/dnn/speech_recognition.py68CODE
LOWsamples/dnn/text_detection.py65CODE
LOWsamples/dnn/virtual_try_on.py398CODE
LOWsamples/dnn/optical_flow.py44CODE
LOWsamples/dnn/optical_flow.py69CODE
LOWsamples/dnn/person_reid.py101CODE
LOWsamples/dnn/person_reid.py182CODE
LOW…n_model_runner/dnn_conversion/pytorch/pytorch_model.py82CODE
LOW…les/dnn/dnn_model_runner/dnn_conversion/tf/tf_model.py95CODE
LOWmodules/core/src/opencl/runtime/generator/common.py131CODE
LOWmodules/python/test/test_misc.py121CODE
LOWmodules/java/generator/gen_java.py184CODE
LOWmodules/java/generator/gen_java.py188CODE
LOWmodules/java/generator/gen_java.py192CODE
LOWmodules/java/generator/gen_java.py196CODE
LOWmodules/java/generator/gen_java.py200CODE
LOWmodules/dnn/test/imagenet_cls_test_inception.py42CODE
LOWmodules/dnn/test/cityscapes_semsegm_test_enet.py110CODE
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.py369 jcleaner = "long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () CODE
CRITICALmodules/java/generator/gen_java.py952 tail = ";\n long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () -> deletCODE
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.hpp1529 // Step 1: lo + hiCOMMENT
LOWmodules/core/include/opencv2/core/types.hpp1543 // Step 2: sum + midCOMMENT
LOWmodules/core/src/utils/datafile.cpp211 // Step 0: check current directory or absolute path at firstCOMMENT
LOWmodules/objdetect/src/aruco/aruco_detector.cpp754 /// Step 0: equation (2) from paper [1]COMMENT
LOWmodules/objdetect/src/aruco/aruco_detector.cpp759 /// Step 1: create image pyramid. Section 3.4. in [1]COMMENT
Slop Phrases8 hits · 12 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.hpp103Here 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
TODO Padding8 hits · 12 pts
SeverityFileLineSnippetContext
LOWmodules/imgproc/src/smooth.dispatch.cpp742 // TODO: implement ocl_sepFilter2D_BitExact -- how to deal with bdepth?COMMENT
LOWmodules/gapi/src/backends/fluid/gfluidbackend.cpp1390 //TODO: implement ?COMMENT
LOWmodules/dnn/perf/perf_einsum.cpp40 // TODO: Add tests with one input after ellips mergeCOMMENT
LOWmodules/dnn/src/layers/region_layer.cpp162 // TODO: implement a logistic activation to classification scores.COMMENT
LOWmodules/videoio/src/cap_msmf.cpp1294 // TODO: implement read by chunksCOMMENT
LOWmodules/highgui/src/window_winrt_bridge.cpp243 // TODO: implement when adding buttonsCOMMENT
LOWmodules/highgui/src/window_winrt.cpp222 // TODO: implement appropriate logic hereCOMMENT
LOWmodules/highgui/src/window_winrt.cpp241 // TODO: implement appropriate logic hereCOMMENT
Verbosity Indicators6 hits · 10 pts
SeverityFileLineSnippetContext
LOWmodules/core/include/opencv2/core/types.hpp1529 // Step 1: lo + hiCOMMENT
LOWmodules/core/include/opencv2/core/types.hpp1543 // Step 2: sum + midCOMMENT
LOWmodules/core/src/utils/datafile.cpp211 // Step 0: check current directory or absolute path at firstCOMMENT
LOWmodules/objdetect/src/aruco/aruco_detector.cpp754 /// Step 0: equation (2) from paper [1]COMMENT
LOWmodules/objdetect/src/aruco/aruco_detector.cpp759 /// Step 1: create image pyramid. Section 3.4. in [1]COMMENT
LOWmodules/gapi/src/backends/render/ft_render.cpp83 // We need to check if the glyph goes beyond the last position of the penCOMMENT
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
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWsamples/dnn/download_models.py23__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
LOWmodules/gapi/misc/python/package/gapi/__init__.py1__all__ = ['op', 'kernel']CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…es/gapi/misc/python/test/test_gapi_sample_pipelines.py582CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW3rdparty/openexr/IlmImf/ImfArray.h51// Usage example:COMMENT