Exact Target Detection

December 10, 2012 - 3:25am #1

Hello,

I was wondering if there is a way to get access to the bounding rectangle of the detected marker or something like that, so I could adjust my augmentations on the fly.

Thanks in Advance,
Nathan

Hey Dave, I don't think this

December 19, 2012 - 12:27am #7

Hey Dave,

I don't think this is what I'm looking for.

For example: I want to overlay the marker image with a completely different image and I want the overlay to be "perfect". For this I need some way to get the "real" size of the detected marker and rescale my augmentation image to that size.

The values I get from the GetSize() method are just the width values I set when uploading the markers that do not take into consideration the current location of the marker in the world.

HTH you understand better what I'm talking about :)

Thanks in advance,

Nathan

If you're trying to determine

December 18, 2012 - 10:34am #6

If you're trying to determine the bounding rectangle, use the GetSize() method on the ImageTargetBehaviour. Your target transform position is for the center of your target, so the edges are 1/2 w x 1/2 h and you can use these dimensions to find the corner positions. 

Is that what you're looking for?

Currently I'm still using

December 18, 2012 - 10:25am #5

Currently I'm still using 2.0.25 (Beta)

Could you perhaps direct me to the required API calls?

(I'm using C# in unity)

The revant API methods should

December 18, 2012 - 10:14am #4

The revant API methods should be the same - which SDK are you using?

Hey Nalin,A lot of the links

December 18, 2012 - 7:51am #3

Hey Nalin,

A lot of the links have changed and the link seems to be broken now.

Can you give me another one?
Is there any help specific to 2.0 now?

 

Thanks,

Nathan

Exact Target Detection

December 10, 2012 - 5:42am #2

Hi Nathan

Yes this should be possible.

I posted this code up a while back for putting an overlay on a plane with the Image Targets example.

https://ar.qualcomm.at/content/drawing-rectangle-besides-marker-and-getting-its-coordinates-fill-image

You will need to adapt this for your purposes, and it may need updating for Cloud Reco / 2.0 but it is a good start.

HTH

N

 

Log in or register to post comments