If you notice how poorly it draws the polygons, I dont rely on the corners it gives me. I adjusted aishack's program(
http://www.aishack.in/2011/06/image-moments/) to tracking a coloured ball and applied the moment to the contour, and not the whole image. That gives me subpixel accuracy for the centers of the targets that doesnt budge when everything is still. Last year to find the center of the target, I averaged the corners of ApproxPoly. To fix Approxpoly's poor quality, I used contour-tree temporarily filled in the contour all white (im dealing with a binary image),then applied approxpoly, but around each corner it gave me, i applied a region of interest and then used cvcornerharris. Then I took those new corners, ordered them top to bottom, left to right, and drew the polygon around them. Of course I knew it was a square, but I could adjust the code to do it for any size polygon.

We'll be at stl and terra houte if you by chance happen be going too.