Log in or register to post comments

Size of image from Frame getImage()

July 6, 2012 - 8:11am #1

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).

Size of image from Frame getImage()

August 28, 2012 - 3:22am #4

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

Size of image from Frame getImage()

August 24, 2012 - 7:23am #3

I tried changing that to QCAR::CameraDevice::MODE_OPTIMIZE_QUALITY but nothing changed, I am still getting the same frame size, I am testing it on iPhone 4S. Is it a bug or I am doing something wrong?

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

Log in or register to post comments