Ask Your Question

intrasight's profile - activity

2013-12-01 18:57:06 -0600 asked a question Error running Scala demo in 2.4.7 on Windows (continued)

I commented out in main.scala the one which didn't work //ScalaCorrespondenceMatchingDemo.run() and ran again. But now get the results below. Has anyone been successful with the Scala demos on Windows?

Running ScalaDetectFaceDemo Detected 0 faces Writing scalaFaceDetection.png libpng warning: Image width is zero in IHDR libpng warning: Image height is zero in IHDR libpng error: Invalid IHDR data [error] (run-main) java.lang.AssertionError: assertion failed java.lang.AssertionError: assertion failed at scala.Predef$.assert(Predef.scala:165) at ScalaDetectFaceDemo$.run(ScalaDetectFaceDemo.scala:41) at Main$delayedInit$body.apply(Main.scala:21) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:309) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at Main$.main(Main.scala:14) at Main.main(Main.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) [trace] Stack trace suppressed: run 'last compile:run' for the full output. java.lang.RuntimeException: Nonzero exit code: 1 at scala.sys.package$.error(package.scala:27) [trace] Stack trace suppressed: run 'last compile:run' for the full output. [error] (compile:run) Nonzero exit code: 1 [error] Total time: 1 s, completed Dec 1, 2013 7:47:45 PM

2013-12-01 18:50:16 -0600 asked a question Error running Scala demo in 2.4.7 on Windows

See output below. Any ideas?

Running ScalaCorrespondenceMatchingDemo There were 0 KeyPoints detected 0 descriptors were extracted, each with dimension 0 There were 0 KeyPoints detected 0 descriptors were extracted, each with dimension 0 OpenCV Error: Assertion failed (!outImage.empty()) in unknown function, file E:\programs\opencv-2.4.7\modules\features2d\src\draw.cpp, line 115 [error] (run-main) CvException [org.opencv.core.CvException: cv::Exception: E:\programs\opencv-2.4.7\modules\features2d\src\draw.cpp:115: error: (-215) !outImage.empty() [error] ] CvException [org.opencv.core.CvException: cv::Exception: E:\programs\opencv-2.4.7\modules\features2d\src\draw.cpp:115: error: (-215) !outImage.empty() ] at org.opencv.features2d.Features2d.drawMatches_1(Native Method) at org.opencv.features2d.Features2d.drawMatches(Features2d.java:222) at ScalaCorrespondenceMatchingDemo$.run(ScalaCorrespondenceMatchingDemo.scala:64) at Main$delayedInit$body.apply(Main.scala:20) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.App$$anonfun$main$1.apply(App.scala:71) at scala.collection.immutable.List.foreach(List.scala:309) at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32) at scala.App$class.main(App.scala:71) at Main$.main(Main.scala:14) at Main.main(Main.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) [trace] Stack trace suppressed: run 'last compile:run' for the full output. java.lang.RuntimeException: Nonzero exit code: 1 at scala.sys.package$.error(package.scala:27) [trace] Stack trace suppressed: run 'last compile:run' for the full output. [error] (compile:run) Nonzero exit code: 1 [error] Total time: 15 s, completed Dec 1, 2013 7:05:59 PM

2013-11-30 23:14:45 -0600 commented answer opencl performance test

I set the env var "OPENCV_OPENCL_DEVICE" to "AMD:GPU:1" and now I get an error when I run the OpenCV-CLIntro sample ERROR: Required OpenCL device not found, check configuration: AMD:GPU:1

The documentation on this env var is sort of cryptic. Are there more complete examples available? What is wrong with the value I have set?

2013-11-29 20:05:48 -0600 commented answer opencl performance test

I guess what I am asking is how to verify that OpenCV is using the OpenCL module. And also, is it necessary to set the environment variable OPENCV_OPENCL_DEVICE for OpenCV to use the OpenCL module?

2013-11-24 23:18:59 -0600 commented question opencl performance test

Had also meant to ask this. The doc says to add the environment variable OPENCV_OPENCL_DEVICE. MUST one set that env. var. to get OpenCL?

2013-11-24 23:11:26 -0600 asked a question opencl performance test

I've compiled OpenCV 2.4.7 with OpenCV support. Am using an AMD V5900.
I want to do some OpenCV tests. I'm not sure how to test/verify that OpenCL is being used. I ran perf and test and got these results:

opencv_test_ocl.exe 244 FAILED TESTS YOU HAVE 2 DISABLED TESTS

opencv_perf_ocl.exe 40 FAILED TESTS YOU HAVE 4 DISABLED TESTS

The only comparison sample I saw was ocl-example-squares.exe. It report this: cpp average time: 66.0707ms ocl average time: 90.9966ms How is that to be interpreted? What is the best way to measure/report the difference in performance between the CPU and GPU?

Thanks, Chris