Start a new topic

Multiple targets recognition

Multiple targets recognition


Yes you can display data/content based on the recognized 2d object. Please have a look at the the Multiple Targets sample in the sample app, which is included in the SDK download page. This should give you enough details on how this can be done.



i am trying to work with wikitude plugin for phonegap, what i want is to recognize objects and show the descriptions for each one of them, now my idea is to have one tracker(.wtc) that contains all the concerned target collection, then based on each target's name i want to assign it to it's description that is in a json file, is it possible?

i mean i tryed to create an array to make it general or do i have to write a trackabale2D object for each targetname manually?

thanks a lot Nicola for your answer :) i already had a look but i am wondering in the case of having multiple objects and for each one its unique description  and since i'm new in wikitude and phonegap i was wondering if i can make it general more than what is mentionned in the sample app, here is my code maybe it explains the idea better thant me

var World = {
    loaded: false,

    init: function initFn() { = false;

    createOverlays: function createOverlaysFn() {
        this.tracker = new AR.Tracker("", {
            onLoaded: this.worldLoaded

        var trackable=new Array(3);
        var targtab=;

        for (var i=0;i<3;i++){
        alert("start loop");
        var targ=targtab;
        var trackable= new AR.Trackable2DObject(this.tracker,targ, {
            drawables: {
                cam: overlayOne
            onEnterFieldOfVision: this.appear,
            onExitFieldOfVision: this.disappear

        alert("end boucle");            
    appear: function appearFn() {
    disappear: function disappearFn() {

    worldLoaded: function worldLoadedFn() {



best regards
Login or Signup to post a comment