Log in or register to post comments

Multiple tracking with Cloud Recognition

August 1, 2015 - 4:52am #1

Hello guys, i have modified the source code of CloudReco.java. I've got to do the tracking of multiple objects, recognizing them by a cloud database.
The app recnognize me only 1 object at a time. Is There some limitation?

This is the code of doStartTrackers
 

	public boolean doStartTrackers() 
	{      
        // Start the tracker:
        TrackerManager trackerManager = TrackerManager.getInstance();
        ObjectTracker objectTracker = (ObjectTracker) trackerManager.getTracker(ObjectTracker.getClassType());
        Vuforia.setHint(HINT_MAX_SIMULTANEOUS_OBJECT_TARGETS, 20);
        objectTracker.start();
        
        // Start cloud based recognition if we are in scanning mode:
        TargetFinder targetFinder = objectTracker.getTargetFinder();
        targetFinder.startRecognition();
        
        return true;
	}

and this is the code of onQCARUpdate

if (statusCode == TargetFinder.UPDATE_RESULTS_AVAILABLE)
        {
            // Iterate through the new results:
            for (int i = 0; i < finder.getResultCount(); ++i)
            {
                TargetSearchResult result = finder.getResult(i);

                // Check if this target is suitable for tracking:
                if (result.getTrackingRating() > 0)
                {
                    // Enable this target for tracking:
                    finder.enableTracking(result);
                }   
            }
        }

 

Multiple tracking with Cloud Recognition

August 4, 2015 - 12:52pm #2

Hi, yes, it is by design. You can only detect one target at a time using cloud reco.

Log in or register to post comments