By trivikramsarath
on Mon, 05/09/2016 - 12:04
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.
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
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:
Get dimensions of an object
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
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++;