Ask Your Question

agile's profile - activity

2020-09-30 12:19:00 -0600 received badge  Famous Question (source)
2018-12-12 11:34:16 -0600 received badge  Popular Question (source)
2018-04-23 07:29:07 -0600 received badge  Notable Question (source)
2016-12-02 22:48:51 -0600 received badge  Notable Question (source)
2016-09-21 15:26:59 -0600 received badge  Notable Question (source)
2016-09-21 15:26:59 -0600 received badge  Popular Question (source)
2015-11-17 01:16:34 -0600 received badge  Popular Question (source)
2015-11-16 09:20:02 -0600 received badge  Popular Question (source)
2013-08-18 12:53:43 -0600 asked a question OpenCv for Android: camera not working on motorolla.

I developed a face recognition application which is working on Samsung Galaxy S2 but it shows black screen on Motorola device, when the camera is activated. I did some research, and I found that Motorola devices use some other container for camera. Anyone has experience such issue? Any idea how to solve this problem. BTW I am using OpenCV for Android SDK 2.4.5.

2013-08-18 12:47:02 -0600 answered a question Mat to String and back in OpenCV4Android

I solved the problem by using the getCVmat of model to extract the Matrix at specific location and then .toString() of CVmat to extract the content of matrix as string. I save the string into database. For Matching, I retrieve the String, converted the string into float array by splitting the string and casting it to float. The values are then putted into new Matrix using Mat.put(0,0,float[]).

2013-08-18 12:39:25 -0600 received badge  Editor (source)
2013-08-18 12:37:50 -0600 answered a question Converting Mat to IplImage in Java

I solved the problem by Converting Mat to Bitmap and then Bitmap to IplImage. There is a mehtod available in OpenCV for Android for coverting Mat to Bitmap and in JavaCV for converting Bitmap to IplImage.

2013-05-28 07:26:47 -0600 asked a question how to use cvsetReal2D

I am converting Mat into iplImage in Java. I found a solution in C. It uses cvSetReal2d to populate IplImage from Mat. I read about the function but i have some confusions. What is meant by "The first zero-based component of the element index" , The second zero-based component of the element index"?

2013-05-27 09:37:31 -0600 commented answer convert mat to iplimage

@elmiguelao: Can you provide the java equivalent of this code?

2013-05-26 11:31:02 -0600 asked a question Converting Mat to IplImage in Java

How can I convert Mat image to IplImage using Opencv4 android / javacv. I am using opencv for face detection but I need javacv for face recognition. and the face recognizer class require CvArr/IplImage as an input for the train method.

2013-05-24 08:34:43 -0600 commented question Mat to String and back in OpenCV4Android

yes, I am trying to split the string into string array and converting each sub string into double. After I can use the Mat.put(0,0, double) for filling the matrix. and that could be the possible solution.

2013-05-24 05:37:02 -0600 commented question Mat to String and back in OpenCV4Android

I want to send the string to another application and save it in database. The application can only accept it as a string. Now I can convert it to a string by first using the getCVmat of model to extract the Matrix at specific location and then .toString() of CVmat to extract the content of matrix as string. But now I want to convert this string to OpenCV4android Mat type.

2013-05-24 04:02:12 -0600 asked a question Mat to String and back in OpenCV4Android

I am doing face recognition using opencv4android and JavaCV.

I did the face detection in OpenCV and created the LBP histogram through JavaCV Face Recognizer class. Now I want to save this histogram in a database.

The histogram itself is in the Matvector type, considering I am saving the model into an xml file using the model.save() method. Then I parse the xml and take the histogram into string.

I want to use opencv4android method compareHist(Mat,Mat,int) for comparison so I need to convert this string back to Mat.

How can i do it using OpenCV4andorid?

2013-05-15 08:19:30 -0600 asked a question Face Recognizer in Android SDK

Hi how can I use the Face recognizer in OpenCV android SDK. I want to do face recognition in Android using OpenCV Android SDK.

2013-04-22 07:05:28 -0600 commented answer Computing LBP Histogram in OpenCV

I am using OpenCV Android SDK. I don't see the mentioned folders.

2013-04-22 05:53:59 -0600 commented answer confidence value and threshold in opencv

Thanks. I am doing it for android and using JavaCV. But I don't know if it source is available in JavaCV. But I can write my own predict method. i just need comareHist which is available in android opencv and javacv as well.

2013-04-22 05:18:16 -0600 received badge  Scholar (source)
2013-04-21 08:21:44 -0600 commented answer confidence value and threshold in opencv

if confidence is the distance between test and the closest it means it is the distance return by CompareHist. i.e "dist" in the code: double dist = compareHist(_histograms[sampleIdx], query, HISTCMP_CHISQR);

If that is the case, then why the dist is compared with minDist (which is confidence value). if((dist < minDist) && (dist < _threshold)) {..}

2013-04-21 08:06:35 -0600 received badge  Supporter (source)
2013-04-21 07:32:27 -0600 asked a question confidence value and threshold in opencv

What is the difference between "confidence" value in Face Recognizer predict method and "threshold" in model consrtuctor?

I want to just grab the LBP histogram from the source image and compare it with the previous stored LBP Histograms and I want a probabilistic match. Like top three matches. I am presently grabbing the LBP Histogram through train method and I want a set of distances from the predict method not just a single predicted label.

Thanks

2013-04-16 08:38:59 -0600 received badge  Student (source)
2013-04-16 07:58:43 -0600 asked a question Computing LBP Histogram in OpenCV

I am doing face recognition in android using JAVACV and OpenCV SDK for android. I used the sample code of face detection that comes with OpenCV android SDK. Now I want to move to face recognition. I want to compute the LBP Histogram of the detected face and store it in the database which will be later matched using Chi-square with other histogram. The Face recognizer class in OpenCV has train and predict method which are not publicly exposed. Does the train method compute the Histogram of the image? How can I compute the LBP Histogram using the face recognizer class?