Ask Your Question
1

ShapeContext Java OpenCV 3.0.0

asked 2013-12-17 16:19:07 -0600

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?

edit retag flag offensive close merge delete

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 ( 2013-12-17 16:55:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-19 06:00:59 -0600

berak gravatar image

updated 2013-12-19 06:03:23 -0600

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.

edit flag offensive delete link more

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 ( 2013-12-26 03:32:58 -0600 )edit

Question Tools

Stats

Asked: 2013-12-17 16:19:07 -0600

Seen: 616 times

Last updated: Dec 19 '13