Log in or register to post comments

code for recognize ImageTarget/FrameMarker

February 23, 2013 - 2:16am #1

can someone explain a little to me about the code when the application trying to recognize the ImageTarget or FrameMarker? well, i'm still newbie here about the API, i can't find where is it.. haha

code for recognize ImageTarget/FrameMarker

February 24, 2013 - 7:55am #6

There are two basic approaches..

1. use an image of the text and make this the texture of a 3D plane that augments the target - https://developer.vuforia.com/resources/dev-guide/textured-plane-target

2. position a textview in the screen space that corresponds with the target's world space - https://developer.vuforia.com/resources/dev-guide/screen-coordinates for obtaining screen space, and https://developer.vuforia.com/resources/dev-guide/distance-target for obtaining the target distance if you want to scale the text to reflect distance.

code for recognize ImageTarget/FrameMarker

February 24, 2013 - 12:11am #5

I used v4.0.3 Can you tell me a clue how to do that? Where i should put my text wigdet so it will only appear when the camera detect the image target?

EDITED: i found this disscussion https://developer.vuforia.com/forum/android/overlaying-android-interface-objects haha, thx..

code for recognize ImageTarget/FrameMarker

February 23, 2013 - 11:57am #4

Yes you can overlay text - which SDK version are you using?

code for recognize ImageTarget/FrameMarker

February 23, 2013 - 11:45am #3

oh.. okay then.. i should try to read more the code on startCamera..

well, actually what i want to do is: after the camera detect the Image target, it will show an overlayed text on the screen, not as a 3d object.. just like VideoPlayback project, there is a text (information that the video will be fullscreen if the device doesn't support) that overlayed the camera, it's on the screen..

can i do that?

code for recognize ImageTarget/FrameMarker

February 23, 2013 - 7:12am #2

Hi, there is no specific code that does the "recognition"; the process is working in background; however, you can check the code in the function startCamera in ImageTargets.cpp to see how to start the Vuforia Tracker and camera; then, if you look at the function called "renderFrame", you will find a "for loop" where the TrackableResults available (i.e. detected or tracked) at the current frame are retrieved.

 

Log in or register to post comments