see http://code.google.com/p/android-opencv/wiki/camera_template