From 770c69a9786bd7699c0ef950f9d3373da4f8c70a Mon Sep 17 00:00:00 2001 From: Jcrist99 Date: Thu, 6 Oct 2016 16:48:26 +0400 Subject: [PATCH] =?UTF-8?q?fix=20for=20feature2d=20java=20wrappers=20as=20?= =?UTF-8?q?described=20in=20this=20post:=20http://ans=E2=80=A6=20(#7372)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix for feature2d java wrappers as described in this post: http://answers.opencv.org/question/101675/surfsift-java-wrapper-for-opencv-3xosx-1011/ * fix for feature2d java wrappers as described in this post: http://answers.opencv.org/question/101675/surfsift-java-wrapper-for-opencv-3xosx-1011/ * rollback of one change as requested (similar change already merged) --- modules/java/generator/gen_java.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/java/generator/gen_java.py b/modules/java/generator/gen_java.py index 425659c2fe..c9b7423026 100755 --- a/modules/java/generator/gen_java.py +++ b/modules/java/generator/gen_java.py @@ -807,6 +807,8 @@ class ClassInfo(GeneralInfo): self.imports.add("java.util.List") self.imports.add("java.util.ArrayList") self.addImports(ctype.replace('vector_vector', 'vector')) + elif ctype.startswith('Feature2D'): + self.imports.add("org.opencv.features2d.Feature2D") elif ctype.startswith('vector'): self.imports.add("org.opencv.core.Mat") self.imports.add('java.util.ArrayList')