Ask Your Question
1

ShapeContext Java OpenCV 3.0.0

asked Dec 17 '13

luca.poddigue gravatar image

I've cloned the OpenCV repository and compiled the library on Windows. msbuild correctly generates the jar package and the dll file. Yet, after setting the build path in Eclipse, I can't find any class related to Shape Context. According to the related documentation, I should have to find ShapeDistanceExtractor or ShapeContextDistanceExtractor. My problem or have to wait for the official release?

Preview: (hide)

Comments

hmm, checked opencv-300.jar here, seems you're right . none of the classes from the (new) shape module in there (whole module seems to be missing)

berak gravatar imageberak (Dec 17 '13)edit

1 answer

Sort by » oldest newest most voted
1

answered Dec 19 '13

berak gravatar image

updated Dec 19 '13

just found out, that the shape module is missing in the cmake step already

i think, there's a simple solution to it:

open opencv/modules/java/cmakelists.txt, the module list is in line 9, append opencv_shape at the end,

then rerun cmake and recompile.

this worked for me, but if you can, - please report back, so we can solve the issue / make a pr.

Preview: (hide)

Comments

@luca, sorry for being misleading before.

looking at shape+Shape.java, you'll see that all the create* functions should have been there, but they were not generated.

(because they were returning Ptr<Something> in c++, and the java wrapper can't handle it.)

so again, above fix won't work, and the shape module was probably left out intentionally.

berak gravatar imageberak (Dec 26 '13)edit

Question Tools

Stats

Asked: Dec 17 '13

Seen: 648 times

Last updated: Dec 19 '13