Topic locked

Is it possible to get the area/bounds of the trackable on the camera??

March 6, 2011 - 10:34pm #1

Hi, I am trying a build a 3d shape(wrt its size on camera) on the trackable once its recognised. Now i need the area/rect bounds of the trackable displayed on camera. I have gone through Area and Rectangle classes Please anyone tell me is it possible to get the bounds of the trackable displayed on camera??? if so how to do that?? thanks in advance.. Grace.

Is it possible to get the area/bounds of the trackable on the ca

December 18, 2014 - 7:55am #6

This thread is exteremly old; it refers to an older API; you can check the migration guide on how to use the trackable classes in 3.0.0:

https://developer.vuforia.com/resources/dev-guide/transitionmigration-guide

 

Is it possible to get the area/bounds of the trackable on the ca

December 18, 2014 - 6:35am #5

I have the same error :  invalid cast from type 'const QCAR::Trackable' to type 'QCAR::ImageTarget*'

when use :

QCAR::Vec2F targetSize = ((QCAR::ImageTarget *) trackable)->getSize();

 

I use Vuforia 3.0.9, How solve that ?

Thank you,

 

Hi Mita, Not quite sure what

December 24, 2012 - 12:51am #4

Hi Mita,

Not quite sure what you are trying to do, but here is some sample code I posted a while back that can draw a plane on top of the target, and it uses the GetSize() method.

https://developer.vuforia.com/forum/ios/drawing-rectangle-besides-marker-and-getting-its-coordinates-fill-image

If this is not quite what you are after, then please search the forums and the FAQ.

thanks,

N

got error

December 21, 2012 - 11:58pm #3

Hello

i had tried it. but it gives error  invalid cast from type 'const QCAR::Trackable' to type 'QCAR::ImageTarget*'
 

please guide

thanks & Regards

mita

Re: Is it possible to get the area/bounds of the trackable on th

March 7, 2011 - 6:33am #2

Sure, if you are tracking an image target or frame marker you can cast the trackable to the correct type and use the getSize() method. For example:

[CODE]
QCAR::Vec2F targetSize = ((QCAR::ImageTarget *) trackable)->http://ar.qualcomm.at/node/2000357https://ar.qualcomm.com/arforums/showthread.php?t=357

- Kim

Topic locked