Ask Your Question
4

[yes or no question] Is it possible to use the gpu module using the new Java bindings ?

asked 2013-04-01 02:19:38 -0500

basheer gravatar image

updated 2013-04-01 03:32:43 -0500

Andrey Pavlenko gravatar image

Background: I've spent days figuring out ways to fix errors while compiling openCV in the new java bindings thing (I'm on 32-bit Ubuntu 10.04). I finally managed to get openCV 2.4.9 to compile using cmake (with no errors) with all the needed modules (java, gpu, python etc.) and with CUDA enabled. After the whole thing builds (again, no errors), I create an Eclipse project (all according to the tutorial here), and I can use the core modules and others (the example code runs fine). HOWEVER, I can't use the gpu module at all (it doesn't show up when I try to import it).

Summary: Once again, I used the WITH_CUDA=ON flag when I did cmake (and I checked the output, and it did actually build and create folders and .o and .a files for gpu stuff, but it never created the .java files for the gpu module, and so I can't access the gpu module in Java).

So, my question is: Is it even possible to use the gpu module using the new Java bindings? Or is there some sort of limitation with this new Java bindings thing? (I really have no idea) If it is possible, then I must be doing something wrong (I might open another question to solve that). But I'd first like to know whether it is possible or not.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-01 03:29:01 -0500

Andrey Pavlenko gravatar image
  1. Java bindings are NOT generated for the gpu module.
  2. version 2.4.9 means you're working with the master git branch, I suggest you use the 2.4 branch instead since it's more stable.
edit flag offensive delete link more

Comments

Thanks for your answer. Is there any way I can use the gpu module using the Java bindings? Would I have to write my own JNI stuff? Is there anyone currently working on this (perhaps I could help instead of working alone)?

basheer gravatar imagebasheer ( 2013-04-01 15:09:12 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-01 02:19:38 -0500

Seen: 326 times

Last updated: Apr 01 '13