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')