I am getting an image using getImage() from QCAR::Frame on an iPhone4/4S, but the only size is I get from that is 480 X 360 which is strange because iPhone resolution (off retina) is 480x320. Is there a way to get a full screen image inside EAGLView - (i.e. 480x320 OR 960 x 640)? (I'm using FrameMarkers sample as the base).
- Sort Posts
- 3 replies
- Last post
Size of image from Frame getImage()
August 24, 2012 - 7:23am #3
Size of image from Frame getImage()
July 6, 2012 - 9:28am #2
hi putitout
This came up before:
https://ar.qualcomm.at/content/size-image-frame-getimage
As Kim mentioned you can experiment with MODE_DEFAULT or MODE_OPTIMIZE_QUALITY to see if it makes any difference.
However regarding the 480*360 size - this is one of the defined set of camera image sizes that is provided by iOS.
If you look at configureVideoBackground() in QCARUtils.mm
...this shows how the QCAR samples adjust for the image size by cropping top/bottom or left/right depending on orientation.
In most cases using this type of image size should be sufficient for tracking and most likely be better for performance.
HTH
N
This is not a bug, more likely just the way it is.
Vuforia does not guarantee an image size even though you can provide it hints as you have specified.
N