Log in or register to post comments

Unable to tell the difference between several images

July 20, 2018 - 9:29pm #1

I've uploaded the below two images. I'm using them as ImageTargets in my project with enums assigned to each, "Wort" for the first one, "Malt" for the second.

And yes, I've checked that they were correctly assigned. 

When I used my Camera to detect the images, Wort appears as Wort, which is correct, but when I try Malt, it ALSO appears as Wort. Couldn't get the Malt to show up at all. This is silly since even the colors are different.

How do I deal with this?

The following is my code in DefaultTrackableEventHandler. "id" is an enum that is unique to each ImageTarget.

I found that when I scanned Wort, it appears correctly as "Found Wart ImageTarget_Wart".

But when I turned to scan Malt, it ALSO appears, incorrectly, as "Found Wart ImageTarget_Wart" instead of "Found Maly ImageTarget_Malt".

What's going on?

public void OnTrackableStateChanged(

        TrackableBehaviour.Status previousStatus,

        TrackableBehaviour.Status newStatus)

    {

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

            newStatus == TrackableBehaviour.Status.TRACKED ||

            newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)

        {

            Debug.Log("Found " + this.id + " " + this.gameObject.name);

            OnTrackingFound();

        }

        else if (previousStatus == TrackableBehaviour.Status.TRACKED &&

                 newStatus == TrackableBehaviour.Status.NO_POSE)

        {

            OnTrackingLost();

        }

        else

        {

            // For combo of previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND

            // Vuforia is starting, but tracking has not been lost or found yet

            // Call OnTrackingLost() to hide the augmentations

            OnTrackingLost();

        }

    }

I just tested again and it often times detects the wrong image at the very start as well.

 

This is very disappointing.

AttachmentSize
Image icon 2_Wort.png77.23 KB
Image icon 1_Malt.png88.57 KB

Unable to tell the difference between several images

July 21, 2018 - 4:46pm #2

This is somewhat expected since the majority of sharp corners (the outer gear) are the same in both images.  Vuforia does not look at color, it sees in grayscale and only detects sharp points in the image.  Use the show features option in the target manager to get a sense of it and also read this for a thorough explantation,  https://library.vuforia.com/articles/Solution/Optimizing-Target-Detection-and-Tracking-Stability

Finally don't be afraid to edit out the similarities in the targets you upload.  I've edited out the gear see attached, and it should just ignore when it sees it in your printed target.  Give something like that a try.



 

AttachmentSize
Image icon 1.png61.4 KB
Image icon 2.png51.8 KB
Log in or register to post comments