The following issues were found

platforms/winpack_dldt/package-tests/test_dnn_backends.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import sys
print(sys.version_info)
try:
    import cv2 as cv
    print(cv.__version__)
    print(cv.dnn.getAvailableTargets(cv.dnn.DNN_BACKEND_INFERENCE_ENGINE))
except:
    print(sys.path)
    import os

            

Reported by Pylint.

samples/android/tutorial-4-opencl/src/org/opencv/samples/tutorial4/NativePart.java
1 issues
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Design

Line: 3

              package org.opencv.samples.tutorial4;

public class NativePart {
    static
    {
        System.loadLibrary("opencv_java4");
        System.loadLibrary("JNIpart");
    }


            

Reported by PMD.

samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp
1 issues
Uninitialized variable: result
Error

Line: 283 CWE codes: 908

              {
    std::istringstream ss(Text);
    int result;
    return ss >> result ? result : 0;
}

// Converts a given float to a string
std::string FloatToString ( float Number )
{

            

Reported by Cppcheck.

samples/cpp/tutorial_code/gapi/age_gender_emotion_recognition/age_gender_emotion_recognition.cpp
1 issues
syntax error
Error

Line: 98

              // and returns a vector of ROI (filtered by a default threshold).
// Threshold (or a class to select) may become a parameter, but since
// this kernel is custom, it doesn't make a lot of sense.
G_API_OP(PostProc, <cv::GArray<cv::Rect>(cv::GMat, cv::GMat)>, "custom.fd_postproc") {
    static cv::GArrayDesc outMeta(const cv::GMatDesc &, const cv::GMatDesc &) {
        // This function is required for G-API engine to figure out
        // what the output format is, given the input parameters.
        // Since the output is an array (with a specific type),
        // there's nothing to describe.

            

Reported by Cppcheck.

samples/cpp/tutorial_code/gapi/face_beautification/face_beautification.cpp
1 issues
syntax error
Error

Line: 144

              //! [net_decl]

// Function kernels
G_TYPED_KERNEL(GBilatFilter, <cv::GMat(cv::GMat,int,double,double)>,
               "custom.faceb12n.bilateralFilter")
{
    static cv::GMatDesc outMeta(cv::GMatDesc in, int,double,double)
    {
        return in;

            

Reported by Cppcheck.

samples/cpp/tutorial_code/gapi/security_barrier_camera/security_barrier_camera.cpp
1 issues
syntax error
Error

Line: 70

              
using GVehiclesPlates = std::tuple< cv::GArray<cv::Rect>
                                  , cv::GArray<cv::Rect> >;
G_API_OP_M(ProcessDetections,
           <GVehiclesPlates(cv::GMat, cv::GMat)>,
           "custom.security_barrier.detector.postproc") {
    static std::tuple<cv::GArrayDesc,cv::GArrayDesc>
    outMeta(const cv::GMatDesc &, const cv::GMatDesc) {
        // FIXME: Need to get rid of this - literally there's nothing useful

            

Reported by Cppcheck.

samples/dnn/dnn_model_runner/dnn_conversion/common/test/configs/default_preprocess_config.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              BASE_IMG_SCALE_FACTOR = 1 / 255.0
PYTORCH_RSZ_HEIGHT = 256
PYTORCH_RSZ_WIDTH = 256

pytorch_resize_input_blob = {
    "mean": ["123.675", "116.28", "103.53"],
    "scale": str(BASE_IMG_SCALE_FACTOR),
    "std": ["0.229", "0.224", "0.225"],
    "crop": "True",

            

Reported by Pylint.

samples/python/tutorial_code/introduction/documentation/documentation.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              print('Not showing this text because it is outside the snippet')

## [hello_world]
print('Hello world!')
## [hello_world]

            

Reported by Pylint.

samples/winrt/ImageManipulations/common/LayoutAwarePage.h
1 issues
syntax error
Error

Line: 53

                          {
                Windows::UI::Xaml::DependencyProperty^ get();
            };
            property Windows::Foundation::Collections::IObservableMap<Platform::String^, Platform::Object^>^ DefaultViewModel
            {
                Windows::Foundation::Collections::IObservableMap<Platform::String^, Platform::Object^>^ get();
                void set(Windows::Foundation::Collections::IObservableMap<Platform::String^, Platform::Object^>^ value);
            }


            

Reported by Cppcheck.

samples/winrt/ImageManipulations/common/suspensionmanager.cpp
1 issues
syntax error
Error

Line: 38

              
namespace
{
    Map<String^, Object^>^ _sessionState = ref new Map<String^, Object^>();
    String^ sessionStateFilename = "_sessionState.dat";

    // Forward declarations for object object read / write support
    void WriteObject(Windows::Storage::Streams::DataWriter^ writer, Platform::Object^ object);
    Platform::Object^ ReadObject(Windows::Storage::Streams::DataReader^ reader);

            

Reported by Cppcheck.