Ask Your Question

frank's profile - activity

2018-10-02 04:56:58 -0600 received badge  Popular Question (source)
2013-08-13 02:38:54 -0600 received badge  Editor (source)
2013-08-13 02:29:37 -0600 asked a question face detection issue -- on Android

I am testing the example of openCV sample face detection with haarcascade. However, the result is not good and it almost can't detect any face. Anyone can help me to improve it?

Thanks in advance.

BTW. Android phone is Samsung s4(pixel 1920x1080).

Here is the core code:

mCascadeFile = new File(cascadeDir, "haarcascade_frontalface_alt.xml");
mJavaDetector = new CascadeClassifier(mCascadeFile.getAbsolutePath());

public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
     ....
     mJavaDetector.detectMultiScale(mGray, faces, 1.1, 2, 2, // TODO: objdetect.CV_HAAR_SCALE_IMAGE
     new Size(mAbsoluteFaceSize, mAbsoluteFaceSize), new Size());
2013-07-24 16:28:16 -0600 commented answer Help. I try to convert the opencv Mat to javacv CvMat.

Maybe I did not say clearly. CvMat is a class in JavaCV. I try to call FaceRecognizer::predict(@InputArray CvArr src), so I need to convert the OpenCV::Mat object to JavaCV::CvArr or CvMat.

2013-07-23 12:33:27 -0600 asked a question Help. I try to convert the opencv Mat to javacv CvMat.

I am writing an app on Android with Opencv. In the callback function onCameraFrame(CvCameraViewFrame inputFrame) from opencv, I want to use Javacv methods, but I don't know how to convert a Mat object to a CvMat object. Please help me. thanks.

Frank