"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Place and scale image using augmented reality in android

I am working on android app which do following things

  1. Opens the camera and place the user selected images over camera view
  2. on image user will play like moving image and zooming to find position
  3. App as to calculate the zooming position to real world as user zoom the image, as did in this appAugment!

some how i managed to achieve 1 and 2 things, but for third one i dont know how to calculate real world scaling to fit the object as user zoom is not happening.I appreciate your help to achieve this.

please respond to me. Thanks in advance

AlessandroB

Thu, 03/20/2014 - 11:29

Hi,

I am not sure if I fully understand what you mean, but sounds like you need to compute the distance of the camera from the target; this article explains the maths involved:

https://developer.vuforia.com/resources/dev-guide/distance-target