Ask Your Question

ttux's profile - activity

2016-03-10 09:41:34 -0600 commented answer jvm crash on loading cascade classifier

I actually just saw that the issue is on pipe_r600.so, that's the radeon driver for my GPU. If I disable OpenCL with "export OPENCV_OPENCL_RUNTIME=qqq" then there is no problem.

2016-03-10 09:23:50 -0600 asked a question jvm crash on loading cascade classifier

Here is a core dump of when it happens: http://pastebin.com/bs7An14L

It happens on this line of code

CascadeClassifier faceDetector = new CascadeClassifier("/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml");

It used to work fine, it started to happen after upgrade of packages on my distrib I think. I believe it might be due to a native library. I rebuilt OpenCV but no luck. I also tried with OpenCV 3.0 and 3.1.

Any help will be much appreciated :-)

2015-07-30 14:46:58 -0600 received badge  Editor (source)
2015-07-30 14:35:04 -0600 answered a question Java API - Core.add() method not working!? How to add 2 Mats?

I have a similar issue I believe and I don't know why it doesn't work. Using OpenCV 3.0. I tried the following:

Mat thresholdBW = new Mat(original.rows(),original.cols(), CvType.CV_8UC1);
Core.inRange(hsv, new Scalar(0, 0, 0), new Scalar(360, 70, 70), thresholdBW);

Mat thresholdBLUE = new Mat(original.rows(),original.cols(), CvType.CV_8UC1);
Core.inRange(hsv, new Scalar(90, 90, 90), new Scalar(130, 255, 255), thresholdBLUE);

Mat threshold = new Mat(original.rows(),original.cols(), CvType.CV_8UC1);
Core.add(thresholdBW, thresholdBLUE, threshold);

thresholdBLUE and thresholdBW have what I want but then after the Core.add call, threshold is just empty. Is there something I am missing?

I found a way to get the result I want by using addWeighted:

Core.addWeighted(thresholdBW, 1, thresholdBLUE, 1, 0, threshold);

But I don't know why Core.add doesn't work.