How can I use the gpu.class in eclipse?

asked 2016-06-16 03:27:46 -0500

sd169048 gravatar image

updated 2016-06-16 03:42:34 -0500

I have the program code in eclipse like this:

public class TestforGPU {
    public static void main(String[] args) {

but it always output the "0" which is means that OpenCV is compiled without GPU support. My device is GTX970M,CUDA vesion is 7.5. How can I deal with it

edit retag flag offensive close merge delete


  • os / opencv version ?

  • did you build opencv libs locally ? (the windows prebuild libs come without any cuda support)

  • try a System.out.println(Core.getBuildInformation()); and tell us, what it says about gpu support

berak gravatar imageberak ( 2016-06-16 03:42:38 -0500 )edit