In my App, i open the native android camera and i render the preview on a TextureView, and what i want to do next is, to take each frame from the camera and perform some processing and operations using OpenCV library.
I also referred to some posts here Android decode Bitmap from Camera Preview , how to get RGB values of bitmap in android , How to capture preview image frames from Camera Application in Android Programming?
but i donot know to which format i should convert the retrieved frames especially that i want to use it in opeCV as i said earlier, also which format yields good performance, should i convert them into YUV, JPEG or NV21?
update
the reason why i want to use native android camera and then convert the frames retrieved from the camera to another format applicable to openCV is,when i used CvCameraViewListener2, there are always a black area surrounds the camera preview as shown below in the picture and i could not get rid of it so i decided to use the native android camera instead
image: