Log in or register to post comments

Using Image Targets sample, get trackable information

April 27, 2013 - 9:38am #1

Hello,

 

I'm building an app that relies on images, I don't want to digg too much into Vuforia, the Image Targets sample would suffice, so I have a trackable, all I want to do is get all the information I could get (position, distance, tilt etc)

 

I'm need in my Android project some functions like :

 

public native int getTrackableDistance();
public native int[] getTrackablePosition();
public native float getPrecision(); // if possible, a percentage that says how much information QCAR detects of the trackable. Like 1.0 means the whole trackable is inside the camera's frame

 

and anything else I could get, basically I don't know what code I should put in there to get these information, I'm not a C++ geek so I would really appreciate your helps.

 

Thank you in advance,

Jimm Carter.

Using Image Targets sample, get trackable information

April 29, 2013 - 12:30am #4

Hi, 

this is a good tutorial about transformation matrices in OpenGL, it contains really lots of details, very well explained:

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/

Then you can also look at our small tutorial about the Pose matrix:

https://developer.vuforia.com/resources/dev-guide/pose-matrix-explained

 

Using Image Targets sample, get trackable information

April 28, 2013 - 2:10pm #3

Hi,

Thank you very much for you answer, I appreciate it so much, can you please explain to me (or refer) an article that details the pose matrix, rotation matrix and translation vector exactly?

Because I don't seem to understand it.

Thank you very much again.

Using Image Targets sample, get trackable information

April 28, 2013 - 1:31pm #2

Hi, the following article explains how to get the target distance (from the camera), with the necessary C++ code:

https://developer.vuforia.com/resources/dev-guide/distance-target

You can take inspiration from it to also extract additional information (however you need to understand the structure and meaning of the Pose matrix, otherwise it is going to be difficult; that's how 3D programming works, essentially)

Also, the following article explains how to communicate between C++ and Java using the JNI interface.

https://developer.vuforia.com/resources/dev-guide/java-native-interface

 

 

Log in or register to post comments