Log in or register to post comments

Limiting the number of recognised frame markers to one

August 17, 2016 - 6:41pm #1

Help!! Everyone, im new in vuforia and i now facing a problem when using frame marker, by default frame marker will recognise several frame markers at once, but my project want to do the opposite, i only want the frame marker only recognise and show one result at a time, i already tried set the Max Simultaneous target value to 1 and but the result still the same and i tried to add code below to the defaultTrackableEventHandler script which i found in another discussion and its only work sometime.

Is that any other way to limit the number of simultaneously tracked markers to 1, so that its only recognise one frame marker at a time?

Many thanks in advance.



//somewhere

static bool trackedSingleFrameMarker = false;

//then

       public void OnTrackableStateChanged(

                                    TrackableBehaviour.Status previousStatus,

                                    TrackableBehaviour.Status newStatus)

    {

       

        if (newStatus == TrackableBehaviour.Status.DETECTED ||

            newStatus == TrackableBehaviour.Status.TRACKED )

        {

            if (!trackedSingleFrameMarker )

            {

               

            OnTrackingFound();

            trackedSingleFrameMarker = true;

        }

        }

        else

        {

            trackedSingleFrameMarker = false;

            OnTrackingLost();

        }

    }

Limiting the number of recognised frame markers to one

August 19, 2016 - 5:19pm #2

Hello,

You are correct that you cannot programmatically limit the number of FrameMarkers that are recognized and tracked at any given time.

Please note that the FrameMarkers feature has been marked deprecated in Vuforia 6 in lieu of VuMarks:

https://library.vuforia.com/articles/Training/VuMark

VuMarks bring together the features of ImageTargets and FrameMarkers, and behave like an ImageTarget in that you can limit the number of simultaneous trackables. The Vuforia 6 Core Features sample is packaged with 100 VuMarks that can be used for evaluation (in the media folder).

Thanks

Log in or register to post comments