Simultaneous Instant Tracker and Image Tracking
Hi! I need to track image but have possibility to keep object positioned in space while away from image. Is there a way to use both trackings (image and instant) simultaneously or make smooth transition form image tracking (if image target is lost) to instant and back. Or at least from image to instant. Feature similar to extended tracking in Vuforia.
Hello.
Thanks for your interest to our SDK.
Unfortunately, we didn't support simultaneous instant and image tracking, but we provide extended tracking functionality for image tracker.
Please refer to "Changing Tracking Mode" section in the link (https://developer.maxst.com/MD/doc/andr/ex/image).
Thanks.
- MAXST Support Team
Thank You for the answer! I hope it would be planned for the future as it is a needed heavily.
Hi again.
I am trying to switch from ImageTracking to instant tracking issuing following to stop image tracking
SensorDevice.GetInstance().Stop();
TrackerManager.GetInstance().StopTracker();
TrackerManager.GetInstance().RemoveTrackerData();
And I am trying to restart it with appropriate code from InstantTrackingSample.
if (!startTrackerDone)
{
TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_INSTANT);
SensorDevice.GetInstance().Start();
startTrackerDone = true;
}
Will it do the trick? Or If Tracker is instantiated once it can not be restarted with another type of tracking?
Will then TrackerManager.GetInstance().Destroy() help in recreating it?
Hi,
Please change your code like below.
// When to stop image tracker
TrackerManager.GetInstance().StopTracker();
TrackerManager.GetInstance().DestroyTracker();
// When to start instant tracker
SensorDevice.GetInstance().Start();
TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_INSTANT);
// When to start find surface
TrackerManager.GetInstance().FindSurface();
We have checked if above code works well with the 3.4.2 version.
Thanks
- Maxst support team