Log in or register to post comments

ObjectTracker fails to load the dataset file - Did not load issu

April 25, 2016 - 7:26am #1

Hello All,

I have been trying to load the dataset (.dat and .xml) from server. I have gone through different post on this forum pertaining to loading dataset. So far I was able to do the following:
- dowload the ,dat and .xml from the server and store it to persistantpath.
- after download confirmation I extracted the reference to ObjectTracker, and succesfully called the CreateDataSet method.
- and thereafter tried to load the dataset as specified customDataSet.Load (getDatFilePath (), VuforiaUnity.StorageType.STORAGE_ABSOLUTE);

everytime i tried to load it shoot a error message which say "Did not load : path to file "

I did went through the FAQ links regarding loading external dataset.

I tried changing VuforiaUnity.StorageType, tried changing the target build of Unity between Windows Standalone and Android, tried loading .xml instead of .dat file.

I am using Free verison of Unity 5.3.4f1, Vuforia 5.5.9 SDK. In the project hierarchy I have ARCamera (fed with Vuforia App Lisence Key), ImageTarget, CustomLoader (which loads the file from server and save it to the persistent path).

Hope if anyone could guide me for the same, or point out what am I doing wrong her?

Regards,

Sharat

ObjectTracker fails to load the dataset file - Did not load issu

May 31, 2016 - 5:49pm #4

I have been having the same issue for about 6 months now. please post if you find a fix

ObjectTracker fails to load the dataset file - Did not load issu

May 25, 2016 - 10:18pm #3

I'm trying to do the exact same thing,  but I just keep getting 'false' on Dataset.Exists(). What am I doing wrong???

 

   ObjectTracker objectTracker;
   DataSet dataSet;
  
   // Check if the data set exists at the given path.
   string dataSetPath = Application.persistentDataPath+"/mydataset.xml";
  
   if (!DataSet.Exists(dataSetPath, VuforiaUnity.StorageType.STORAGE_ABSOLUTE))
   {
    Debug.LogError("Data set " + dataSetPath + " does not exist.");
    return;
   }
  
   // Request an ImageTracker instance from the TrackerManager.
   objectTracker =
    (ObjectTracker)TrackerManager.Instance.GetTracker<ObjectTracker>();
  
   // Create a new empty data set.
   dataSet = objectTracker.CreateDataSet();
  
   // Load the data set from the given path.
   if (!dataSet.Load(dataSetPath, VuforiaUnity.StorageType.STORAGE_ABSOLUTE))
   {
    Debug.LogError("Failed to load data set " + dataSetPath + ".");
    return;
   }

ObjectTracker fails to load the dataset file - Did not load issu

April 26, 2016 - 3:02am #2

Hello All,

It  was figured out that, the downloaded ".dat" (the file downloaded from the remote server) filesize was not the same size of which we get the with dataset unitypackage that we download from vuforia account. The downloaded file was stored at persistentDataPath, by manually replacing that .dat file with original .dat file, resolved the issue.

So as of now instead of downloading the files indivifually from server, replaced approach by using a zip file which comprised of .dat and .xml files. After downloading and extracting zip from the server to the persistentDataPath, I was able to load the xml file via customDataSet.Load

Hope this helps someone like me who is just starting out.

 

Regards,
Sharat

Log in or register to post comments