Ask Your Question

python152's profile - activity

2013-06-06 14:09:46 -0600 received badge  Supporter (source)
2013-06-06 10:48:31 -0600 commented question Confused on the status of contrib FaceRecognizer and Java binding

this is certainly very helpful, I appreciate it.

2013-06-06 08:52:37 -0600 received badge  Student (source)
2013-06-06 08:31:08 -0600 received badge  Editor (source)
2013-06-06 08:30:42 -0600 asked a question Confused on the status of contrib FaceRecognizer and Java binding

Hello, all (and in particular the developer(s) for Java binding)

There seems to be a few questions related to using FaceRecognizer in either Desktop Java or Android environment, but I didn't see any definitive answers for it: is it simply missing or not implemented, or any plan for it? Another twist here is: the contrib/FaceRecognizer the abstract class is there, you just can't create any Eigen/Fisher/LBH recognizer.

Does any OCV developer read and help in the forum? It seems there is another Yahoo Group on OCV that is also active. I am actually confused on where and how exactly get this kind of question clarified.

Thanks for help.

Oliver

2013-05-20 21:50:55 -0600 asked a question OpenCV Tutorial 3 Camera Control issue

hi - I am running this tutorial problem on Android 4.1.2. Everything is fine except the taking picture part: the touch triggered takePicture() method, and the picture path name is reported as expected. However, the method onPictureTaken() doesn't seem run at all ... which puzzle me a great deal.

Is there any reason that this is not getting called?

The code in question are quoted as for reference:

public void takePicture(final String fileName) {
    Log.i(TAG, "Tacking picture");

    PictureCallback callback = new PictureCallback() {

        private String mPictureFileName = fileName;

        @Override
        public void onPictureTaken(byte[] data, Camera camera) {
            Log.i(TAG, "Saving a bitmap to file");
            Bitmap picture = BitmapFactory.decodeByteArray(data, 0, data.length);
            try {
                FileOutputStream out = new FileOutputStream(mPictureFileName);
                picture.compress(Bitmap.CompressFormat.JPEG, 90, out);
                picture.recycle();
                mCamera.startPreview();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    };

    mCamera.takePicture(null, null, callback);
}

Thanks

Oliver