"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
Loading Dataset from sd card without ndk-building
By jok_rodz
on Mon, 03/25/2013 - 10:15
I just want to ask if ist possible to automatically read dataset without ndk-building?
Every target has a name; for each DataSet, you can get the list of all the image targets contained in it, and then for each target you can query the name and see if one of them matches the name you are interested in; for example, look at this snippet (just for illustration purpose):
Yes, you should be able to put that code in renderFrame without problems. The only thing to keep in mind is that, if you need to deactivate / activate a dataset (e.g.
Loading Dataset from sd card without ndk-building
Hi, yes, you can load a dataset for instance from a string variable where you hold the value of a path;
the path can point to a path on you external storage (sd card, as you mention) for instance.
Loading Dataset from sd card without ndk-building
Thanks ill work on it.
Loading Dataset from sd card without ndk-building
You're welcome.
Loading Dataset from sd card without ndk-building
I wanna ask , how to identify the imagetarget in its specifc dataset so that i can load and activate the specific dataset in loadTrackeData.
Loading Dataset from sd card without ndk-building
Every target has a name; for each DataSet, you can get the list of all the image targets contained in it, and then for each target you can query the name and see if one of them matches the name you are interested in; for example, look at this snippet (just for illustration purpose):
Loading Dataset from sd card without ndk-building
Loading Dataset from sd card without ndk-building
You should not need to activate a dataset in order to get someDataSet.getNumTrackables()
Loading Dataset from sd card without ndk-building
ahh i see.. but for the code you sent below.. ist okay to put it under the renderFrame function in VideoPlayaback.cpp
because i need to recognized the target and get the name and compare which dataset it belongs.
Loading Dataset from sd card without ndk-building
Yes, you should be able to put that code in renderFrame without problems. The only thing to keep in mind is that, if you need to deactivate / activate a dataset (e.g.
Loading Dataset from sd card without ndk-building
There is some error when building my code when i add your code below
Loading Dataset from sd card without ndk-building
You eed to add this include statement:
#include <QCAR/Trackable.h>
Loading Dataset from sd card without ndk-building
I have already add that but still same error.
Loading Dataset from sd card without ndk-building
Oh, reading again the code:
you need to replace this line:
Loading Dataset from sd card without ndk-building
Thanks man . Your very Brilliant :)
Loading Dataset from sd card without ndk-building
you're welcome.
Loading Dataset from sd card without ndk-building
if i put this code under the rendFrame method in VideoPlayback,.cpp after creating and loading all datasets
it will not recognized the marker because its not yet activated i tried it and it will not track
Loading Dataset from sd card without ndk-building
Indeed, you cannot recognize (detect) a target if no dataset has been activated yet;
Loading Dataset from sd card without ndk-building
How about the switching of datasets sir?
Loading Dataset from sd card without ndk-building
You can switch DataSets, as it is demonstrated in the ImageTargets sample. But what is your specific question/goal here ?
Loading Dataset from sd card without ndk-building
i want to know the dataset of that marker. For eg.
Loading Dataset from sd card without ndk-building
or it could be activating first in dataset1 and if not there activate dataset2 or if not there activate dataset3 or i dont kn