Ask Your Question

wood's profile - activity

2015-07-20 16:15:41 -0600 received badge  Student (source)
2013-02-05 07:43:55 -0600 received badge  Taxonomist
2012-11-05 09:27:43 -0600 received badge  Editor (source)
2012-11-05 09:24:58 -0600 asked a question FaceRecognizer in opencv4android 2.4.3

Hi , everyone. I downloaded opencv4android 2.4.3 today , and saw that FaceRecognizer has bean implemented in org.opencv.contrib, but the methed createLBPHFaceRecognizer,createFisherFaceRecognizer and createEigenFaceRecognizer in Contrib are not yet implemented, so is there anyway to use FaceRecognizer to implement face recognition? How can I use FaceRecognizer.

2012-07-23 09:48:24 -0600 asked a question Camshift in android

I saw camshift is available in Vedio.java, so I want to use it. I wrote a demo like this , but it didn't work , I always get minus value from the result, can anyone help me? I just want to see if this work , so I use a simple rect rRoi, and search it in the same frame , I think the right result will be same as rRoi , but it isn't, may anyone tell me why? thank you . my english is not very well.sorry

        Imgproc.cvtColor(mRgba, mIntermediateMat, Imgproc.COLOR_RGB2HSV_FULL);
             if(mRoi==null)
        {
            rRoi = new Rect(216,289,50,50);

            mRoi = new Mat(mIntermediateMat,rRoi);
        }
        Imgproc.calcHist(Arrays.asList(mRoi), mChannels[0], mMat0, mHist, mHistSize, mRanges);
        Core.normalize(mHist, mHist, mSizeRgba.height/2, 0, Core.NORM_INF);

        Mat dst = new Mat();         
        Imgproc.calcBackProject(Arrays.asList(mIntermediateMat), mChannels[0], mHist, dst, mRanges,0);
        Rect rect1 = rRoi.clone();
        RotatedRect rect = Video.CamShift(dst, rect1, new TermCriteria(TermCriteria.EPS,10,1));
        Rect result = rect.boundingRect();