diff --git a/modules/core/misc/java/gen_dict.json b/modules/core/misc/java/gen_dict.json index 36b2c58e58..d1267408da 100644 --- a/modules/core/misc/java/gen_dict.json +++ b/modules/core/misc/java/gen_dict.json @@ -122,10 +122,7 @@ "}", "\n" ] - }, - "checkHardwareSupport" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] }, - "setUseOptimized" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] }, - "useOptimized" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] } + } } }, "func_arg_fix" : { diff --git a/modules/core/misc/java/test/CoreTest.java b/modules/core/misc/java/test/CoreTest.java index 42c343b2ba..c63cb23fab 100644 --- a/modules/core/misc/java/test/CoreTest.java +++ b/modules/core/misc/java/test/CoreTest.java @@ -2059,4 +2059,12 @@ public class CoreTest extends OpenCVTestCase { assertEquals(Core.VERSION, Core.getVersionString()); } + public void testHardwareOptions() { + Core.checkHardwareSupport(0); + boolean original_status = Core.useOptimized(); + Core.setUseOptimized(!original_status); + assertEquals(!original_status, Core.useOptimized()); + Core.setUseOptimized(original_status); + assertEquals(original_status, Core.useOptimized()); + } }