Log in or register to post comments

How can i know number times of image detection?

October 22, 2017 - 9:20am #1

I want to know how many times each app user has been detected in each of the images registered in Device Mode.
This question may be some insignificantly, but this time that information is very important to me.
Is there a good way? I'd like to ask you a solution.
Of course, the information must be received from the outside server.

How can i know number times of image detection?

November 6, 2017 - 10:57am #11

I recommend looking into some tutorials related to using Unity's UI components. You can use those to create or activate a button when the target is detected, this can be in the same function that you are using to send your email.

Thanks,

-Vuforia Support

How can i know number times of image detection?

November 5, 2017 - 3:29pm #10

O.K I will try to send the data by email guiding your reply.
but now there is a problem with me.
when i detected image and use scripts "urlmanager.GET.url = link ",
so page change andthen open that's web page automatically.
but this time i want use UI BUTTON. that is for touch then go to web page.
i made a UI BUTTON in app. how can i interconnection above scripts and UI BUTTION.

How can i know number times of image detection?

October 31, 2017 - 9:14am #9

Here's a post about sending an email in C# with Unity: http://answers.unity3d.com/questions/433283/how-to-send-email-with-c.html

Following this example, you should be able to modify it to send yourself an email with the number of times your object has been tracked.

Thanks,

-Vuforia Support

How can i know number times of image detection?

October 26, 2017 - 10:08pm #8

I want receive the detection data to my email, of course that's data made some scripts using DefaultTrackableEventHandler and OnTrackableStateChanged.
please guide to me some example scripts.
I will learn hard.
Thank you.

How can i know number times of image detection?

October 25, 2017 - 9:45am #7

What I mean by this is that if you are wanting to keep track of this information, you will need to have your app keep track of the number of times each target has been detected. Whether you keep track of this information locally or immediately send the data off to your server is up to you. This can all be done in a script similar to the DefaultTrackableEventHandler from the Core Samples, anywhere you are handling the OnTrackableStateChanged and know when a target has been detected.

Thanks,

-Vuforia Support

How can i know number times of image detection?

October 25, 2017 - 5:15am #6

"You'll need to track this with your own code."
Please explain briefly what the above statement means.
What type of scripts do you need to code?
Please give me some guide.

How can i know number times of image detection?

October 24, 2017 - 6:04pm #5

I agree with your opinion. Because the image target database is in device mode. The url script is shown below. I put this script in each of the images. The action is becoming satisfactory. App users will detect each image. At this point, I want to know how many times each image is detected.
using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using Vuforia;

 

public class t : MonoBehaviour,ITrackableEventHandler {

 

    private TrackableBehaviour mTrackableBehaviour;

    public string link;

 

    void Start()

    {

        mTrackableBehaviour = GetComponent();

        if (mTrackableBehaviour)

        {

            mTrackableBehaviour.RegisterTrackableEventHandler(this);

        }

    }

 

    public void OnTrackableStateChanged(

                                    TrackableBehaviour.Status previousStatus,

                                    TrackableBehaviour.Status newStatus)

    {

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

            newStatus == TrackableBehaviour.Status.TRACKED ||

            newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)

        {

            urlmanager.GET.url = link;

        }

        else

        {

 

        }

    }

How can i know number times of image detection?

October 24, 2017 - 8:49am #4

I mis-typed in my response and meant to say "don't." I've edited my response to reflect the correction.

There is NOT an API that will tell you how many times a specific Image Target has been detected. You'll need to track this with your own code..

Apologies,

-Vuforia Support

How can i know number times of image detection?

October 24, 2017 - 8:18am #3

Thank you for your reply. How can I get the data through the apI method?

How can i know number times of image detection?

October 23, 2017 - 10:00am #2

Hello ydjo,

We (edit)don't provide this data through our APIs. You could keep track of this within your app and send the data off to your own servers if this is information you need.

Thanks,

-Vuforia Support

Log in or register to post comments