Log in or register to post comments

Multiple device databases

June 11, 2014 - 8:18am #1

If load and activate multiple device databases, how can I know which database a tracked target belongs to? Is there any API for this purpose?

Could I list all targets (with id) in a dataset?


Multiple device databases

June 13, 2014 - 9:33am #2


The way to do that is to retrieve the trackable and to get its name.


In C++, it's done like that;


    for (int i = 0; i < state.getNumTrackableResults(); ++i) {
        // Get the trackable
        const QCAR::TrackableResult* result = state.getTrackableResult(i);
        const QCAR::Trackable& trackable = result->getTrackable();


and once you have the trackable, its name will tell you where it s coming from:


if (!strcmp(trackable.getName(), "name_of_your_dataset")) {

You can then customize your augmentation based on the target being tracked.

Hope this helps,



Log in or register to post comments