Initializing ofVideoGrabber to best available resolution


How could I initialise ofVideoGrabber to best resolution for selected camera.
Or how could I print all camera devices available resolution list.

I tried through grabber.listDevices()[i].formats. But formats vector is empty.



I am having this issue with the iPad camera.
I can’t initialize the ofVideoGrabber with the native 2592x1936 resolution.
Also when using the full HD 1920x1080 (is not supporting any other than 1280x720) is not the same image quality and frame size. ( I mean it only shows a fraction of all the frame/field of view showed on the native iOS camera.)