Finding webcam's ax resolution and aspect ratio
Hello,
I am displaying webcam preview to the user and then allowing them to take their own photos.
I have used Camera class for this. Everything is working fine except that I am unable to find the maximum resolution supported by the camera for video and stills.
For my purpose of face recognition, it is important to capture the photos at the highest possible resolution supported by the webcam hardware. I have searched forums and tried different approaches but was unable to find a solution for finding the cameras highest resolution.
Also, another issue associated to this what I face is that, since I am unable to get the camera's resolution. I am also not able to get the camera's aspect ratio.
Since different webcams are in different aspect ratio's these days, when I try to display it into a predefined box, the video and the captured image output are either stretched or skewed.
Please suggest me a solution for this problem
Thanks for your help,
Iyyappan
