Log in or register to post comments

What can I do to limit recognition of a same target (Target Manager)

March 5, 2014 - 9:00pm #1

It is possible put some limitaion or condition,

for who try to track a same image target several times with a same device?

What can I do to limit recognition of a same target (Target Mana

March 9, 2014 - 1:58am #3

I am using the kit on Android and here the C++ file is located in the jni directory.  You need to create an int variable  lastTrackableId, then modify the code in 

StadiumTestRenderer_renderFrame

    // Did we find any trackables this frame?

    for(int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++)
    {
// Get the trackable:
        const QCAR::TrackableResult* result = state.getTrackableResult(tIdx);
        const QCAR::Trackable& trackable = result->getTrackable();
// Compare this trackable's id to a globally stored id
// If this is a new trackable, find the displayMessage java method and
// call it with the trackable's name
if (trackable.getId() != lastTrackableId) {
jstring js = env->NewStringUTF(trackable.getName());
jclass javaClass = env->GetObjectClass(obj);
jmethodID method = env->GetMethodID(javaClass, "displayMessage", "(Ljava/lang/String;)V");
if (method == 0)
{
LOG("Function displayMessage() not found.");
} else
{
env->CallVoidMethod(obj, method, js);
lastTrackableId = trackable.getId();
}
}
Sorry, iit loses indentation here

What can I do to limit recognition of a same target (Target Mana

March 6, 2014 - 2:51am #2

Akaik, there is nothing in the Vuforia API that allows such use case.

 

Log in or register to post comments