Log in or register to post comments

Target image width in .xml not what we entered.

May 17, 2013 - 2:27pm #1

Vuforia SDK Version: 2.0.32 (iOS), 2.0.31 (Android) -

Description with steps to reproduce:

Hello - we recently uploaded a JPEG, and supplied a correct width, and got back a target with the input value applied to the height, and an incorrect width, which made our 3D object too big.

The original JPEG file (produced by Photoshop on a Mac) was 720w x 1080h (in pixels) and the physical target is a sign that is approximately 24 inches wide by 36 inches tall.

In the Target Manager, we entered a width of 610 (in mm), which is acceptably close to 24".

The resulting .xml file contained the following:


<?xml version="1.0" encoding="UTF-8"?>
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">
    <ImageTarget size="406.666656 610" name="(REDACTED)" />
This appears to have applied our desired width to the height instead, and manufactured a width (406.67mm) that is too small.  Since that information is used to create the modelviewmatrix, our 3D objects are now unacceptably large.
I have opened up the .dat file and took a look at the embedded JPEG - it has the correct aspect ratio.  The .info file has the following contents:
<?xml version="1.0" encoding="UTF-8"?>
  <TargetSet version="1.1">
    <ImageTarget name="(REDACTED)" version="1.1" targetId="9bbeb1835e424f4e80b1f14292ec6420">
        <UnpaddedImage size="213 320"/>
... so at least that file has things correctly oriented.
The target ID is 9bbeb1835e424f4e80b1f14292ec6420
We reuploaded the same target and got the same result.
Unfortunately, we just deployed this in an app for a very high-profile client and we look pretty stupid right now.

Are we confused about the interpretation of "width"?



Development OS (Mac OS X, Windows, Linux): Mac OSX -

Mobile OS and Version: iOS 6.1.3 -

Mobile Device Manufacturer and Model name: Apple iPhone, iPad, iPod Touch -

Do the Vuforia Sample Applications show the same behavior?:

Target image width in .xml not what we entered.

May 17, 2013 - 2:48pm #2

Please see my PM.

Log in or register to post comments