Search Unity

Extended Tracking doesn't work with object target

Discussion in 'Vuforia' started by KillerBeePers, Aug 1, 2018.

  1. KillerBeePers

    KillerBeePers

    Joined:
    Aug 1, 2018
    Posts:
    7
    Hello everyone,

    I'm making an app using Vuforia 7.2.24 and Unity 2018.1.7f1, where I track an object target.

    The object has 69 points. The scene works but each time the tracker is lost, the camera position is reset.

    Device Tracker is enabled, with the tracking mode set to "positional" and the fusion mode set to "optimize for image target and Vumarks"

    Extended tracking works when I use Image target as tracker.

    Any solutions ?
     
  2. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    266
    Hello,

    There are many factors that can affect the tracking performance of a Object Target, both during the scanning process and when running an app. Most issues with Object Targets can be traced to the creation of the .od file using the Vuforia Object Scanner. Be sure to follow the scanner app instructions: https://library.vuforia.com/articles/Training/Vuforia-Object-Scanner-Users-Guide, paying close attention to step #8 in the article.
    • When creating the .od file, was the model scanned in an environment that was free of background details which may have introduced features that were not part of the model? Scanning in 'cluttered' environments can introduce false detection/tracking points.
    • When creating the .od file, were there any specular reflections on the model introduced by environmental lighting? Scanning objects that have reflective surfaces under direct lighting can introduce areas with no detection/tracking points.
    • Are you using the recommended devices referenced on the tool download page?: https://developer.vuforia.com/downloads/tool
    In our labs, we utilize four primary strategies for creating an optimal Object Target scanning environment:
    1. All background surfaces are colored at 18% gray. An easy, off-the-shelf solution is to buy bed sheets near this color and drape everything in the environment that could be seen by the scanning device's camera.
    2. No direct lighting. We use light boxes and/or diffusers to eliminate direct lighting upon the object and minimize any spectral reflections.
    3. Utilize a 360 turntable to re-orient the device. This is especially helpful when you've set your environment to near ideal conditions within a limited area. You can spin the model and scan in 360 degrees without having to move around it.
    4. Be sure that the environment in which you’re testing (via the Object Scanner app ‘test mode’) is the same in which you’re verifying tracking (via the sample code). Environmental factors such as lighting, shadows, spectral reflections, etc. can negatively affect tracking performance, so awareness of how the environment is interacting with your model is important for qualifying performance.
    The low number of keypoints (69) from the scanning phase is concerning for performance. We advise that objects should have 150+ keypoints for best performance.

    Thanks,

    Vuforia Engine Support
     
  3. KillerBeePers

    KillerBeePers

    Joined:
    Aug 1, 2018
    Posts:
    7
    After several tests, I think I am undestanding more the problem. My app is for iOS, and precisely an iPad Pro.
    When I move the iPad, the camera loses the focus of my target, image becomes blurry, iPad stop moving, then focus succeded. When I tested the app on an Android device, the focus is not lose everytime I move a littlemy device.

    is it possible that the unfocus of the camera breaks the extended tracking (not enough environment information to use) ?
     
  4. KillerBeePers

    KillerBeePers

    Joined:
    Aug 1, 2018
    Posts:
    7
    My real problem isnt the lost of the target, but why the extended tracking doesn't let my 3D scenes in the same place than before. I have another project with Vuforia, with the same Unity and Vuforia version, and the postion tracker works without problem.
     
  5. KillerBeePers

    KillerBeePers

    Joined:
    Aug 1, 2018
    Posts:
    7
    I resolved my problem.
    I rescan my target to get a better scan result. Now all my targets have more than 200 points.
    This increase the tracking quality.

    But the real problem was the scale of my scene. I used meters rather than centimeters to define the width of each Object target behaviour ( width set to 19 rather than 0.19). This seems to break the positioning tracking. After correcting this, my target worked correctly. Thanks Meedabit for your useful information.
     
  6. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    266
    Hello @KillerBeePers,

    Glad to hear you resolved the issue.

    Good luck,
    Vuforia Engine Support