Log in or register to post comments

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 26, 2014 - 1:34pm #1

Here's the project I'm currently working on - I'm a newbie at Unity3D and the Vuforia system for Unity (yet not a newbie with AR in general).

The video of the project  

What my main concern is, that the image I uploaded was for the cover of the book as seen in the video, and the cover image is attached here.

The Vuforia Target Generator gave it 4 stars - yet I really have to go way too close to the book cover with a webcam (in unity's editor) for it to recognize the image.

Same goes for when I export the apk to android device (The LG Optimus cellphone). I understand that the cover of the book is a little glossy, but no hot-spots are visible, and i'm careful with the lighting. I'd love some feedback on:

  • Tips on how I can get better image target recognition?
  • Is Frame marker a better bet than Image target? - I havent tried frame marker as Playmaker for Unity3D does not have a script for Vuforia yet for frame marker found/lost.
  • Any general ideas on how to augment the life sized girl on the couch? - I will contact "Elecman" for advice soon. He's a member of this forum and his Unified Co-ordinate system is interesting, but I need to learn more about it (im really a noob). Thanks AlessandroB for letting me know.
  • Can I request someone for the C script to enable PersistExtendedTracking? I tried to write it, but really didnt manage. (thats why I use Playmaker for unity)

This was the code snippet AlessandroB gave in a previous forum post:

You can enable/disable the PersisteExtendedTracking option using the C# API of the ImageTracker class; you can write a script and attach it to your ARCamera, and put this code in the script:

1
2
ImageTracker tracker = TrackerManager.Instance.GetTracker<ImageTracker>();
tracker.PersistExtendedTracking ( true ); // or false, to disable it

--------------------

Kind Regards.

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 28, 2014 - 6:06am #6

You're welcome.

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 28, 2014 - 4:41am #5

Thank you!

I managed to create my first C# script, even if it's just a copy-paste :)

(For other newbies out there attempting the same, one small line needs to be fixed above.  if (!mPersistActivate) needs to be corrected to

if (!mPersistActivated)

Thanks again AlessandroB

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 28, 2014 - 3:58am #4

Can I still request for the Unity3D script to attach to the Camera prefab so that PersistExtendedTracking can be enabled?

Just create a C# script and put the code that I previously posted inside the Update() method, for example:

public class MyScript : MonoBehaviour 
{   
  private bool mPersistActivated = false;
 
  void Update()
  {
      if (!mPersistActivate) 
      {
        ImageTracker tracker = TrackerManager.Instance.GetTracker<ImageTracker>();
        tracker.PersistExtendedTracking ( true ); 
 
        mPersistActivated = true;
      }
   } 
}

 

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 28, 2014 - 3:02am #3

Thanks for the links. I have read the documents for increasing stability. I've still not had much luck, but will try on more android devices (currently using the LG Optimus 3D cell phone). and will try a better webcam.

Meanwhile the video I linked to previously was removed by Facebook as they said it contained copyright audio track., So I've uploaded to youtube

http://www.youtube.com/watch?v=dZQjbu5OeCU

Can I still request for the Unity3D script to attach to the Camera prefab so that PersistExtendedTracking can be enabled?

Kind Regards.

4 stars on my Image Tracker yet jitter on my Digital Surrogates

March 27, 2014 - 1:20am #2

Hi, 

if the image has 4 stars, detection should be quite good, but you always need to keep in mind that the camera focus plays a role, so, even if star rating is good and lighting conditions are good,   still a blurry image due to an out-of-focus condition may make detection a bit more difficult.

Also, in my experience certain webcams might be not vry good at adjusting the focus; things are usually better on device. 

I have summarized all the tips and info about enhancing the target detection in this article (which also mentions camera focus as one of the key elements to take into account):

https://developer.vuforia.com/forum/faq/how-can-i-improve-detection-and-tracking-stability

 

Log in or register to post comments