Ask Your Question

Rauluka's profile - activity

2018-11-15 11:02:42 -0600 received badge  Popular Question (source)
2016-01-20 15:07:45 -0600 received badge  Famous Question (source)
2014-09-07 09:28:01 -0600 received badge  Notable Question (source)
2014-01-08 09:07:28 -0600 commented answer Adding row to Mat in Java

Yes, that's true. Unfortunately MatOfFloat while using dump() outpust e.g. [1,2,3] and it's size 1x3, co it is confusing. I did have to transponse it first.

2014-01-08 09:04:17 -0600 received badge  Supporter (source)
2014-01-08 09:04:13 -0600 received badge  Scholar (source)
2014-01-07 15:39:01 -0600 asked a question Adding row to Mat in Java

I have a problem with adding rows to Mat. I use push_back method but I get error: Sizes of input arguments do not match. Of course my Mats have same column length as it is said in method description.

Mat test = new Mat(new Size(10,100),5);
Mat row = new Mat(new Size(1,100),5);
test.push_back(row);

^It will result in error which I described above. Do you have any ideas how insert a row to a matrix?

2013-12-17 12:32:06 -0600 received badge  Popular Question (source)
2013-11-12 17:42:53 -0600 commented question HOG compute jni error

A minute ago I checked that it falls when I have image files and folder in the same input folder(with samples) so it seems that is the issue (my bad). Thank you for your quick answer:)

2013-11-12 17:27:16 -0600 commented question HOG compute jni error

As you wish ^ These are standard parameters for HOG. I tried different combinations of parameters but I stillget jni error.

2013-11-12 17:25:28 -0600 received badge  Editor (source)
2013-11-12 16:58:10 -0600 asked a question HOG compute jni error

I use java version of opencv and I want to compute HOG by using hog.compute. The problem is that I get: java.lang.Exception: Unknown exception in JNI code {objdetect::compute_10()} at org.opencv.objdetect.HOGDescriptor.compute_0(Native Method)

I would be grateful if someone could help.

The code:

protected void computeFeature(Mat imgSample,
        HashMap<String, Double> features, Mat mask) {

    HOGDescriptor hog = new HOGDescriptor(new Size(128, 64), new Size(16,
            16), new Size(8, 8), new Size(8, 8), 9, 0, -1,0, 0.2, false, 64);

    Imgproc.resize(imgSample, imgSample, new Size(128, 64));
    MatOfFloat z = new MatOfFloat();

    hog.compute(imgSample, z);

}
2013-06-02 21:19:48 -0600 received badge  Student (source)
2013-03-28 18:33:55 -0600 commented answer Desktop Java - how to load video file?

It would be nice if more Highgui package method were implemented in Java version. It is quite irritating (and not very efficient) when you have to use other libraries and solutions to make it work.

2013-03-28 09:37:09 -0600 commented answer Desktop Java - how to load video file?

It seems it's the only way to do it. Thanks for your time:)

2013-03-28 09:20:26 -0600 commented answer Desktop Java - how to load video file?

You can't pass parameter of a different type in Java. Method open is not applicable for String type parameter, it won't compile. That's the problem of this package;/ I can read camera input, get frames, save them etc. But still can't open a video file;/

2013-03-28 08:50:31 -0600 commented answer Desktop Java - how to load video file?

oc I read this example, but there is no method that takes a filename, stream as a parameter. Method open takes only int id, and it's a device id (camera). If you managed to open a video file using this package I would be grateful for example.

2013-03-28 08:21:51 -0600 commented answer Desktop Java - how to load video file?

Thanks for reply:) I have found VideoCapture package, but it doesn't have method (like cvCapturefromAvi), you can only open a stream from a camera (method takies int parameter of a device, not a file name). If I misunderstood something I' sorry;)

2013-03-28 07:42:10 -0600 asked a question Desktop Java - how to load video file?

I'm trying to load video file using desktop Java opencv, but it seems VideoCapture and other packages doesn't have appropriate methods. Do you have some ideas how to load video file?