opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.43k stars 5.76k forks source link

Missing Java Binding for dnn_superres in OpenCV 4.8.0 build #3532

Open huilam opened 1 year ago

huilam commented 1 year ago

System Information

OpenCV version: 4.8.0 Operating System / Platform: MacOS 13.4.1 (intel x86_64) Compiler & compiler version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)

Detailed description

No Java interface was created for "dnn_superres" even the "opencv-480.jar" was build successfully.

[ 28%] Copy Java(JAR) source files COPYFILES: ... 1 entries (JAVA_SRC_COPY) COPYFILES: ... directory '.../gen/java' with 163 files COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/Calib3d.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoBM.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoMatcher.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/StereoSGBM.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/calib3d/UsacParams.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Algorithm.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Core.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/CvException.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/CvType.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/DMatch.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/KeyPoint.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Mat.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatAt.kt' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatMatMul.kt' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfByte.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfDMatch.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfDouble.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat4.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfFloat6.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfInt.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfInt4.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfKeyPoint.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint2f.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint3.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfPoint3f.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfRect.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfRect2d.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/MatOfRotatedRect.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Point.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Point3.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Range.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Rect.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Rect2d.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/RotatedRect.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Scalar.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/Size.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/TermCriteria.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/core/TickMeter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/ClassificationModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/DetectionModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/DictValue.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/Dnn.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/Image2BlobParams.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/KeypointsModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/Layer.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/Model.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/Net.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/SegmentationModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/TextDetectionModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/TextDetectionModel_DB.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/TextDetectionModel_EAST.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/dnn/TextRecognitionModel.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/AKAZE.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/AffineFeature.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/AgastFeatureDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BFMatcher.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWImgDescriptorExtractor.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWKMeansTrainer.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BOWTrainer.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/BRISK.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/DescriptorMatcher.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/FastFeatureDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/Feature2D.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/Features2d.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/FlannBasedMatcher.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/GFTTDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/KAZE.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/MSER.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/ORB.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/SIFT.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/SimpleBlobDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/features2d/SimpleBlobDetector_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgcodecs/Imgcodecs.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/CLAHE.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/GeneralizedHough.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/GeneralizedHoughBallard.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/GeneralizedHoughGuil.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Imgproc.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/IntelligentScissorsMB.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/LineSegmentDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Moments.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/imgproc/Subdiv2D.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/ArucoDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/BarcodeDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/BaseCascadeClassifier.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/Board.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/CascadeClassifier.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/CharucoBoard.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/CharucoDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/CharucoParameters.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/DetectorParameters.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/Dictionary.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/FaceDetectorYN.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/FaceRecognizerSF.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/GraphicalCodeDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/GridBoard.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/HOGDescriptor.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/Objdetect.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/QRCodeDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/QRCodeDetectorAruco.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/QRCodeDetectorAruco_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/QRCodeEncoder.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/QRCodeEncoder_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/objdetect/RefineParameters.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/osgi/OpenCVInterface.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/osgi/OpenCVNativeLoader.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/utils/Converters.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractor.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractorKNN.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/BackgroundSubtractorMOG2.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/DISOpticalFlow.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/DenseOpticalFlow.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/FarnebackOpticalFlow.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/KalmanFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/SparseOpticalFlow.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/SparsePyrLKOpticalFlow.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/Tracker.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerDaSiamRPN.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerDaSiamRPN_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerGOTURN.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerGOTURN_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerMIL.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerMIL_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerNano.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/TrackerNano_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/VariationalRefinement.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/video/Video.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/VideoCapture.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/VideoWriter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/videoio/Videoio.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/AdaptiveManifoldFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/ContourFitting.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DTFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DisparityFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/DisparityWLSFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeAwareInterpolator.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeBoxes.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeDrawing.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/EdgeDrawing_Params.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/FastBilateralSolverFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/FastGlobalSmootherFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/FastLineDetector.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/GraphSegmentation.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/GuidedFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/RFFeatureGetter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/RICInterpolator.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/RidgeDetectionFilter.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/ScanSegment.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentation.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategy.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyColor.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyFill.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyMultiple.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategySize.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyTexture.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SparseMatchInterpolator.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/StructuredEdgeDetection.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelLSC.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelSEEDS.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/SuperpixelSLIC.java' ... COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/ximgproc/Ximgproc.java' ... COPYFILES: Updated! [ 28%] Built target opencv_java_jar_source_copy

REMOVED

[ 97%] Processing OpenCL kernels (superres) [ 97%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1_cuda.cpp.o [ 97%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1.cpp.o [ 97%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o [ 97%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/input_array_utility.cpp.o [ 97%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/optical_flow.cpp.o [ 98%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o [ 98%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/opencl_kernels_superres.cpp.o [ 98%] Linking CXX static library ../../lib/libopencv_superres.a [ 98%] Built target opencv_superres

Steps to reproduce

cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_SHARED_LIBS=OFF -D BUILD_ZLIB=OFF -D CMAKE_INSTALL_PREFIX=/usr/local -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.8.0/modules -DBUILD_opencv_legacy=OFF -D BUILD_LIST=core,java,imgcodec,video,videoio,feature2d,flann,calib3d,objdetect,dnn,dnn_superres,superres ..


-- OpenCV modules: -- To be built: calib3d core dnn dnn_superres features2d flann imgcodecs imgproc java objdetect optflow superres video videoio ximgproc

Issue submission checklist

berak commented 1 year ago

unfortunately, there are no java bindings generated for this module (only python)

look here: https://github.com/opencv/opencv_contrib/blob/d89b2b9bd84bb0a61a18710c2b293c8622873987/modules/dnn_superres/CMakeLists.txt#L9

asmorkalov commented 1 year ago

Transferred to opencv_contrib as module is hosted there.