Log in or register to post comments

Cloud recognition working intermittent

November 28, 2017 - 7:24am #1

Hello, I'm working on a cloud recognition app. 

1. I'm using the new Vuforia for Unity 2017.2, I downloaded the Vuforia core samples and used the cloud sample scene to get started. I made my own content manager, content downloader, content versions manager, etc. Everything works perfect except for one thing. The OnTargetFound method fires intermittent. The cloud recognition is made but nothing happens, then I refocus the target and works, next time nothing happens and so on.

2. I made a fresh project with only the vuforia core samples and tested the cloud demo scene and the same thing happens, here a video showing the problem:

http://www.wowemotions.com/WOW_Cloud/2017-11-28%2009-12-19.mp4

You can check the console and see that the "OnTrackingFound()" blue log only appears intermittent.

I would really appreciate any help!

 

- Unity 2017.2.0f3

- Vuforia version 6.5.25:feaf8efa7061124507af50e6c64e97f1

 

Cloud recognition working intermittent

July 23, 2018 - 4:44pm #10

Hello,

We'd be happy to investigate but this thread has many different issues being reported. Thus, I'm not sure what to investigate.

If a repro case can be provided (ideally based upon our Cloud Reco sample app), or if steps can be provided to reproduce using the Cloud Reco sample, it will help us greatly.

Thanks,

Vuforia Engine Support

Cloud recognition working intermittent

July 20, 2018 - 8:35pm #9

I have the same issue regarding the Null Exception after Cloud Reco recognised the target for the first time, when I call

mCloudRecoBehaviour.CloudRecoEnabled = true;

I get this weird exception.

 

I've been looking for a solution in this forum and Unity's forum, but without lucky so far.

 

Is there any one from the Vuforia team can give us some help here?

Cloud recognition working intermittent

July 10, 2018 - 11:51pm #8

Hello, 

 

Following my previous message, the problem is still present

is it possible to have some help ? The forum seems not active from Vuforia.

Thanks you

Cloud recognition working intermittent

July 4, 2018 - 1:11pm #7

I think i have the same problem with my Cloud Reco, here is my case:

- The first time OnNewSearchResult() recognize a image, my object display well on my imageTarget.

- The second time OnNewSearchResult() is called and recognize a second image, my object doesn't display on the imageTarget.

To be able to make the object appear, i need to unfocus (don't watch the image) and refocus on the image, and the object appear directly. And it continue like this with the next recognition.

Do someone could help me?

Your help  would be really appreciate

thanks

 

Using Unity 2017 1.0.

Cloud recognition working intermittent

June 27, 2018 - 9:35am #6

Additionally, when clicking the GUI button generated within the tutorial to restart tracking, I get the following StackTrace errors. Feels like there is something silly I must be missing from the Cloud Recognition tutorial, as this is fairly baseline functionality (attaching a cube to an imageTarget from Cloud)

 

Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object

  at Vuforia.StateManager.UpdateTrackablePoses (UnityEngine.Transform arCameraTransform, .TrackableResultData[] trackableResultDataArray, .VuMarkTargetResultData[] vuMarkResultDataArray, TrackableIdPair originTrackableID, Int32 frameIndex, Boolean updateTrackableStates) [0x00000] in <filename unknown>:0

  at Vuforia.StateManager.UpdateTrackablePoses (UnityEngine.Transform arCameraTransform, .TrackableResultData[] trackableResultDataArray, .VuMarkTargetResultData[] vuMarkResultDataArray, TrackableIdPair originTrackableID, Int32 frameIndex) [0x00000] in <filename unknown>:0

  at Vuforia.VuforiaManager.UpdateTrackers (FrameState frameState) [0x00000] in <filename unknown>:0

  at Vuforia.VuforiaManager.Update (ScreenOrientation counterRotation, System.Boolean& reapplyOldState) [0x00000] in <filename unknown>:0

  at Vuforia.VuforiaARController.UpdateStatePrivate (Boolean forceUpdate, Boolean reapplyOldState) [0x00000] in <filename unknown>:0

  at Vuforia.VuforiaARController.UpdateState (Boolean forceUpdate, Boolean reapplyOldState) [0x00000] in <filename unknown>:0

  at Vuforia.DigitalEyewearARController.Update () [0x00000] in <filename unknown>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222

  --- End of inner exception stack trace ---

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232

  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115

  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:443

  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MulticastDelegate.cs:71

  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Delegate.cs:415

  at Vuforia.DelegateHelper.InvokeDelegate (System.Delegate action, System.Object[] args) [0x00000] in <filename unknown>:0

UnityEngine.Debug:LogError(Object)

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Vuforia.DelegateHelper:InvokeWithExceptionHandling(Action)

Vuforia.VuforiaBehaviour:Update()

Cloud recognition working intermittent

June 27, 2018 - 9:22am #5

Any update to this issue? I've used Vuforia for a number of items in the past, though typically with on-device databases. Rarely run into issues. 

With Cloud, I am seeing the exact same thing as described below. Working directly off of Vuforia's Cloud Tutorial (https://library.vuforia.com/articles/Solution/How-To-Implement-Cloud-Reco.html), OnTrackingFound is NOT fired until after an initial object is recognized, moved out of site, then re-entered onto the stage. The TrackableBehavior.Status does not seem to receive any events until the item is removed and refocused. 

Any suggestions? WOWEmotions, were you ever able to fix further than the hacked fix you describe below? 

Unity 2018.1.6f1 (experience the exact same issues on iOS device)

Vuforia 7.1.35

Cloud recognition working intermittent

January 3, 2018 - 7:52am #4

Hi Strasza,

I tried to "fix" it because it is weird that some things work in editor and others don't. I have everything working 90% doing this:

- I commented the instructions objectTracker.TargetFinder.StartRecognition(); and objectTracker.TargetFinder.Stop(); inside OnTrackingLost() and OnTrackingFound() at CloudRecoTrackableEventHandler.cs

- Then, I turn on cloudRecoBehaviour doing: cloudRecoBehaviour.CloudRecoEnabled = true; inside OnTrackingLost() at CloudRecoTrackableEventHandler.cs

- I turn off cloudRecoBehaviour doing: cloudRecoBehaviour.CloudRecoEnabled = false; inside OnNewSearchResult() method at CloudRecoEventHandler.cs

In this way, I fixed the intermittent problem and the mutiple scans count during one scan. (The main problems)

I just have one more problem remaining. When I scan the first time, OnNewSearchResult fires but, inmediately OnTrackingLost too, so, the content is not displayed. If you go to DefaultTrackableEventHandler.cs at OnTrackableStateChanged method, comment the OnTrackingLost() for the previousStatus=UNKNOWN + newStatus=UNKNOWN|NOT_FOUND case, then the content is displayed when first scan BUT OnTrackingLost() doesn't fires and the content remain in camera after unfocus the target.

Tell me if what I did is a monstrosity even if it is working and I would really appreciate any help with the last problem, thank you in advance!

 

Cloud recognition working intermittent

December 28, 2017 - 3:22pm #3

Hello WOWEmotions,

I'm seeing similar behaviour to what you are describing when running in Playmode with Unity 2017.2, but I don't see this behaviour when run on device on both Unity 2017.2 with Vuforia 6.5 and Unity 2017.3 with Vuforia 7. Have you observed this behaviour when your app is deployed on device as well, or only in Playmode?

Thanks,

Vuforia Support

Cloud recognition working intermittent

December 13, 2017 - 12:56pm #2

Still no answer! this is very annoying and I can't get a single answer. 

The plugin is BUGGED! 

Try it yourself: make a new empty project with Unity 2017.2, import Vuforia core samples from asset store, open and play the demo scene 3-CloudReco and you'll be able to reproduce the error!

THERE IS MORE:

Check the video I sent, you can see that on a single target focus, the method "OnNewSearchResult" fires TWICE, that means that the cloud recos will be doubled, so, you will reach the 10.000 recos limit when you actually have only 5000.

Check that by yourself too.

 

Log in or register to post comments