Open Source Computer Vision Library
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ndroid/aar-template/OpenCV/src/main/cpp/native-lib.cpp | 1 | // This empty .cpp file is used for creating an AAR with empty C++ lib that will be replaced with OpenCV C++ lib | COMMENT |
| LOW | …ndroid/aar-template/OpenCV/src/main/cpp/include/temp.h | 1 | // This empty .h file is used for creating an AAR with empty C++ lib that will be replaced with OpenCV C++ lib | COMMENT |
| LOW | …forms/semihosting/include/aarch64_semihosting_port.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | cmake/checks/opencl.cpp | 1 | // custom OpenCL headers are located in "CL" subfolder (3rdparty/include/...) | COMMENT |
| LOW | cmake/checks/cpu_vsx.cpp | 1 | #if defined(__VSX__) | COMMENT |
| LOW | cmake/checks/webnn.cpp | 1 | #include <webnn/webnn_cpp.h> | COMMENT |
| LOW | cmake/checks/cpu_popcnt.cpp | 1 | #ifdef _MSC_VER | COMMENT |
| LOW | cmake/checks/cpu_neon.cpp | 1 | #include <stdio.h> | COMMENT |
| LOW | hal/armpl/include/armpl_hal_core.hpp | 81 | COMMENT | |
| LOW | hal/carotene/hal/tegra_hal.hpp | 41 | #define _tegra_hal_H_INCLUDED_ | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 61 | ST * src2_data_, size_t src2_step_, | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 161 | : CV_HAL_ERROR_NOT_IMPLEMENTED \ | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 181 | #define cv_hal_sub8s(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::s8, sub, src1, sz1, src2, sz2, dst | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 201 | #define cv_hal_max32s(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::s32, max, src1, sz1, src2, sz2, d | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 221 | #define cv_hal_absdiff8u(src1, sz1, src2, sz2, dst, sz, w, h) TEGRA_BINARYOP(CAROTENE_NS::u8, absDiff, src1, sz1, src2, | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 281 | ((op) == cv::CMP_LE) ? \ | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 341 | COMMENT | |
| LOW | hal/carotene/hal/tegra_hal.hpp | 361 | #define cv_hal_div8u(src1, sz1, src2, sz2, dst, sz, w, h, scales) TEGRA_BINARYOPSCALE(CAROTENE_NS::u8, div, src1, sz1, s | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 381 | #define cv_hal_recip16s(src1, sz1, dst, sz, w, h, scales) TEGRA_UNARYOPSCALE(CAROTENE_NS::s16, recip, src1, sz1, dst, sz | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 521 | #define TEGRA_NOT(src1, sz1, dst, sz, w, h) \ | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 541 | #undef cv_hal_add32f | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 561 | #undef cv_hal_max8s | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 581 | #undef cv_hal_min32s | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 741 | #undef cv_hal_mul8u | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 761 | #undef cv_hal_div16s | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 801 | #define cv_hal_addWeighted16u TEGRA_ADDWEIGHTED | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 821 | const ST * src2_data; | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 841 | , dst2_data(dst2_data_) | COMMENT |
| LOW | hal/carotene/hal/tegra_hal.hpp | 1841 | #define cv_hal_cvtBGRtoBGR5x5 TEGRA_CVTBGRTOBGR565 | COMMENT |
| LOW | hal/carotene/hal/dummy.cpp | 1 | // This file is needed for compilation on some platforms e.g. with XCode generator | COMMENT |
| LOW | hal/carotene/include/carotene/definitions.hpp | 41 | #define CAROTENE_DEFINITIONS_HPP | COMMENT |
| LOW | hal/carotene/src/resize.cpp | 1281 | COMMENT | |
| LOW | hal/carotene/src/channels_combine.cpp | 61 | #define VLD1Q_LINE(type, n) v_dst.val[n] = vld1q_##type(src##n + sj); | COMMENT |
| LOW | hal/carotene/src/colorconvert.cpp | 1541 | dst[dj + 2] = internal::saturate_cast<u8>(Cb); | COMMENT |
| LOW | hal/carotene/src/colorconvert.cpp | 2441 | const u8 * yBase, ptrdiff_t yStride, | COMMENT |
| LOW | hal/carotene/src/colorconvert.cpp | 2461 | COMMENT | |
| LOW | hal/carotene/src/dummy.cpp | 1 | // This file is needed for compilation on some platforms e.g. with XCode generator | COMMENT |
| LOW | hal/carotene/src/common.hpp | 41 | #define CAROTENE_SRC_COMMON_HPP | COMMENT |
| LOW | hal/ndsrvp/ndsrvp_hal.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ndsrvp/include/features2d.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ndsrvp/include/core.hpp | 201 | }; | COMMENT |
| LOW | hal/ndsrvp/src/cvutils.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/include/ipp_hal_core.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/include/ipp_hal_core.hpp | 21 | double* _minVal, double* _maxVal, int* _minIdx, int* _maxIdx, uchar* mask, size_t mask_ste | COMMENT |
| LOW | hal/ipp/include/ipp_hal_core.hpp | 101 | #define cv_hal_log32f ipp_hal_log32f | COMMENT |
| LOW | hal/ipp/include/ipp_utils.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/include/ipp_utils.hpp | 21 | #endif | COMMENT |
| LOW | hal/ipp/include/ipp_hal_imgproc.hpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/transforms_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/transforms_ipp.cpp | 81 | // if(src.isSubmatrix()) // already have physical border | COMMENT |
| LOW | hal/ipp/src/deriv_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/color_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/filter_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/distancetransform_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/warp_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/box_filter_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/matchtemplate_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/ipp/src/threshold_ipp.cpp | 1 | // This file is part of OpenCV project. | COMMENT |
| LOW | hal/openvx/hal/openvx_hal.hpp | 81 | int width, int height, int depth, int cn, double thresh, double maxValue, int thresholdType); | COMMENT |
| LOW | hal/openvx/hal/openvx_hal.hpp | 101 | #define cv_hal_absdiff16s ovx_hal_absdiff<short> | COMMENT |
| 5724 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | platforms/apple/cv_build_utils.py | 6 | CODE | |
| LOW | platforms/apple/cv_build_utils.py | 8 | CODE | |
| LOW | platforms/osx/run_tests.py | 6 | CODE | |
| LOW | platforms/osx/run_tests.py | 7 | CODE | |
| LOW | platforms/osx/run_tests.py | 7 | CODE | |
| LOW | platforms/osx/build_framework.py | 6 | CODE | |
| LOW | platforms/osx/build_framework.py | 7 | CODE | |
| LOW | platforms/js/build_js.py | 3 | CODE | |
| LOW | platforms/ios/build_visionos_framework.py | 6 | CODE | |
| LOW | platforms/ios/build_visionos_framework.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 6 | CODE | |
| LOW | platforms/ios/run_tests.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 7 | CODE | |
| LOW | platforms/ios/run_tests.py | 8 | CODE | |
| LOW | platforms/ios/run_tests.py | 8 | CODE | |
| LOW | platforms/ios/build_framework.py | 34 | CODE | |
| LOW | platforms/ios/build_framework.py | 34 | CODE | |
| LOW | platforms/ios/build_framework.py | 36 | CODE | |
| LOW | platforms/android/build_sdk.py | 12 | CODE | |
| LOW | platforms/android/build-tests/test_cmake_build.py | 4 | CODE | |
| LOW | platforms/winpack_dldt/build_package.py | 5 | CODE | |
| LOW | platforms/winpack_dldt/build_package.py | 6 | CODE | |
| LOW | platforms/winpack_dldt/build_package.py | 9 | CODE | |
| LOW | samples/python/dft.py | 12 | CODE | |
| LOW | samples/python/browse.py | 16 | CODE | |
| LOW | samples/python/laplace.py | 16 | CODE | |
| LOW | samples/python/laplace.py | 18 | CODE | |
| LOW | samples/python/facedetect.py | 11 | CODE | |
| LOW | samples/python/facedetect.py | 13 | CODE | |
| LOW | samples/python/inpaint.py | 19 | CODE | |
| LOW | samples/python/hist.py | 19 | CODE | |
| LOW | samples/python/contours.py | 13 | CODE | |
| LOW | samples/python/digits_video.py | 12 | CODE | |
| LOW | samples/python/digits_video.py | 23 | CODE | |
| LOW | samples/python/digits_video.py | 25 | CODE | |
| LOW | samples/python/fitline.py | 26 | CODE | |
| LOW | samples/python/gaussian_mix.py | 4 | CODE | |
| LOW | samples/python/video_v4l2.py | 18 | CODE | |
| LOW | samples/python/video_v4l2.py | 20 | CODE | |
| LOW | samples/python/edge.py | 14 | CODE | |
| LOW | samples/python/texture_flow.py | 14 | CODE | |
| LOW | samples/python/letter_recog.py | 29 | CODE | |
| LOW | samples/python/dis_opt_flow.py | 17 | CODE | |
| LOW | samples/python/opt_flow.py | 17 | CODE | |
| LOW | samples/python/houghcircles.py | 12 | CODE | |
| LOW | samples/python/gabor_threads.py | 18 | CODE | |
| LOW | samples/python/deconvolution.py | 34 | CODE | |
| LOW | samples/python/deconvolution.py | 40 | CODE | |
| LOW | samples/python/coherence.py | 13 | CODE | |
| LOW | samples/python/_coverage.py | 8 | CODE | |
| LOW | samples/python/mouse_and_match.py | 15 | CODE | |
| LOW | samples/python/mouse_and_match.py | 22 | CODE | |
| LOW | samples/python/mouse_and_match.py | 25 | CODE | |
| LOW | samples/python/essential_mat_reconstr.py | 2 | CODE | |
| LOW | samples/python/essential_mat_reconstr.py | 2 | CODE | |
| LOW | samples/python/digits_adjust.py | 17 | CODE | |
| LOW | samples/python/digits_adjust.py | 29 | CODE | |
| 357 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | CMakeLists.txt | 186 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 188 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 192 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 194 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 571 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 573 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 578 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 580 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 626 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 628 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 632 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 634 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 637 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 639 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1083 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1085 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1093 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1095 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1104 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | CMakeLists.txt | 1106 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 1 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 7 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 172 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 174 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 216 | # =================================================== | COMMENT |
| MEDIUM | CMakeLists.txt | 488 | # =================================================== | COMMENT |
| MEDIUM | CMakeLists.txt | 510 | # =================================================== | COMMENT |
| MEDIUM | CMakeLists.txt | 520 | # =================================================== | COMMENT |
| MEDIUM | CMakeLists.txt | 705 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 707 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 793 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 795 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 806 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 808 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 831 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 833 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 936 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 938 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 1133 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 1135 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 1222 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 1224 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 2076 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | CMakeLists.txt | 2078 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | platforms/js/build_js.py | 228 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/android/build_sdk.py | 118 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/android/build_sdk.py | 145 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/android/build_sdk.py | 419 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/android/build-tests/test_cmake_build.py | 44 | #=================================================================================================== | STRING |
| MEDIUM | platforms/winpack_dldt/build_package.py | 159 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/winpack_dldt/build_package.py | 335 | #=================================================================================================== | COMMENT |
| MEDIUM | platforms/winpack_dldt/build_package.py | 468 | #=================================================================================================== | COMMENT |
| MEDIUM | samples/CMakeLists.txt | 2 | #=================================================================================================== | COMMENT |
| MEDIUM | samples/CMakeLists.txt | 6 | #=================================================================================================== | COMMENT |
| MEDIUM | samples/CMakeLists.txt | 63 | #=================================================================================================== | COMMENT |
| MEDIUM | samples/CMakeLists.txt | 67 | #=================================================================================================== | COMMENT |
| MEDIUM | …gProc/BasicGeometricDrawing/basic_geometric_drawing.py | 76 | # ----------------------- | COMMENT |
| MEDIUM | …gProc/BasicGeometricDrawing/basic_geometric_drawing.py | 90 | # ------------------ | COMMENT |
| MEDIUM | samples/java/tutorial_code/CMakeLists.txt | 1 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | samples/java/tutorial_code/CMakeLists.txt | 4 | # ---------------------------------------------------------------------------- | COMMENT |
| 57 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | platforms/apple/build_xcframework.py | 87 | def get_or_create_build_folder(base_dir, platform): | STRING |
| LOW | platforms/android/build_static_aar.py | 83 | def convert_deps_list_to_prefab(linked_libs, opencv_libs, external_libs): | CODE |
| LOW | samples/python/camera_calibration_show_extrinsics.py | 25 | def inverse_homogeneoux_matrix(M): | CODE |
| LOW | samples/python/camera_calibration_show_extrinsics.py | 34 | def transform_to_matplotlib_frame(cMo, X, inverse=False): | CODE |
| LOW⚡ | …brightness_image/changing_contrast_brightness_image.py | 31 | def on_linear_transform_alpha_trackbar(val): | CODE |
| LOW⚡ | …brightness_image/changing_contrast_brightness_image.py | 36 | def on_linear_transform_beta_trackbar(val): | CODE |
| LOW⚡ | …brightness_image/changing_contrast_brightness_image.py | 41 | def on_gamma_correction_trackbar(val): | CODE |
| LOW | …es/dnn/dnn_model_runner/dnn_conversion/common/utils.py | 55 | def set_common_reproducibility(): | CODE |
| LOW | …/dnn_conversion/common/test/cls_model_test_pipeline.py | 43 | def _configure_test_module_params(self): | CODE |
| LOW | …nner/dnn_conversion/common/test/model_test_pipeline.py | 120 | def _configure_test_module_params(self): | CODE |
| LOW | …conversion/pytorch/classification/py_to_py_resnet50.py | 76 | def get_opencv_dnn_prediction(opencv_net, preproc_img, imagenet_labels): | CODE |
| LOW | …conversion/pytorch/classification/py_to_py_resnet50.py | 94 | def get_pytorch_dnn_prediction(original_net, preproc_img, imagenet_labels): | CODE |
| LOW | …dnn_conversion/tf/classification/py_to_py_mobilenet.py | 74 | def get_opencv_dnn_prediction(opencv_net, preproc_img, imagenet_labels): | CODE |
| LOW | doc/tools/html_functions.py | 85 | def insert_python_fn_signature(soup, table, variants, symbol): | CODE |
| LOW | doc/tools/html_functions.py | 92 | def create_python_fn_description(soup, variants): | CODE |
| LOW | …les/flann/misc/python/test/test_flann_based_matcher.py | 12 | def test_all_parameters_can_be_passed(self): | CODE |
| LOW | modules/python/test/test_fs_cache_dir.py | 18 | def get_cache_dir_imread_interop(self, ext): | CODE |
| LOW⚡ | modules/python/test/test_fs_cache_dir.py | 31 | def test_get_cache_dir_imread_interop_png(self): | CODE |
| LOW⚡ | modules/python/test/test_fs_cache_dir.py | 34 | def test_get_cache_dir_imread_interop_jpeg(self): | CODE |
| LOW⚡ | modules/python/test/test_fs_cache_dir.py | 37 | def test_get_cache_dir_imread_interop_tiff(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 345 | def test_parse_to_bool_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 352 | def test_parse_to_bool_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 360 | def test_parse_to_bool_not_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 366 | def test_parse_to_int_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 376 | def test_parse_to_int_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 385 | def test_parse_to_int_not_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 425 | def test_parse_to_size_t_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 435 | def test_parse_to_size_t_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 444 | def test_parse_to_size_t_not_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 450 | def test_parse_to_float_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 478 | def test_parse_to_float_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 485 | def test_parse_to_float_not_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 493 | def test_parse_to_double_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 515 | def test_parse_to_double_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 522 | def test_parse_to_double_not_convertible_extra(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 530 | def test_parse_to_cstring_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 538 | def test_parse_to_cstring_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 544 | def test_parse_to_string_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 552 | def test_parse_to_string_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 558 | def test_parse_to_rect_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 620 | def test_parse_to_rotated_rect_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 626 | def test_parse_to_term_criteria_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 636 | def test_parse_to_term_criteria_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 642 | def test_parse_to_range_convertible_to_all(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 650 | def test_parse_to_range_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 659 | def test_parse_to_range_not_convertible(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 665 | def test_reserved_keywords_are_transformed(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 823 | def test_class_from_submodule_has_global_alias(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 833 | def test_inner_class_has_global_alias(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 842 | def test_export_class_with_different_name(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 890 | def test_named_arguments_without_parameters(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 896 | def test_named_arguments_without_output_argument(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 904 | def test_named_arguments_with_output_argument(self): | CODE |
| LOW⚡ | modules/python/test/test_misc.py | 914 | def test_arithm_op_without_saturation(self): | CODE |
| LOW | modules/python/test/test_misc.py | 177 | def test_overload_resolution_can_choose_correct_overload(self): | CODE |
| LOW | modules/python/test/test_misc.py | 197 | def test_overload_resolution_fails(self): | CODE |
| LOW | modules/python/test/test_misc.py | 216 | def test_properties_with_reserved_keywords_names_are_transformed(self): | CODE |
| LOW | modules/python/test/test_misc.py | 309 | def test_unsupported_numpy_data_types_string_description(self): | CODE |
| LOW | modules/python/test/test_misc.py | 322 | def test_numpy_writeable_flag_is_preserved(self): | CODE |
| LOW | modules/python/test/test_misc.py | 332 | def test_parse_to_bool_convertible(self): | CODE |
| 151 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | platforms/apple/build_xcframework.py | 179 | except Exception as e: | STRING |
| LOW | platforms/ios/run_tests.py | 39 | except Exception as e: | CODE |
| MEDIUM | platforms/ios/run_tests.py | 36 | def run(self): | CODE |
| LOW | platforms/ios/build_framework.py | 199 | except Exception as e: | CODE |
| MEDIUM | platforms/ios/build_framework.py | 196 | def build(self, outdir): | CODE |
| LOW | platforms/android/build_sdk.py | 66 | except Exception as e: | CODE |
| MEDIUM | platforms/android/build_sdk.py | 22 | def execute(cmd, shell=False): | CODE |
| MEDIUM | samples/python/aruco_detect_board_charuco.py | 87 | print("Error: unable to open video/image source") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 717 | print("Error: ", args.inputType, " input method doesnt exist") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 720 | print("Error: ", args.draw, " draw type doesnt exist") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 723 | print("Error: ", args.graph, " type of graph doesnt exist") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 726 | print("Error: ", args.windowType, " type of window doesnt exist") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 729 | print("Error: windLen = ", args.windLen, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 732 | print("Error: overlap = ", args.overlap, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 735 | print("Error: rows = ", args.rows, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 738 | print("Error: cols = ", args.cols, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 741 | print("Error: xmarkup = ", args.xmarkup, " - incorrect value. Must be >= 2") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 744 | print("Error: ymarkup = ", args.ymarkup, " - incorrect value. Must be >= 2") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 747 | print("Error: zmarkup = ", args.zmarkup, " - incorrect value. Must be >= 2") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 750 | print("Error: microTime = ", args.microTime, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 753 | print("Error: frameSizeTime = ", args.frameSizeTime, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 756 | print("Error: updateTime = ", args.updateTime, " - incorrect value. Must be > 0") | CODE |
| MEDIUM⚡ | samples/python/audio_spectrogram.py | 759 | print("Error: waitTime = ", args.waitTime, " - incorrect value. Must be >= 0") | CODE |
| MEDIUM | samples/python/audio_spectrogram.py | 111 | print("Error : Can't read audio file: '", self.audio, "' with audioStream = ", self.audioStream) | CODE |
| MEDIUM | samples/python/audio_spectrogram.py | 112 | print("Error: problems with audio reading, check input arguments") | CODE |
| MEDIUM | samples/python/audio_spectrogram.py | 150 | print("Error: Can't open microphone") | CODE |
| MEDIUM | samples/python/audio_spectrogram.py | 151 | print("Error: problems with audio reading, check input arguments") | CODE |
| MEDIUM | samples/python/audio_spectrogram.py | 178 | print("Error: Grab error") | CODE |
| LOW | samples/python/_doc.py | 22 | except Exception: | CODE |
| MEDIUM | samples/python/qrcode.py | 190 | print("Error exception: ", e) | CODE |
| LOW | samples/python/tracker.py | 100 | except Exception as e: | CODE |
| LOW | samples/python/demo.py | 137 | except Exception as e: | CODE |
| MEDIUM | …ython/tutorial_code/core/AddingImages/adding_images.py | 23 | print("Error loading src1") | CODE |
| MEDIUM | …ython/tutorial_code/core/AddingImages/adding_images.py | 26 | print("Error loading src2") | CODE |
| MEDIUM | …screte_fourier_transform/discrete_fourier_transform.py | 24 | print('Error opening image') | CODE |
| MEDIUM | …es/python/tutorial_code/imgProc/Smoothing/smoothing.py | 25 | print ('Error opening image') | CODE |
| MEDIUM | …ples/python/tutorial_code/imgProc/Pyramids/pyramids.py | 21 | print ('Error opening image!') | STRING |
| MEDIUM | …imgProc/morph_lines_detection/morph_lines_detection.py | 30 | print ('Error opening image: ' + argv[0]) | CODE |
| MEDIUM | …/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py | 24 | print ('Error opening image!') | CODE |
| MEDIUM | …les/python/tutorial_code/ImgTrans/Filter2D/filter2D.py | 21 | print ('Error opening image!') | CODE |
| MEDIUM | …/python/tutorial_code/ImgTrans/LaPlace/laplace_demo.py | 23 | print ('Error opening image') | CODE |
| MEDIUM | …/python/tutorial_code/ImgTrans/SobelDemo/sobel_demo.py | 31 | print ('Error opening image: ' + argv[0]) | CODE |
| MEDIUM | …python/tutorial_code/ImgTrans/HoughLine/hough_lines.py | 21 | print ('Error opening image!') | CODE |
| MEDIUM | …hon/tutorial_code/ImgTrans/HoughCircle/hough_circle.py | 16 | print ('Error opening image!') | CODE |
| LOW | samples/dnn/download_models.py | 106 | except Exception as e: | CODE |
| LOW | samples/dnn/download_models.py | 166 | except Exception as e: | CODE |
| MEDIUM | samples/dnn/speech_recognition.py | 419 | print("Error : Can't read audio file:", file, "with audioStream = ", audioStream) | CODE |
| MEDIUM | samples/dnn/speech_recognition.py | 444 | print("Error: Can't open microphone") | CODE |
| MEDIUM | samples/dnn/speech_recognition.py | 445 | print("Error: problems with audio reading, check input arguments") | CODE |
| MEDIUM | samples/dnn/speech_recognition.py | 460 | print("Error: Grab error") | CODE |
| LOW | …/dnn_conversion/tf/detection/py_to_py_ssd_mobilenet.py | 18 | except Exception: | CODE |
| LOW | …torch_tf_detection/tf_det_model_conversion_tutorial.md | 70 | except Exception: | CODE |
| LOW | …_segmentation/tf_sem_segm_model_conversion_tutorial.md | 50 | except Exception: | CODE |
| MEDIUM | modules/python/test/test_misc.py | 150 | def test_redirectError(self): | CODE |
| MEDIUM | modules/python/test/test_misc.py | 250 | def _try_to_convert(self, conversion, value): | CODE |
| LOW | modules/python/test/test_misc.py | 222 | except Exception as e: | CODE |
| LOW | modules/python/test/test_misc.py | 253 | except Exception as e: | CODE |
| LOW | modules/python/src2/typing_stubs_generator.py | 50 | except Exception: | CODE |
| MEDIUM⚡ | modules/python/src2/hdr_parser.py | 638 | print("Error at %d. no terminating ) in CVAPI() macro: %s" % (self.lineno, decl_str)) | CODE |
| MEDIUM⚡ | modules/python/src2/hdr_parser.py | 643 | print("Error at %d: no args in '%s'" % (self.lineno, decl_str)) | CODE |
| 26 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | platforms/ios/build_framework.py | 96 | CODE | |
| LOW | platforms/ios/build_framework.py | 456 | CODE | |
| LOW | platforms/ios/build_framework.py | 555 | CODE | |
| LOW | platforms/android/build_static_aar.py | 66 | CODE | |
| LOW | platforms/android/build_static_aar.py | 83 | CODE | |
| LOW | platforms/android/build_sdk.py | 385 | CODE | |
| LOW | platforms/android/build_sdk.py | 350 | CODE | |
| LOW | platforms/winpack_dldt/build_package.py | 93 | CODE | |
| LOW | platforms/winpack_dldt/build_package.py | 100 | CODE | |
| LOW | samples/gdb/mat_pretty_printer.py | 60 | CODE | |
| LOW | samples/python/hist.py | 56 | CODE | |
| LOW | samples/python/video_v4l2.py | 23 | CODE | |
| LOW | samples/python/aruco_detect_board_charuco.py | 24 | CODE | |
| LOW | samples/python/mouse_and_match.py | 32 | CODE | |
| LOW | samples/python/feature_homography.py | 53 | CODE | |
| LOW | samples/python/lk_track.py | 47 | CODE | |
| LOW | samples/python/audio_spectrogram.py | 40 | CODE | |
| LOW | samples/python/audio_spectrogram.py | 534 | CODE | |
| LOW | samples/python/audio_spectrogram.py | 624 | CODE | |
| LOW | samples/python/plane_tracker.py | 154 | CODE | |
| LOW | samples/python/plane_ar.py | 58 | CODE | |
| LOW | samples/python/qrcode.py | 71 | CODE | |
| LOW | samples/python/peopledetect.py | 33 | CODE | |
| LOW | samples/python/find_obj.py | 29 | CODE | |
| LOW | samples/python/stitching_detailed.py | 274 | CODE | |
| LOW | samples/python/squares.py | 25 | CODE | |
| LOW | samples/python/tracker.py | 56 | CODE | |
| LOW | samples/python/lk_homography.py | 58 | CODE | |
| LOW | samples/python/grabcut.py | 59 | CODE | |
| LOW | samples/python/grabcut.py | 101 | CODE | |
| LOW | samples/python/demo.py | 56 | CODE | |
| LOW | …l_code/core/mat_mask_operations/mat_mask_operations.py | 22 | CODE | |
| LOW | …rial_code/imgProc/opening_closing_hats/morphology_2.py | 16 | CODE | |
| LOW | …ples/python/tutorial_code/imgProc/Pyramids/pyramids.py | 5 | CODE | |
| LOW | …torial_code/imgProc/erosion_dilatation/morphology_1.py | 38 | CODE | |
| LOW | …/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py | 10 | CODE | |
| LOW | …ples/python/tutorial_code/ImgTrans/remap/Remap_Demo.py | 7 | CODE | |
| LOW | samples/dnn/download_models.py | 33 | CODE | |
| LOW | samples/dnn/download_models.py | 273 | CODE | |
| LOW | samples/dnn/virtual_try_on.py | 144 | CODE | |
| LOW | samples/dnn/tf_text_graph_ssd.py | 63 | CODE | |
| LOW | samples/dnn/tf_text_graph_ssd.py | 140 | CODE | |
| LOW | samples/dnn/tf_text_graph_ssd.py | 162 | CODE | |
| LOW | samples/dnn/tf_text_graph_faster_rcnn.py | 6 | CODE | |
| LOW | samples/dnn/common.py | 6 | CODE | |
| LOW | samples/dnn/common.py | 88 | CODE | |
| LOW | samples/dnn/tf_text_graph_efficientdet.py | 36 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 1 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 38 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 286 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 313 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 178 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 204 | CODE | |
| LOW | samples/dnn/tf_text_graph_common.py | 207 | CODE | |
| LOW | samples/dnn/object_detection.py | 98 | CODE | |
| LOW | samples/dnn/object_detection.py | 258 | CODE | |
| LOW | doc/tools/html_functions.py | 40 | CODE | |
| LOW | modules/video/misc/python/test/test_lk_track.py | 56 | CODE | |
| LOW | modules/video/misc/python/test/test_lk_homography.py | 46 | CODE | |
| LOW | modules/core/src/opencl/runtime/generator/common.py | 68 | CODE | |
| 79 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | platforms/osx/build_framework.py | 124 | print_error("--macos_archs and --catalyst_archs are undefined; nothing will be built.") | CODE |
| HIGH | platforms/ios/build_visionos_framework.py | 108 | print_error("--visionos_archs and --visionsimulator_archs are undefined; nothing will be built.") | CODE |
| HIGH | platforms/ios/build_framework.py | 645 | print_error("--iphoneos_archs and --iphonesimulator_archs are undefined; nothing will be built.") | CODE |
| HIGH | samples/dnn/speech_recognition.py | 11 | Download and unzip : `$ wget --content-disposition https://api.ngc.nvidia.com/v2/models/nvidia/jasper_pyt_onnx_fp16_ | STRING |
| HIGH | modules/python/src2/gen2.py | 88 | if(!src || src == Py_None) | CODE |
| HIGH | modules/python/src2/gen2.py | 113 | ok = tmp && pyopencv_to_safe(tmp, dst.$propname, ArgInfo("$propname", 0)); | CODE |
| HIGH | modules/python/src2/gen2.py | 1043 | code_parse = "if(PyObject_Size(py_args) == 0 && (!kw || PyObject_Size(kw) == 0))" | STRING |
| HIGH | modules/java/generator/gen_java.py | 771 | j_prologue.append( "List<Mat> %(n)s_tmplm = new ArrayList<Mat>((%(n)s != null) ? %(n)s.s | CODE |
| HIGH | modules/java/generator/gen_java.py | 818 | j_epilogue.append('if(%(n)s!=null) %(n)s[0] = (%(t)s)%(n)s_out[0];' % {'n':a.name,'t':type_d | CODE |
| HIGH | modules/java/generator/gen_java.py | 834 | j_epilogue.append( "if("+a.name+"!=null){ " + "; ".join(set_vals) + "; } ") | CODE |
| HIGH | modules/ts/misc/table_formatter.py | 540 | vars.push(decodeURIComponent(hash[0])) | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 563 | if (re.exec($(row.get(colIdx)).text()) == null) | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 564 | return false | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 572 | if (!val || val >= 1 || val > 1+percent) | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 573 | return false | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 579 | if (!val || val < percent) | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 580 | return false | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 588 | if (!val || val < percent) | CODE |
| HIGH⚡ | modules/ts/misc/table_formatter.py | 589 | return false | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | samples/install/linux_install_b.sh | 2 | # This file contains documentation snippets for Linux installation tutorial | COMMENT |
| MEDIUM | samples/install/linux_install_a.sh | 2 | # This file contains documentation snippets for Linux installation tutorial | COMMENT |
| MEDIUM | samples/install/linux_quick_install_contrib.sh | 2 | # This file contains documentation snippets for Linux installation tutorial | COMMENT |
| MEDIUM | samples/install/linux_quick_install.sh | 2 | # This file contains documentation snippets for Linux installation tutorial | COMMENT |
| MEDIUM | …ython/tutorial_code/video/optical_flow/optical_flow.py | 32 | # Create a mask image for drawing purposes | COMMENT |
| MEDIUM | …ion/good_features_to_track/goodFeaturesToTrack_Demo.py | 51 | # Create a window and a trackbar | COMMENT |
| MEDIUM | …e/TrackingMotion/corner_subpixels/cornerSubPix_Demo.py | 63 | # Create a window and a trackbar | COMMENT |
| MEDIUM | …de/TrackingMotion/harris_detector/cornerHarris_Demo.py | 48 | # Create a window and a trackbar | COMMENT |
| MEDIUM | …es/python/tutorial_code/imgProc/threshold/threshold.py | 40 | # Create a window to display results | COMMENT |
| MEDIUM | …imgProc/morph_lines_detection/morph_lines_detection.py | 58 | # Create the images that will use to extract the horizontal and vertical lines | COMMENT |
| MEDIUM | …/ImgTrans/distance_transformation/imageSegmentation.py | 36 | # Create a kernel that we will use to sharpen our image | COMMENT |
| MEDIUM | …/ImgTrans/distance_transformation/imageSegmentation.py | 89 | # Create the CV_8U version of the distance image | COMMENT |
| MEDIUM | …/ImgTrans/distance_transformation/imageSegmentation.py | 96 | # Create the marker image for the watershed algorithm | COMMENT |
| MEDIUM | …/ImgTrans/distance_transformation/imageSegmentation.py | 125 | # Create the result image | COMMENT |
| MEDIUM | …escriptors/point_polygon_test/pointPolygonTest_demo.py | 6 | # Create an image | COMMENT |
| MEDIUM | …escriptors/point_polygon_test/pointPolygonTest_demo.py | 10 | # Create a sequence of points to make a contour | COMMENT |
| MEDIUM | samples/python/tutorial_code/imgcodecs/animations.py | 7 | # Create an Animation instance to save | COMMENT |
| MEDIUM | samples/dnn/text_detection.py | 23 | # Import required modules | COMMENT |
| MEDIUM | samples/dnn/text_detection.py | 155 | # Create a new named window | COMMENT |
| MEDIUM | samples/dnn/text_detection.py | 179 | # Create a 4D blob from frame. | COMMENT |
| MEDIUM | samples/dnn/text_detection.py | 210 | # Create a 4D blob from cropped image | COMMENT |
| MEDIUM | samples/dnn/classification.py | 84 | # Create a 4D blob from a frame. | COMMENT |
| MEDIUM | samples/dnn/tf_text_graph_ssd.py | 1 | # This file is a part of OpenCV project. | COMMENT |
| MEDIUM | samples/dnn/tf_text_graph_efficientdet.py | 1 | # This file is a part of OpenCV project. | COMMENT |
| MEDIUM | samples/dnn/mask_rcnn.py | 88 | # Create a 4D blob from a frame. | COMMENT |
| MEDIUM | samples/dnn/object_detection.py | 281 | # Create a 4D blob from a frame. | COMMENT |
| MEDIUM | samples/dnn/shrink_tf_graph_weights.py | 1 | # This file is part of OpenCV project. | COMMENT |
| MEDIUM | samples/dnn/segmentation.py | 101 | # Create a 4D blob from a frame. | COMMENT |
| MEDIUM | …/python/src2/typing_stubs_generation/api_refinement.py | 417 | # Create a union of current type and Scalar | COMMENT |
| MEDIUM | …pi/include/opencv2/gapi/pysrc/python_stream_source.hpp | 41 | * # Create a G-API source from a Python class | COMMENT |
| MEDIUM | …pi/include/opencv2/gapi/pysrc/python_stream_source.hpp | 44 | * # Define a simple graph: input → copy → output | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | platforms/android/build_static_aar.py | 176 | # full dependency list for all ABIs. So we just add empty .a library if this ABI doesn't have this depen | COMMENT |
| MEDIUM | …3d/real_time_pose_estimation/src/main_registration.cpp | 125 | //Instantiate robust matcher: detector, extractor, matcher | COMMENT |
| MEDIUM | …arty/flatbuffers/include/flatbuffers/vector_downward.h | 34 | // Essentially, this supports 2 std::vectors in a single buffer. | COMMENT |
| MEDIUM | modules/core/include/opencv2/core/cuda.hpp | 660 | setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPool | CODE |
| MEDIUM | modules/core/include/opencv2/core/cuda.hpp | 703 | setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPool | CODE |
| MEDIUM | modules/core/include/opencv2/core/cuda.hpp | 721 | setBufferPoolUsage(true); // Tell OpenCV that we are going to utilize BufferPool | CODE |
| MEDIUM | modules/imgproc/src/hough.cpp | 2127 | // be small and the arc can be big, or vice versa. Weighted area is more robust. | COMMENT |
| MEDIUM | modules/imgproc/src/hough.cpp | 2129 | // It seems to be more robust to compare circle areas (without "pi" scale) | COMMENT |
| MEDIUM | modules/gapi/test/streaming/gapi_streaming_tests.cpp | 1332 | // Runs 100 times with no deadlock - assumed stable (robust) enough | COMMENT |
| MEDIUM | modules/gapi/test/streaming/gapi_streaming_tests.cpp | 1345 | // Runs 100 times with no deadlock - assumed stable (robust) enough | COMMENT |
| MEDIUM | …ules/gapi/test/streaming/gapi_streaming_utils_test.cpp | 332 | // utilize main thread as well | COMMENT |
| MEDIUM | modules/gapi/include/opencv2/gapi/gproto.hpp | 109 | // FIXME: Someday utilize a generic tuple_to_vec<> routine | COMMENT |
| MEDIUM | modules/gapi/src/backends/oak/goakbackend.cpp | 946 | // Is there a way to extract API from somewhereelse/utilize structs | COMMENT |
| MEDIUM | …reaming/onevpl/demux/async_mfp_demux_data_provider.cpp | 730 | // utilize consumed bitstream portion allocated at prev step | COMMENT |
| MEDIUM | modules/gapi/src/compiler/gcompiler.cpp | 530 | // FIXME: This may be hazardous if our backend are not very robust | COMMENT |
| MEDIUM | modules/gapi/src/compiler/passes/kernels.cpp | 238 | // FIXME: Essentially the same problem as in the above resolveKernels | COMMENT |
| MEDIUM | modules/dnn/misc/python/test/test_dnn.py | 359 | # Run asynchronously. To make test more robust, process inputs in the reversed order. | COMMENT |
| MEDIUM | modules/dnn/test/test_misc.cpp | 667 | // Run asynchronously. To make test more robust, process inputs in the reversed order. | COMMENT |
| MEDIUM | modules/dnn/test/test_misc.cpp | 723 | // Run asynchronously. To make test more robust, process inputs in the reversed order. | COMMENT |
| MEDIUM | modules/dnn/test/test_misc.cpp | 825 | // Run asynchronously. To make test more robust, process inputs in the reversed order. | COMMENT |
| MEDIUM | modules/dnn/test/test_darknet_importer.cpp | 603 | // Run asynchronously. To make test more robust, process inputs in the reversed order. | COMMENT |
| MEDIUM | modules/highgui/src/window_QT.h | 271 | //if (obj->metaObject ()->className () == "CvWindow") does not give me robust result | COMMENT |
| LOW | modules/ts/misc/xls-report.py | 121 | # We can't just use a dictionary instead, since we want to preserve the sorted order of the keys. | COMMENT |
| MEDIUM | modules/ts/include/opencv2/ts/ts_gtest.h | 9748 | // This implementation is *not* meant to be as highly tuned or robust | COMMENT |
| MEDIUM | modules/ts/include/opencv2/ts/ts_gtest.h | 9821 | // In practice, this can be used to test functions that utilize the | COMMENT |
| MEDIUM | modules/photo/include/opencv2/photo.hpp | 71 | https://www.learnopencv.com/seamless-cloning-using-opencv-python-cpp | CODE |
| MEDIUM | modules/calib3d/include/opencv2/calib3d.hpp | 550 | //! type of the robust estimation algorithm | COMMENT |
| MEDIUM | modules/calib3d/src/ptsetreg.cpp | 786 | // The robust framework ensures consensus on larger sets; a closed-form LS refit | COMMENT |
| MEDIUM | modules/calib3d/src/ptsetreg.cpp | 1171 | // run robust method | COMMENT |
| MEDIUM | modules/calib3d/src/ptsetreg.cpp | 1257 | // run robust estimation | COMMENT |
| MEDIUM | modules/calib3d/src/ptsetreg.cpp | 1351 | // Create robust estimators with the same semantics as affine functions. | COMMENT |
| MEDIUM | modules/calib3d/src/usac/bundle.cpp | 167 | // Compute weight from robust loss function (used in the IRLS) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …oneXamlDirect3DApp1/Resources/AppResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …oneXamlDirect3DApp1/Resources/AppResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | …enCVXaml/OpenCVXaml/Resources/AppResources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | modules/calib3d/src/usac/utils.cpp | 639 | // skip neighbor which has the same index as requested point | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | samples/python/houghcircles.py | 32 | if circles is not None: # Check if circles have been found and only then iterate over these and add them to the imag | CODE |
| LOW | …ples/python/tutorial_code/imgProc/Pyramids/pyramids.py | 19 | # Check if image is loaded fine | STRING |
| LOW | …imgProc/morph_lines_detection/morph_lines_detection.py | 28 | # Check if image is loaded fine | COMMENT |
| LOW | …/tutorial_code/ImgTrans/MakeBorder/copy_make_border.py | 22 | # Check if image is loaded fine | COMMENT |
| LOW | …les/python/tutorial_code/ImgTrans/Filter2D/filter2D.py | 19 | # Check if image is loaded fine | COMMENT |
| LOW | …/python/tutorial_code/ImgTrans/LaPlace/laplace_demo.py | 21 | # Check if image is loaded fine | COMMENT |
| LOW | …/python/tutorial_code/ImgTrans/SobelDemo/sobel_demo.py | 29 | # Check if image is loaded fine | COMMENT |
| LOW | …python/tutorial_code/ImgTrans/HoughLine/hough_lines.py | 19 | # Check if image is loaded fine | COMMENT |
| LOW | …hon/tutorial_code/ImgTrans/HoughCircle/hough_circle.py | 14 | # Check if image is loaded fine | COMMENT |
| LOW | …ial_code/ml/introduction_to_pca/introduction_to_pca.py | 68 | # Check if image is loaded successfully | COMMENT |
| LOW | modules/core/include/opencv2/core/persistence.hpp | 79 | -# Close the file using FileStorage::release. FileStorage destructor also closes the file. | CODE |
| LOW | modules/core/include/opencv2/core/persistence.hpp | 176 | -# Open the file storage using FileStorage::FileStorage constructor or FileStorage::open method. | CODE |
| LOW | modules/python/src2/gen2.py | 655 | # Check if there is params structure in arguments | STRING |
| LOW | …ules/python/src2/typing_stubs_generation/generation.py | 595 | # Check if typing module is required due to @overload decorator usage | COMMENT |
| LOW | …ules/python/src2/typing_stubs_generation/generation.py | 775 | # Check if alias is already registered | COMMENT |
| LOW | …ules/python/src2/typing_stubs_generation/generation.py | 784 | # Check if collection contains a link to another alias | COMMENT |
| LOW | …/python/src2/typing_stubs_generation/api_refinement.py | 193 | # Check if library is built with enabled highgui module | COMMENT |
| LOW | …/python/src2/typing_stubs_generation/api_refinement.py | 404 | # Check if it's already a union or if it already includes Scalar | COMMENT |
| LOW | …/python/src2/typing_stubs_generation/api_refinement.py | 406 | # Check if Scalar is already in the union | COMMENT |
| LOW | …ython/src2/typing_stubs_generation/types_conversion.py | 237 | # Check if argument requires type substitution | COMMENT |
| LOW | modules/js/generator/embindgen.py | 861 | # Check if the method is an external constructor | COMMENT |
| LOW | modules/ts/misc/run_long.py | 108 | # Print result to the stdout | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | samples/python/dis_opt_flow.py | 57 | CODE | |
| LOW | samples/python/opt_flow.py | 57 | CODE | |
| LOW | samples/dnn/human_parsing.py | 76 | CODE | |
| LOW | samples/dnn/speech_recognition.py | 68 | CODE | |
| LOW | samples/dnn/text_detection.py | 65 | CODE | |
| LOW | samples/dnn/virtual_try_on.py | 398 | CODE | |
| LOW | samples/dnn/optical_flow.py | 44 | CODE | |
| LOW | samples/dnn/optical_flow.py | 69 | CODE | |
| LOW | samples/dnn/person_reid.py | 101 | CODE | |
| LOW | samples/dnn/person_reid.py | 182 | CODE | |
| LOW | …n_model_runner/dnn_conversion/pytorch/pytorch_model.py | 82 | CODE | |
| LOW | …les/dnn/dnn_model_runner/dnn_conversion/tf/tf_model.py | 95 | CODE | |
| LOW | modules/core/src/opencl/runtime/generator/common.py | 131 | CODE | |
| LOW | modules/python/test/test_misc.py | 121 | CODE | |
| LOW | modules/java/generator/gen_java.py | 184 | CODE | |
| LOW | modules/java/generator/gen_java.py | 188 | CODE | |
| LOW | modules/java/generator/gen_java.py | 192 | CODE | |
| LOW | modules/java/generator/gen_java.py | 196 | CODE | |
| LOW | modules/java/generator/gen_java.py | 200 | CODE | |
| LOW | modules/dnn/test/imagenet_cls_test_inception.py | 42 | CODE | |
| LOW | modules/dnn/test/cityscapes_semsegm_test_enet.py | 110 | CODE | |
| LOW | apps/pattern-tools/svgfig.py | 724 | CODE | |
| LOW | apps/pattern-tools/svgfig.py | 3178 | CODE | |
| LOW | apps/pattern-tools/svgfig.py | 3273 | CODE | |
| LOW | apps/pattern-tools/svgfig.py | 3328 | CODE | |
| LOW | apps/pattern-tools/svgfig.py | 3381 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | modules/java/generator/gen_java.py | 369 | jcleaner = "long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () | CODE |
| CRITICAL | modules/java/generator/gen_java.py | 952 | tail = ";\n long nativeObjCopy = nativeObj;\n org.opencv.core.Mat.cleaner.register(this, () -> delet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ulations/MediaExtensions/OcvTransform/OcvTransform.cpp | 249 | // NOTE: This method should succeed even when there is no media type on the | COMMENT |
| LOW | …ulations/MediaExtensions/OcvTransform/OcvTransform.cpp | 296 | // NOTE: This method should succeed even when there is no media type on the | COMMENT |
| LOW | …t/ImageManipulations/MediaExtensions/Common/LinkList.h | 364 | // NOTE: This method invalidates the POSITION object. | COMMENT |
| LOW | modules/core/include/opencv2/core/types.hpp | 1529 | // Step 1: lo + hi | COMMENT |
| LOW | modules/core/include/opencv2/core/types.hpp | 1543 | // Step 2: sum + mid | COMMENT |
| LOW | modules/core/src/utils/datafile.cpp | 211 | // Step 0: check current directory or absolute path at first | COMMENT |
| LOW⚡ | modules/objdetect/src/aruco/aruco_detector.cpp | 754 | /// Step 0: equation (2) from paper [1] | COMMENT |
| LOW⚡ | modules/objdetect/src/aruco/aruco_detector.cpp | 759 | /// Step 1: create image pyramid. Section 3.4. in [1] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …irect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DBase.cpp | 35 | // Don't forget to declare your application's minimum required feature level in its | COMMENT |
| LOW | …irect3DApp1/PhoneXamlDirect3DApp1Comp/Direct3DBase.cpp | 35 | // Don't forget to declare your application's minimum required feature level in its | COMMENT |
| LOW | 3rdparty/openjpeg/openjp2/t2.c | 584 | /* don't forget to release pi */ | COMMENT |
| MEDIUM | modules/core/include/opencv2/core/mat.hpp | 103 | Here is how you can use a function that takes InputArray : | CODE |
| LOW | modules/core/include/opencv2/core/hal/intrin_cpp.hpp | 146 | don't forget to check the CV_SIMD256 preprocessor definition: | CODE |
| LOW | modules/core/include/opencv2/core/hal/intrin_cpp.hpp | 163 | don't forget to check the CV_SIMD512 preprocessor definition. | CODE |
| LOW | modules/core/include/opencv2/core/hal/intrin_cpp.hpp | 166 | cv::v_float64x2 is not implemented in NEON variant, if you want to use this type, don't forget to | CODE |
| MEDIUM | modules/imgcodecs/src/rgbe.cpp | 57 | // feel free to modify it to suit your needs. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/imgproc/src/smooth.dispatch.cpp | 742 | // TODO: implement ocl_sepFilter2D_BitExact -- how to deal with bdepth? | COMMENT |
| LOW | modules/gapi/src/backends/fluid/gfluidbackend.cpp | 1390 | //TODO: implement ? | COMMENT |
| LOW | modules/dnn/perf/perf_einsum.cpp | 40 | // TODO: Add tests with one input after ellips merge | COMMENT |
| LOW | modules/dnn/src/layers/region_layer.cpp | 162 | // TODO: implement a logistic activation to classification scores. | COMMENT |
| LOW | modules/videoio/src/cap_msmf.cpp | 1294 | // TODO: implement read by chunks | COMMENT |
| LOW | modules/highgui/src/window_winrt_bridge.cpp | 243 | // TODO: implement when adding buttons | COMMENT |
| LOW | modules/highgui/src/window_winrt.cpp | 222 | // TODO: implement appropriate logic here | COMMENT |
| LOW | modules/highgui/src/window_winrt.cpp | 241 | // TODO: implement appropriate logic here | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/core/include/opencv2/core/types.hpp | 1529 | // Step 1: lo + hi | COMMENT |
| LOW | modules/core/include/opencv2/core/types.hpp | 1543 | // Step 2: sum + mid | COMMENT |
| LOW | modules/core/src/utils/datafile.cpp | 211 | // Step 0: check current directory or absolute path at first | COMMENT |
| LOW⚡ | modules/objdetect/src/aruco/aruco_detector.cpp | 754 | /// Step 0: equation (2) from paper [1] | COMMENT |
| LOW⚡ | modules/objdetect/src/aruco/aruco_detector.cpp | 759 | /// Step 1: create image pyramid. Section 3.4. in [1] | COMMENT |
| LOW | modules/gapi/src/backends/render/ft_render.cpp | 83 | // We need to check if the glyph goes beyond the last position of the pen | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …dules/python/src2/typing_stubs_generation/ast_utils.py | 77 | Traverses 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.py | 344 | Traverses up nodes hierarchy to find closest enclosing namespace of the passed node Args: node (ASTNode | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | samples/dnn/download_models.py | 23 | __all__ = ["downloadFile"] | CODE |
| LOW | …dules/core/misc/python/package/mat_wrapper/__init__.py | 1 | __all__ = [] | CODE |
| LOW | …/python/src2/typing_stubs_generation/api_refinement.py | 1 | __all__ = [ | CODE |
| LOW | …dules/python/src2/typing_stubs_generation/ast_utils.py | 402 | def update_full_export_name(class_node: ClassNode) -> None: | CODE |
| LOW | modules/python/package/cv2/__init__.py | 8 | __all__ = [] | CODE |
| LOW | modules/gapi/misc/python/package/gapi/__init__.py | 1 | __all__ = ['op', 'kernel'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …es/gapi/misc/python/test/test_gapi_sample_pipelines.py | 582 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 3rdparty/openexr/IlmImf/ImfArray.h | 51 | // Usage example: | COMMENT |