Log in or register to post comments

Get dimensions of an object

May 9, 2016 - 5:04am #1

Hello all,

After i detect an object, i have to get the basic dimensions of that object.

How can i acheive this. 

Thanks in advance.

Get dimensions of an object

May 11, 2016 - 3:54am #4

You can use the Vuforia C++ API, even if most of your code is written in Obj-C.

As you can also see in the Vuforia Sample Apps, the iOS sample code is written in Objective-C and C++, cause the Vuforia API for iOS is based on C++;

 you can mix C++ and Objective-C code in your project.

 

 

Get dimensions of an object

May 11, 2016 - 2:52am #3

Thanks for the reply. But I do this in Objective-C. Can I get the dimensions in objective c?

I have alrdy tried getSize(), but the result is same for all the objects irrespective of the size of the object.

 

Thanks

Sarath.

Get dimensions of an object

May 11, 2016 - 12:20am #2

The Trackable classes expose methods to obtain the size of the Trackable (Image Target, Object Target or other);

For example, if you are using Unity, you'll probably want to use the GetSize() method of the ObjectTarget class:

 

https://developer.vuforia.com/library/sites/default/api/unity/interfaceVuforia_1_1ObjectTarget.html

 

See also the complete API reference for Unity, C++ and Java:

https://developer.vuforia.com/library/sites/default/api/unity/index.html

https://developer.vuforia.com/library/sites/default/api/cpp/index.html

https://developer.vuforia.com/library/sites/default/api/java/index.html

 

Log in or register to post comments