Ask Your Question

walter88's profile - activity

2013-01-21 07:56:08 -0600 commented answer create a waiting time

thanks, but i'm using java

2013-01-21 04:27:51 -0600 asked a question create a waiting time

this is my bitmap:

protected Bitmap processFrame(VideoCapture capture) { capture.retrieve(mRgba, Highgui.CV_CAP_ANDROID_COLOR_FRAME_RGBA); capture.retrieve(mGray, Highgui.CV_CAP_ANDROID_GREY_FRAME);

        if (mCascade != null) {
            int height = mGray.rows();
            int faceSize = Math.round(height * FdActivity.minFaceSize);
            //int faceSize = 40;
            MatOfRect faces = new MatOfRect();
            mCascade.detectMultiScale(mGray, faces, 1.1, 2, 2 // TODO: objdetect.CV_HAAR_SCALE_IMAGE
                    , new Size(faceSize, faceSize), new Size());




            Rect[] e = faces.toArray();
            for( int i=0; i<e.length;i++){
                     Core.rectangle(mRgba, e[i].tl(), e[i].br(), new Scalar(0, 255, 0, 255),3);

            }
         }// parentesi primo if


        //uscita
        Bitmap bmp = Bitmap.createBitmap(mRgba.cols(), mRgba.rows(), Bitmap.Config.RGB_565/*.ARGB_8888*/);


   try {
            Utils.matToBitmap(mRgba, bmp);
            return bmp;
        } catch(Exception e) {
            Log.e("org.opencv.samples.puzzle15", "Utils.matToBitmap() throws an exception: " + e.getMessage());
            return null;
        }
    }

I want to wait 5 seconds to copy the rectangle e[i] and work with him, how can I do? thanks.

2013-01-18 08:38:38 -0600 received badge  Supporter (source)
2013-01-18 02:39:18 -0600 asked a question how can I use only the back camera with VideoCapture?

hello I'm realizing the face detection with opencv4android, but I want to use only the back camera how can I do? Thank you.

2013-01-17 08:57:10 -0600 answered a question estimate the value of the luminance (the amount of light) from the camera with openCV

How did you use the back camera?

2013-01-17 04:03:35 -0600 commented question estimate the value of the luminance (the amount of light) from the camera with openCV

How did you use the back camera?