Log in or register to post comments

Unable to track more than 3 targets

October 26, 2011 - 6:35pm #1

I modified the ImageTarget sample to try and track 5 different targets.

I replaced config.xml and qcar-resources.dat with my targets and set the hint to 5. Independently, all 5 targets are tracked properly (teapot shows up), but if all of them are visible through the camera, only 3 of them are tracked at a time...

Any ideas why?

Thanks

Re: Unable to track more than 3 targets

October 27, 2011 - 6:49am #2

Is it always the same three that are tracked simultaneously, or can you track any combination of three targets?

Do all the targets get a good rating from the TMS?

It's possible that you can't crowd more than three targets in the view with enough resolution to track off of. You might try increasing the resolution of the camera image:

QCAR::CameraDevice::getInstance().selectVideoMode(
                               QCAR::CameraDevice::MODE_OPTIMIZE_QUALITY);

Search your native file (e.g. ImageTargets.cpp) for "MODE_DEFAULT" and change it to "MODE_OPTIMIZE_QUALITY" in each place.

Note that not all devices are guaranteed to support a higher quality camera image. In that case DEFAULT and QUALITY will look the same.

- Kim

Log in or register to post comments