I have recently made an AS3 IR Led tracker for this whack-a-Pyramid game, where children stamp a pyramid model onto a projected table surface to catch a pyramid as the Nile scenery passes by. As i only need to track one LED i decided to do all the tracking within the adobe air framework and found this method for the tracking – http://play.blog2t.net/fast-blob-detection. I have simply adapted this method to include some camera calibration (see below). (Threshold, flip axis, and X and Y offsets calibration).

Camer calibration

All this does is save an XML file to the documents directory and the main app then uses the same data and tracking class. In this example i am just using my DVD remote control.