Ask Your Question

ekings419's profile - activity

2014-05-20 07:16:39 -0500 received badge  Necromancer (source)
2014-04-25 15:44:11 -0500 received badge  Supporter (source)
2014-04-25 15:43:58 -0500 answered a question Camera distorted on android 4.4.2

I recently had the same problem. I am using a Galaxy S2 as well, running Android 4.2.2 (from CyanogenMod). I had OpenCV 2.4.5 running okay. This problem showed up when I upgraded to OpenCV 2.4.7. After looking at the source code diff, I found the problem.

In JavaCameraView.java (line 149),

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH){
    params.setRecordingHint(true); //This line is breaking the preview

}

If you change this to params.setRecordingHint(false), or remove it altogether, the preview works again.