Log in or register to post comments

How to display 3d model with Text Recognition

August 19, 2013 - 12:11am #1

Hello everyone,

I want to display clube when any text is recognize but i am not able to do that. Can anybody please help me ?

Thanks in advance !!!

How to display 3d model with Text Recognition

January 21, 2017 - 6:48am #16

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

How to display 3d model with Text Recognition

October 25, 2016 - 8:02am #15

Hi 

i hope to seek your advise how to include multiple text recognition tagged to their respective 3D animated objects 

thank you 

How to display 3d model with Text Recognition

January 3, 2016 - 6:09pm #14

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

August 22, 2013 - 7:45am #13

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

August 21, 2013 - 9:37pm #12

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

August 21, 2013 - 8:16am #11

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

August 20, 2013 - 9:53pm #10

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

August 19, 2013 - 5:55am #9

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

August 19, 2013 - 5:03am #8

Hello, 

there is nothing in the custom scene it's just a blue screen.May be there should be some option that i have to set before goto next scen but unfortunatly i don't know. So please help .

Thanks

How to display 3d model with Text Recognition

August 19, 2013 - 4:59am #7

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

August 19, 2013 - 4:46am #6

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

August 19, 2013 - 3:22am #5

Sorry ... Got it !!!

Thanks for a help.

Now one more thing please help me.

i want to show cube if i found word "cube" and if i found word "Cylinder" then i have to show Cylinder, so do this in which file i have to write code for that.

Thanks 

 

How to display 3d model with Text Recognition

August 19, 2013 - 3:18am #4

Well, I tested this myself before posting up, so I suggest you recheck your steps thoroughly.

Your hierarchy should be

ARCamera

TextRecognition

Word

    Cube

    Text

 

...and you should be able to see the Word Prefab showing "AnyWord" with the cube on top

N

 

How to display 3d model with Text Recognition

August 19, 2013 - 3:12am #3

Hello,

I have follow your step carefully but still i am not able to see the word Prefeb when any word is recognize.

please help 

Thanks 

How to display 3d model with Text Recognition

August 19, 2013 - 3:03am #2

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

Log in or register to post comments