Skip to content

Generation of getter and setter for the DetectorParameters.cornerRefinementMethod property is skipped during Java wrapper generation. #23700

@utibenkei

Description

@utibenkei

System Information

OpenCV version: 4.7.0
Operating System / Platform: Windows 10 22H2
Compiler & compiler version: CMake 3.24.3

Detailed description

The creation of the get_cornerRefinementMethod() and set_cornerRefinementMethod (int cornerRefinementMethod) methods are skipped when the Java wrapper is generated. This problem has occurred since opencv 4.7.0. It appears that opencv4.6.0 and opencv4.7.0 have changed the type of the cornerRefinementMethod variable.

opencv4.6.0
https://github.com/opencv/opencv_contrib/blob/4.6.0/modules/aruco/include/opencv2/aruco.hpp#L185
opencv4.7.0
https://github.com/opencv/opencv/blob/4.7.0/modules/objdetect/include/opencv2/objdetect/aruco_detector.hpp#L109

The following code is the Java code generated for each of these versions.

opencv4.6.0

    //
    // C++: int DetectorParameters::cornerRefinementMethod
    //

    public int get_cornerRefinementMethod() {
        return get_cornerRefinementMethod_0(nativeObj);
    }


    //
    // C++: void DetectorParameters::cornerRefinementMethod
    //

    public void set_cornerRefinementMethod(int cornerRefinementMethod) {
        set_cornerRefinementMethod_0(nativeObj, cornerRefinementMethod);
    }

opencv4.7.0

    //
    // C++: CornerRefineMethod DetectorParameters::cornerRefinementMethod
    //

    // Return type 'CornerRefineMethod' is not supported, skipping the function


    //
    // C++: void DetectorParameters::cornerRefinementMethod
    //

    // Unknown type 'CornerRefineMethod' (I), skipping the function

Steps to reproduce

Build with the BUILD_opencv_java_bindings_generator flag ON.

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions