From 0fe30d84d00ea32a2c052e1a7e27ec1b64aa5a78 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 17 Jul 2023 12:26:44 +0300 Subject: [PATCH] Added Java bindings for dnn_superres module. --- modules/dnn_superres/CMakeLists.txt | 4 ++-- .../misc/java/test/DnnSuperresTest.java | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 modules/dnn_superres/misc/java/test/DnnSuperresTest.java diff --git a/modules/dnn_superres/CMakeLists.txt b/modules/dnn_superres/CMakeLists.txt index e16f0b6d41..a3bba2f6de 100644 --- a/modules/dnn_superres/CMakeLists.txt +++ b/modules/dnn_superres/CMakeLists.txt @@ -6,5 +6,5 @@ ocv_define_module( opencv_imgproc opencv_dnn OPTIONAL opencv_quality - WRAP python -) \ No newline at end of file + WRAP python java +) diff --git a/modules/dnn_superres/misc/java/test/DnnSuperresTest.java b/modules/dnn_superres/misc/java/test/DnnSuperresTest.java new file mode 100644 index 0000000000..710f063b5d --- /dev/null +++ b/modules/dnn_superres/misc/java/test/DnnSuperresTest.java @@ -0,0 +1,14 @@ +package org.opencv.test.tracking; + +import org.opencv.core.Core; +import org.opencv.core.CvException; +import org.opencv.test.OpenCVTestCase; +import org.opencv.dnn_superres.DnnSuperResImpl; + +public class DnnSuperresTest extends OpenCVTestCase { + + public void testCreateSuperres() { + DnnSuperResImpl sr = DnnSuperResImpl.create(); + } + +}