I want to detect faces on camera previews. I saw this example in OpenCV samples:
@Override protected Bitmap processFrame(VideoCapture capture) { capture.retr
480+240 (as height) results from YUV 420 format.
this format has Y-plane with 480x320, U and V plane with each 0.5*resolution of Y plane (lookup YUV formats for details). As all 3 Planes of one Frame are stored in one Image, you have to allocate enough Space.