Log in or register to post comments

can i load data from SD card ?

August 30, 2012 - 12:27pm #1

hey guys,

first, sorry for my bad English, English is not my first language..

 i have a question,

now we compiler the project with track datas (xml and dat files).

can we load these track datas from sd card or other sites?

 

thanks a lot.

 

Moser 

can i load data from SD card ?

September 12, 2012 - 12:50pm #6

Yes you can use the sdcard. Take a look at the loadTrackerData method at line 188 in the ImageTargets sample ( ImageTargets.cpp ).

e.g.

dataSetStonesAndChips->load("StonesAndChips.xml", QCAR::DataSet::STORAGE_APPRESOURCE)

For the sdcard, you'll use QCAR::DataSet::STORAGE_ABSOLUTE and the absolute path to your xml file on the sdcard.

Also see the ImageTargets_UpdateCallback class ( line 96 ) for an example of how to activate and deactivate datasets at runtime. You need to do this in the callback to ensure that the tracker has stopped and will accept the new dataset.

can i load data from SD card ?

September 1, 2012 - 4:49am #5

i found it at imagetarget.cpp ...

and it seems that every track data must to load at this CPP file...

 

so...add new track data in sdcard then use in program without modify it can not be true :( ?  

 

can i load data from SD card ?

September 1, 2012 - 4:39am #4

oops i found the post https://ar.qualcomm.at/content/storing-configxml-and-qcar-resourcesdat-sdcard

 that means i can't put configxml and data at sdcard ? 

 

i think i should  read information at

https://ar.qualcomm.at/sites/default/files/docs/qcarsdk/class_q_c_a_r_1_1_data_set.html#a1e340023973cbf13388cc50743baf8e3

more .. 

can i load data from SD card ?

September 1, 2012 - 4:31am #3

i am using android sdk..and i am learning this sdk from sample "ImageTarget"

 

sorry i am new to this sdk,

can you give me some tips about it..

i have tried to find keywords "loadTracker" and "dataset",

but i still no idea where i can change load from sdcard. 

 

sorry about lots of questions :"( 

can i load data from SD card ?

August 30, 2012 - 12:40pm #2

Which of the SDKs are you using?

What  you'll need to do is to define the QCAR::DataSet::STORAGE_TYPE for the DataSet resources when loading the DataSet. SDCards are accessed by the path using STORAGE_ABSOLUTE.

see: https://ar.qualcomm.at/content/storing-dataset-sd-card

Types of storage locations for datasets.

Enumerator:
STORAGE_APP 

Storage private to the application.

STORAGE_APPRESOURCE 

Storage for assets bundled with the application

STORAGE_ABSOLUTE 

Helper type for specifying an absolute path.

Log in or register to post comments