Log in or register to post comments

Combine ImageTargets and FrameMarkers

October 4, 2011 - 7:07pm #1

Hi all,

I would like to combine ImageTargets and FrameMarkers together as a project.

Basically, I want android camera detects the ImageTarget (i.e modem) and displays some text in an image form using frame markers.

Is this possible?
How do I incorporate frame marker into image target??

And i saw this code portion in the Qualcomm Developer Guide. How does this works? What else i need to do/change to make it work?

Quote:


xsi:noNamespaceSchemaLocation="qcar_config.xsd">






Please help...

Re: Combine ImageTargets and FrameMarkers

October 5, 2011 - 3:12pm #2

Start by adding a single frame marker to the ImageTargets sample. You can open the config.xml file and add a line like this:

<Marker type="id-frame" id="0" size="250 250" name="mymarker" /> 

Now when you look at frame marker 0 you should see a teapot on it. You can react differently to the marker by checking for the name "mymarker" in the renderFrame method in ImageTargets.cpp:

if (strcmp(trackable->getName(), "mymarker") == 0)
{
    // do something different for this marker
}

- Kim

Log in or register to post comments