- Sort Posts
- 15 replies
- Last post
How to display 3d model with Text Recognition
i'm trying to build an android app, i try to show different 3d model for different text tracked. i had implemented your instruction. In play mode, it can run well. But when i'm install the .apk file to my android, it cann't show the 3d model, although the text tracked.
Hope you can help me, thank you very much.
How to display 3d model with Text Recognition
Well, in the TextReco sample the DefaultTrackableEventHandler.cs is not used, because typically this is used with ImageTargets.
However, the TextEventHandler.cs script is attached to the TextRecognition prefab, and here OnWordDetected() is called whenever there is a new word identified.
When I took this sample and added the Application.LoadLevel as below, the app goes back to the splash screen when a word is detected without any problem in play mode, so it is not clear to me what the problem is, or what you are doing differently.
N
/// This method will be called whenever a new word has been detected
public void OnWordDetected(WordResult wordResult)
{
var word = wordResult.Word;
if (ContainsWord(word))
Debug.LogError("Word was already detected before!");
Debug.Log("Text: New word: " + wordResult.Word.StringValue + "(" + wordResult.Word.ID + ")");
AddWord(wordResult);
// Test
Application.LoadLevel("Vuforia-1-SplashScreen");
}
How to display 3d model with Text Recognition
In Play mode.
Let me desrcipe the flow here .
I have used sample demo and in that demo i have add my custom scene in which i want to saw the deteced word . So when any word is detect from the scene Vuforia-4-TextReco , in DefaultTrackableEventHandler in any word detected then i am using Application.LoadLevel("DetailView").
Thanks
Yashesh
How to display 3d model with Text Recognition
Is this on the device or is it in Play Mode?
I was able to build a simple app with a simple menu that switches between a simple TextReco scene and an Image Targets using the sample code and saw no problems like this in Play Mode or on an iOS device.
Can you try to reproduce this using the basic Image Targets / Text Reco samples and try to switch between them?
N
How to display 3d model with Text Recognition
Hello,
Yes i have tried it by putting GUI Button and it's click going to Next scene but same issue happens. and that is because of the Camera object is destroy !!!.
I found that if i am check mark the AR Camera Alive from ARCamera then it's working but prevous screen is also visible. Any help ???
Thanks
How to display 3d model with Text Recognition
Just to repeat:
... and you could test that it works going from the TextReco scene to another by adding a gui button and say going back to the startup screen.
Try to diagnose it a bit more and try a few different things out and then report back, so people have a better chance of helping you.
N
How to display 3d model with Text Recognition
How to display 3d model with Text Recognition
You may need to check what you are doing in your custom scene.
Application.LoadLevel should work, and you could test that it works going from the TextReco scene to another by adding a gui button and say going back to the startup screen.
Try to diagnose it a bit more and try a few different things out and then report back, so people have a better chance of helping you.
N
How to display 3d model with Text Recognition
Hello Sir,
I am trying to goto from Vuforia-4-TextReco Scene to my custom scene if any text is recognige and i have used Application.LoadLevel(), but when my app crash at this point :
MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it.Your script should either check if it is null or you should not destroy the object.BGRenderingBehaviour.CheckAndSetActive (Boolean isActive) (at Assets/Qualcomm Augmented Reality/Scripts/Internal/BGRenderingBehaviour.cs:40)WebCamImpl.Update () (at Assets/Qualcomm Augmented Reality/Scripts/Internal/WebCamImpl.cs:359)WebCamBehaviour.Update () (at Assets/Qualcomm Augmented Reality/Scripts/WebCamBehaviour.cs:219)
your reply will be very helpful to me.
Thanks
How to display 3d model with Text Recognition
How to display 3d model with Text Recognition
How to display 3d model with Text Recognition
This is really easy to do.
1 Starting with an empty scene drag an ARCamera prefab into it.
2 Next drag a TextRecognition prefab into the scene, selecting Vuforia-English word list, and check "Use Word Prefabs" in the inspector, setting Max Simultaneous Words to 10.
3 Next drag a Word prefab into the scene, and add your cube to it as a child, ensuring it is large enough to be visible.
Test in Play Mode and you should see cubes popping up when text is recognised.
N
hi everyone i just want to know that how i can use text recognition module with 3D model. actually i want to say that i have design 3D model and when user hover the device on the room no plate which is different for every room than model of building augment from that place where the room no text is recognised. i will be thankful to you please if anyone have some idea about it please let me know it is very urgent
Thanks in advance