Skip to content

Wrong size and aspect ratio of image targets #192

@AlessandroMulloni

Description

@AlessandroMulloni

Summarize the bug:
I am using a 600x916 pixel image as an image target, the target has wrong size and aspect ratio.
In the target manager, I specify the image width as 600.

Observed problem
When I recognise the target using cloud and I activate it in my app, the target has size
0.6000000238418579 x 0.888888955116272
and aspect ratio
0.67499998

If I manually create the image target and specify a width of 0.6, the target also has size
0.6000000238418579 x 0.888888955116272
and aspect ratio
0.67499998

Expected result
I expect the target to have size 0.6 x 0.916 and consistent aspect ratio 0.65502183.

Other observations
I only started observing this behaviour in the last few months, but it may have been there before.

Reproducible steps
Steps to reproduce the behavior:

  1. Upload an image sized 600 x 916 pixels to the target manager
  2. Detect the image with cloud and enable it as target (vuEngineCreateImageTargetObserverFromCloudObservation)
  3. Observe the target size

Alternatively:

  1. Load an image sized 600 x 916 pixels
  2. Create an image target (vuEngineCreateImageTargetObserverFromBufferConfig)
  3. Observe the target size

Affected Vuforia Engine version:
E.g. v11.1.3.

Affected platform:
We observe the issue both on iOS and Android.
The sizes reported above are from iOS.

Affected device:
The sizes reported above are from an iPhone SE.

Screenshots / Video Recordings

Affected database

Device or platform logs

Workaround

Additional comments
Maybe this is related to #184 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions