OpenCV wrapper for .NET
This report summarizes scanner evidence for shimat/opencvsharp, a C# project with 6,114 GitHub stars. SynthScan examined 223,110 lines of code across 1451 source files, recording 1312 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 6.1 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1286 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 26 finding(s).
Which changes need focused human review? 1312 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1312 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/docker/manylinux/build_static_deps.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | packaging/docker/manylinux/build_static_deps.sh | 21 | mkdir -p "${BUILD_DIR}" "${INSTALL_PREFIX}" | COMMENT |
| LOW | test/OpenCvSharp.Tests/superres/SuperResTest.cs | 61 | // Note: SuperResolution.NextFrame is deliberately not tested here. Calling it with | COMMENT |
| LOW | test/OpenCvSharp.Tests/dnn/ModelTest.cs | 1 | using System.Runtime.InteropServices; | COMMENT |
| LOW | .devcontainer/manylinux/build_extern.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .devcontainer/manylinux/devcontainer.json | 1 | // Dev container that reproduces the manylinux_2_28 CI build environment. | COMMENT |
| LOW | .github/workflows/windows.yml | 381 | shell: powershell | COMMENT |
| LOW | src/OpenCvSharpExtern/imgcodecs.cpp | 1 | #include "imgcodecs.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/shape_HistogramCostExtractor.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/my_types.h | 21 | // used ONLY as by-value parameters and return values of the extern "C" | COMMENT |
| LOW | src/OpenCvSharpExtern/my_types.h | 221 | typedef struct Vec4d { double val[4]; } Vec4d; | COMMENT |
| LOW | src/OpenCvSharpExtern/my_types.h | 481 | // ------------------------------------------------------------------------- | COMMENT |
| LOW | src/OpenCvSharpExtern/geometry.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/superres.cpp | 1 | #include "superres.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/ml.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/dnn.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/imgcodecs.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/ximgproc_EdgeDrawing.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/stitching.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/videoio.cpp | 1 | #include "videoio.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/text.cpp | 1 | #include "text.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/text.h | 121 | #endif // _WINRT_DLL | COMMENT |
| LOW | src/OpenCvSharpExtern/dnn.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/core.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/calib.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/aruco.cpp | 1 | #include "aruco.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/bgsegm.cpp | 1 | #include "bgsegm.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/xfeatures2d.cpp | 1 | #include "xfeatures2d.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/videoio.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/phase_unwrapping.cpp | 1 | #include "phase_unwrapping_PhaseUnwrapping.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/photo.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/dnn_Model.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/saliency.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/wechat_qrcode.cpp | 1 | #include "wechat_qrcode.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/quality.cpp | 1 | #include "quality.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/flann.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/optflow_gpc.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/objdetect.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/std_vector.cpp | 1 | #include "std_vector.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/video.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/line_descriptor.cpp | 1 | #include "line_descriptor.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/stereo.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/rgbd_kinfu.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/highgui.cpp | 1 | #include "highgui.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/optflow.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/dnn_TextModel.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/ptcloud.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/xphoto.cpp | 1 | #include "xphoto.h" | COMMENT |
| LOW | src/OpenCvSharpExtern/rgbd_large_kinfu.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/optflow_gpc.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/my_functions.h | 1 | // Additional functions | COMMENT |
| LOW | src/OpenCvSharpExtern/my_functions.h | 121 | # define CV_STDCALL __stdcall | COMMENT |
| LOW | src/OpenCvSharpExtern/cuda.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/shape.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/xfeatures2d_BOW.h | 1 | #pragma once | COMMENT |
| LOW | src/OpenCvSharpExtern/tracking.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/rgbd.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/img_hash.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/face.cpp | 1 | // ReSharper disable CppUnusedIncludeDirective | COMMENT |
| LOW | src/OpenCvSharpExtern/rgbd_colored_kinfu.h | 1 | #pragma once | COMMENT |
| 1191 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_photo.cs | 188 | /// manually selected (ROI), in a seamless and effortless manner. The extent of | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_video.cs | 200 | /// yielding more robust algorithm and more blurred motion field, typically poly_n =5 or 7.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 79 | /// <param name="mask"> Optional output mask set by a robust method ( CV_RANSAC or CV_LMEDS ). Note that the input m | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 111 | /// <param name="mask"> Optional output mask set by a robust method ( CV_RANSAC or CV_LMEDS ). Note that the input m | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 147 | /// <param name="mask"> Optional output mask set by a robust method ( CV_RANSAC or CV_LMEDS ). Note that the input m | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 1250 | /// USAC robust estimation framework (OpenCV 5). | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 1740 | /// <param name="maxIters">The maximum number of robust method iterations.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 1745 | /// Passing 0 will disable refining, so the output matrix will be output of robust method.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 1773 | /// <param name="maxIters">The maximum number of robust method iterations.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Cv2/Cv2_geometry.cs | 2072 | /// <param name="maxIters">The maximum number of robust method iterations.</param> | COMMENT |
| MEDIUM | …OpenCvSharp/Modules/calib/Enum/FindCirclesGridFlags.cs | 20 | /// uses a special algorithm for grid detection. It is more robust to perspective distortions but much more sensitiv | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/surface_matching/ICP.cs | 29 | /// <param name="rejectionScale">Standard-deviation coefficient used for robust outlier rejection.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/video/FarnebackOpticalFlow.cs | 27 | /// robust algorithm and more blurred motion field, typically polyN =5 or 7.</param> | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/video/VariationalRefinement.cs | 171 | /// Norm value shift for robust penalizer | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/video/DISOpticalFlow.cs | 218 | /// Norm value shift for robust penalizer | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/video/TrackerMIL.cs | 10 | /// Multiple Instance Learning avoids the drift problem for a robust tracking.The implementation is based on @cite MIL. | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/face/Facemark/Facemark.cs | 13 | /// To utilize this API in your program, please take a look at the @ref tutorial_table_of_content_facemark | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/xfeatures2d/LUCID.cs | 9 | /// about as robust as, for example, SURF or BRIEF. | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/optflow/Cv2.OptFlow.cs | 313 | /// Fast dense optical flow computation based on robust local optical flow (RLOF) algorithms and | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/optflow/Cv2.OptFlow.cs | 369 | /// Calculates a fast optical flow for a sparse feature set using the robust local optical flow (RLOF), | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/optflow/DenseRLOFOpticalFlow.cs | 6 | /// Fast dense optical flow computation based on robust local optical flow (RLOF) algorithms and | COMMENT |
| MEDIUM | …penCvSharp/Modules/optflow/RLOFOpticalFlowParameter.cs | 6 | /// Stores and sets up the parameters of the robust local optical flow (RLOF) algorithm. | COMMENT |
| MEDIUM | …penCvSharp/Modules/optflow/RLOFOpticalFlowParameter.cs | 41 | /// (least-square estimator, faster but less robust against outliers in the support region). | COMMENT |
| MEDIUM | …c/OpenCvSharp/Modules/optflow/SparseRLOFOpticalFlow.cs | 6 | /// Class used for calculating sparse optical flow and feature tracking with robust local optical flow (RLOF) algorithms | COMMENT |
| MEDIUM | …/OpenCvSharp/Modules/optflow/Enum/InterpolationType.cs | 20 | /// SLIC based robust interpolation using ximgproc::RICInterpolator. | COMMENT |
| MEDIUM | …penCvSharp/Modules/ximgproc/StructuredEdgeDetection.cs | 57 | /// The algorithm underlies this function is much more robust to texture presence, than common approaches, e.g.Sobel | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/tracking/Legacy/TrackerMIL.cs | 10 | /// background. Multiple Instance Learning avoids the drift problem for a robust tracking. | COMMENT |
| MEDIUM | …OpenCvSharp/Modules/geometry/Enum/HomographyMethods.cs | 14 | /// Least-Median robust method | COMMENT |
| MEDIUM | …OpenCvSharp/Modules/geometry/Enum/HomographyMethods.cs | 19 | /// RANSAC-based robust method | COMMENT |
| MEDIUM | …rp/Modules/geometry/Enum/RobustEstimationAlgorithms.cs | 7 | /// type of the robust estimation algorithm | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/geometry/Enum/SacMethod.cs | 5 | /// Type of the robust estimation algorithm used by <see cref="SACSegmentation"/>. | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/photo/SeamlessCloneMethods.cs | 19 | /// with the original image, is not effective. Mixed seamless cloning based on a | COMMENT |
| MEDIUM | src/OpenCvSharp/Modules/photo/SeamlessCloneMethods.cs | 46 | /// with the original image, is not effective. Mixed seamless cloning based on a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | packaging/docker/manylinux/build_static_deps.sh | 30 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | packaging/docker/manylinux/build_static_deps.sh | 45 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 16 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | .devcontainer/manylinux/build_extern.sh | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 25 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 59 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 92 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 96 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 184 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 187 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 289 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/manylinux.yml | 292 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/publish_nuget.yml | 230 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/publish_nuget.yml | 237 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 38 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 182 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 392 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/macos.yml | 394 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/copilot-instructions.md | 259 | This repo has no `PULL_REQUEST_TEMPLATE.md`, so there's no fixed checklist to fill in — but that doesn't mean invent you | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …c/OpenCvSharp/Modules/imgproc/IntelligentScissorsMB.cs | 11 | /// Usage example: | COMMENT |